SamplePublisher`GrassmannCalculus`
DeclareExtraFormSymbols (★★F) |
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
Set the GrassmannPlane coordinate system.
In[2]:=
SetCoordinateVectorSpace |
The following are the that come with the space.
UserFormSymbols
In[3]:=
UserFormSymbols
Out[3]=
{α,β,ψ,ω}
Add extra symbols representing forms. They can be lists and can include patterns.
In[4]:=
★★F[,{{,},{,}}]★f
f
Out[4]=
{,,,,α,β,ψ,ω,}
f
Expressions that fit the pattern are now treated as general vectors under the Grassmann simplification routines.
In[5]:=
(a+b)⋀(c+d)%//
f
a
f
b
f
a
f
b
★ |
Out[5]=
(a+b)⋀(c+d)
f
a
f
b
f
a
f
b
Out[5]=
(-bc+ad)⋀
f
a
f
b
New form symbols can't be existing user vector symbols, basis symbols or scalars.
In[6]:=
★★Fa,x,p,,,dx
e
x
e
x
DeclareVectorSymbols::scalarsymbol:The symbols in the list {a,x} have already been declared as scalar symbols. Scalar symbols cannot also be declared as vector or form symbols, since they are of different grade.
DeclareVectorSymbols::vector:The symbols in the list {p} have already been declared as vectors. Vectors cannot also be declared as forms.
DeclareVectorSymbols::basis:The symbols in the list dx,, have already been declared as basis elements. Basis elements cannot also be declared as vector or form symbols.
e
x
e
x
Out[6]=
DeclareUserFormSymbolsa,dx,p,x,,,,,α,β,ψ,ω,,,
e
x
e
x
f
|
""

