GrassmannCalculus`
ExpandAndCollect |
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
Here is a second degree polynomial in ξ and ψ.
In[2]:=
A=(-(-+ψ)(((-ξ)+(-)ψ)+((-+)ξ+(-+ψ))+(((-)ξ+(-ψ))+(--+ξ+ψ)))+(-ξ+ψ)((((-)ξ+(-ψ))+(--+ξ+ψ))+(((-ξ)+(-)ψ)+(--+ξ+ψ)))+(-+ξ)((((-ξ)+(-)ψ)+(--+ξ+ψ))-(((-ξ)+(-)ψ)+((-+)ξ+(-+ψ)))));
ExpandAndCollect expands the expression, and then collects all the the coefficients of , ξ ψ, , ξ, ψ, and the constant term.
2
ξ
2
ψ
In[3]:=
ExpandAndCollect |
Out[3]=
-+-++-+-+-+(-+--++-++---+--++-+)ξ+(-++--+-++-)+(--+-++-+--++--++-+-)ψ+(-+++---+--+++-+-+--+)ξψ+(--++-+--+)
2
ξ
2
ψ
In[4]:=
Clear[A]
|
|
""

