GrassmannCalculus`
EvenRawGradeQ |
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
Set the book 3-dimensional space.
In[2]:=
★A;
EvenRawGradeQ
In[3]:=
EvenRawGradeQ |
Out[3]=
True
And with graded symbols:
In[4]:=
Table[,{m,0,6}]
[%]
[%%]
α
m
EvenGradeQ |
EvenRawGradeQ |
Out[4]=
,,,,,,
α
0
α
1
α
2
α
3
α
4
α
5
α
6
Out[4]=
{True,False,True,False,False,False,False}
Out[4]=
{True,False,True,False,True,False,True}
Multigraded expressions give True only if all the element grades are even.
In[5]:=
,,
[%]
α
{0,2,4,6}
α
{1,3}
α
{0,1,2,6}
EvenRawGradeQ |
Out[5]=
,,
α
{0,2,4,6}
α
{1,3}
α
{0,1,2,6}
Out[5]=
{True,False,False}
The raw grade of 0 is neither even nor odd.
In[6]:=
Grade[0]
[0],
[0]
EvenRawGradeQ |
OddRawGradeQ |
Out[6]=
★0
Out[6]=
{False,False}
You can also use new symbols as long as you assert their grades, or you can override the grades of currently declared symbols.
In[7]:=
Clear[A];
A+x,A∈,x∈
EvenRawGradeQ |
★Λ
4
★Λ
2
Out[7]=
True
The expression can contain powers (including reciprocals) of scalars. The quantity in brackets is multigraded and reduced to even grade by the interior product.
In[8]:=
RawGrade |
Out[8]=
{3,5}
In[9]:=
EvenRawGradeQ |
1
+
(x⋀y⋀p⋀q)⋄z
a
(
x⊖y)+
2
(a⋀b)
Out[9]=
True
|
|
|
""


