GrassmannCalculus`
GradeQ |
|
| | ||||
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
GradeQ
In[2]:=
★A;1//
[0]2x//
[1]3x⋀y//
[2]1+2x+3x⋀y//
[{0,1,2}]
GradeQ |
GradeQ |
GradeQ |
GradeQ |
Out[2]=
True
Out[2]=
True
Out[2]=
True
Out[2]=
True
GradeQ returns False if the grade of the expression does not match.
In[3]:=
1+2x+3x⋀y//
[2]
GradeQ |
Out[3]=
False
You can also use new (undefined) symbols as long as you assert their grades, or you can override the grades of currently declared symbols.
In[4]:=
★ℬ |
4
GradeQ |
★Λ
3
Out[4]=
True
GradeQ[m]
In[5]:=
GradeQ |
z
3
Out[5]=
{True,False,False}
Or it's listability properties can be used.
In[6]:=
GradeQ |
Out[6]=
True
In[7]:=
GradeQ |
z
3
Out[7]=
False
In[8]:=
GradeQ |
Out[8]=
True
The expression can contain powers (including reciprocals) of scalars.
In[9]:=
GradeQ |
1
+
(x⋀y⋀z)⊖x
a
(
x⊖y)+
2
(a⋀b)
Out[9]=
True
|
|
""

