GrassmannCalculus`
ScalarQ |
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
The arguments of numeric functions can contain inner products.
In[2]:=
★A;
ScalarQ |
x
0
+
π
Sin
(x⋀y)⊖
z
2
a
(
x⊖y)
Out[2]=
True
The expression can contain powers (including reciprocals) of scalar Grassmann expressions.
In the following example recognizes that is a scalar because both and are scalar symbols.
ScalarQ
a⋀b
a
b
In[3]:=
ScalarQ |
1
a⋀b
2
(a⋀b)
Out[3]=
True
Here is a more complicated scalar expression
In[4]:=
W=a-Log*x⊖y+(u⋀x)⊖(y⋀z);
a⋀b⋀c⋀d
a⊖(b⋀c⋀d)
x
0
1+a
b-
x
0
★c |
2+a+⊖⊖c
x
4
y
{4}
In[5]:=
ScalarQ |
Out[5]=
True
Here, the expression is neither a Grassmann expression, nor a scalar, since is a vector symbol.
x
In[6]:=
ScalarQ |
2
x
Out[6]=
False
|
|
""

