GrassmannCalculus`
ScalarExpressionQ |
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
Set the Grassmann Plane coordinate system and display the scalar atoms.
In[2]:=
SetActiveAssociation
"Grassmann Plane"
PublicGrassmannAtlas |
ScalarAtoms |
Out[2]=
,a,b,c,★c,d,★n,★λ,★0,x,y,★g,_,,,,
(-1)
_,_,_
★σ
★t
_
0
_
{0}
In[3]:=
{x,y,x,x[3],,1},
,
,,
[★⋀]
[%]//Column
2
y
2
y[t]
★g |
★c |
α
0
AngleBracket |
e
y
ScalarExpressionQ |
Out[3]=
{x,y,x,x[3],,1},★g,★c,,★⋀
2
y
2
y[t]
α
0
e
y
Out[3]=
{True,True,True,False,False,True} |
{True,True,True,True} |
Scalar expressions that require evaluation are not recognized as scalar.
In[4]:=
⊖,★⋀⋀⋁%//
%%//
e
x
e
y
e
x
e
y
★⋀⋀
e
x
e
y
ScalarExpressionQ |
ToMetricElements |
Out[4]=
⊖,★⋀⋀⋁
e
x
e
y
e
x
e
y
★⋀⋀
e
x
e
y
Out[4]=
{False,False}
Out[4]=
{0,1}
ScalarQ will recognize inner products but not all scalar expressions.
In[5]:=
⊖,★⋀⋀⋁%//
e
x
e
y
e
x
e
y
★⋀⋀
e
x
e
y
ScalarQ |
Out[5]=
⊖,★⋀⋀⋁
e
x
e
y
e
x
e
y
★⋀⋀
e
x
e
y
Out[5]=
{True,False}
GradeQ
In[6]:=
⊖,★⋀⋀⋁
[0]/@%
e
x
e
y
e
x
e
y
★⋀⋀
e
x
e
y
GradeQ |
Out[6]=
⊖,★⋀⋀⋁
e
x
e
y
e
x
e
y
★⋀⋀
e
x
e
y
Out[6]=
{True,True}
|
|
""

