GrassmannCalculus`
DeclareScalarSymbols |
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
In[2]:=
initialPreferences=
;
CurrentSpacePreferences |
We set a Book 4-space and show the default user scalar and vector symbols..
In[3]:=
SetBookBoundVectorSpace |
Out[3]=
{a,b,c,d,e,f,g,h}
Out[3]=
{p,q,r,s,t,u,v,w,x,y,z}
Often we will have a specific problem in mind and might want to restrict out user symbols to a specific set adapted to the problem. We can do that by using and .
DeclareScalarSymbols
DeclareVectorSymbols
The current scalars are the default ones for the GrassmannPlane coordinate system.
In[4]:=
★s |
Out[4]=
{a,b,c,d,x,y}
The following establishes a set of scalar symbols.
In[5]:=
DeclareScalarSymbols |
★s |
Out[5]=
DeclareScalarSymbols[a,b,c]
Out[5]=
{a,b,c,d,x,y}
Now we add some more with .
DeclareExtraScalarSymbols
In[6]:=
★★S |
★s |
Out[6]=
{a,b,c,d,e,f,x,y}
Now we establish a new set of scalar symbols. The previous scalar symbols are eliminated and the new ones are combined with the default scalars.
In[7]:=
DeclareScalarSymbols |
★s |
Out[7]=
{a,b,c,d,e,f,x,y}
Here we establish the book default preferences. This gives the default book scalars.
In[8]:=
DeclareBookDefault;
★s |
Out[8]=
{a,b,c,d,e,f,g,h}
The following declares a replacement set using individual items and list structures. Duplicates are eliminated. Notice that with book preferences the default scalars can be overridden. With coordinate systems they cannot be overridden.
In[9]:=
DeclareScalarSymbols |
★s |
Out[9]=
{a,b,c,d,e,f,g,h}
In[10]:=
CurrentSpacePreferences |
Out[10]=
GrassmannAssociationTitleGrassmann Plane,CoordinatesOriginQTrue,GrassmannCoordinates{x,y},GrassmannParameters{},CoordinateDomainTrue,ParameterDomainTrue,BasisTypeVector,Basis{★,,},VectorBasis{★,,},FormBasis{★,dx,dy},OrthonormalBasis★,,,MetricsMetric{{1,0,0},{0,1,0},{0,0,1}},InverseMetric{{1,0,0},{0,1,0},{0,0,1}},ScaleFactors{1,1},VolumeFactor1,VectorToForm{dx,dy},FormToVector{dx,dy},VectorToOrthonormal,,OrthonormalToVector,,FormToOrthonormaldx,dy,OrthonormalToFormdx,dy,SymbolsScalarSymbols{a,b,c,d,x,y},UserScalarSymbols{a,b,c,d},VectorSymbolsdx,dy,p,q,r,s,α,β,ψ,ω,,,,,BasisSymbolsdx,dy,,,,,UserVectorSymbols{p,q,r,s},UserFormSymbols{α,β,ψ,ω}
e
x
e
y
e
x
e
y
e
x
e
y
e
x
e
y
e
x
e
y
e
x
e
x
e
y
e
y
e
x
e
x
e
y
e
y
e
x
e
y
e
x
e
y
e
x
e
y
e
x
e
y
e
x
e
y
e
x
e
y
""
