DifferentialGeometry
RemoveFrame
remove a frame from a Maple session
Calling Sequence
Parameters
Description
Examples
RemoveFrame(M)
M
-
an unassigned Maple name or a string
Remove a previously defined frame M from the current Maple session. All protected variables and frame and coframe labels associated with the frame M become unassigned and unprotected. The command returns the number of frames that remain available.
If the current frame is M and M is removed, then the current frame defaults to the first frame in an alphabetic listing of all remaining defined frames.
This command is part of the DifferentialGeometry package, and so can be used in the form RemoveFrame(...) only after executing the command with(DifferentialGeometry). It can always be used in the long form DifferentialGeometry:-RemoveFrame.
with⁡DifferentialGeometry:
Example 1.
Create a pair of manifolds.
DGsetup⁡x,y,M,verbose:
The following coordinates have been protected:
x,y
The following vector fields have been defined and protected:
D_x,D_y
The following differential 1-forms have been defined and protected:
dx,dy
DGsetup⁡u,v,N,verbose
u,v
D_u,D_v
du,dv
frame name: N
The command DGinfo can return a list of all defined manifolds, adapted frames, Lie algebras, etc. - everything created by DGsetup.
Tools:-DGinfo⁡FrameNames
M,N
Note that u is protected and D_u is assigned.
type⁡u,protected
true
lprint⁡D_u
_DG([["vector", N, []], [[[1], 1]]])
Now remove the frame N.
RemoveFrame⁡N
1
The frame N no longer shows up in the list of defined frames.
The current frame is now M.
Tools:-DGinfo⁡CurrentFrame
Also, u is no longer protected and D_u is unassigned.
false
D_u
See Also
ChangeFrame
DGinfo
DGsetup
Download Help Document