SamplePublisher`GrassmannCalculus`DifferentialGeometry`
InsertPosition |
|
| | ||||
Details and Options
Examples
(1)
Basic Examples
(1)
In[1]:=
<<GrassmannCalculus`
Work in the GrassmannPlane.
In[2]:=
SetActiveAssociation
"Grassmann Plane"
[];
PublicGrassmannAtlas |
★★V |
The following inserts the position everywhere appears in the expression.
In[3]:=
ClearAll[foo];{,foo[],Sin[],Exp[foo[]]}%//
[]
InsertPosition |
Out[3]=
,foo[],Sin[],
foo[]
Out[3]=
★+x+y,foo[★+x+y],Sin[★+x+y],
e
x
e
y
e
x
e
y
e
x
e
y
foo★+x+y
e
x
e
y
This defines a value for the function.
foo
In[4]:=
DefineScalarFunction |
2
y
Now when the position is inserted evaluates but the function does not because it can't take two arguments.
foo
Sin
In[5]:=
{,foo[],Sin[],Exp[foo[]]}%//
[]
InsertPosition |
Out[5]=
,foo[],Sin[],
foo[]
Out[5]=
★+x+y,x,Sin[★+x+y],
e
x
e
y
2
y
e
x
e
y
x
2
y
Set up a polar coordinate chart:
In[6]:=
SetActiveAssociation
"Grassmann Polar"
[];
PublicGrassmannAtlas |
★★V |
Now the position is given by:
In[7]:=
//
[]
InsertPosition |
Out[7]=
★+r+θ
e
r
e
θ
Again the function is defined.
foo
In[8]:=
DefineScalarFunction |
The position evaluates with the new definition
In[9]:=
{,foo[],Sin[],Exp[foo[]]}%//
[]
InsertPosition |
Out[9]=
,foo[],Sin[],
foo[]
Out[9]=
★+r+θ,rSin[θ],Sin[★+r+θ],
e
r
e
θ
e
r
e
θ
rSin[θ]
In[10]:=
ClearAll[foo]
|
""

