SamplePublisher`GrassmannCalculus`DifferentialGeometry`
EvaluateInnerContractors |
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
In[2]:=
savePreferences=
;
AllPreferences |
In[3]:=
SetEuclideanNSpace[4,{w,x,y,z},"Vector"]
[a,b,c,d,e]
★★S |
The following evaluates a 2-vector on a 2-form by conversion to interior products.
In[4]:=
vector1={1,2,-1,1}.Basisvector2={3,-2,1,2}.Basis
//Timing
〈
(adw+bdz)⋀(3dx-5dy),vector1⋀vector2〉
//EvaluateContractors |
Out[4]=
e
w
e
x
e
y
e
z
Out[4]=
3-2++2
e
w
e
x
e
y
e
z
Out[4]=
{3.010819,-44a-33b}
The following does the same evaluation using .
EvaluateInnerContractors
In[5]:=
〈
(adw+bdz)⋀(3dx-5dy),vector1⋀vector2〉
//EvaluateInnerContractors |
Out[5]=
{0.015600,-44a-33b}
In[6]:=
〈
(adw+bdz)⋀(3dx-5dy),vector1⋀vector2〉
//EvaluateContractorsMF |
Out[6]=
{0.015600,-44a-33b}
In[7]:=
RestorePreferences |
""
