Abstract calculations
This tutorial illustrates how to do "abstract" calculations using Atlas package. To do this we use simple manifolds (such as Euclidean space, curves and 2-dimensional surfaces) just to illustrate the corresponding abilities.
What we do?
- First of all, some possible calculations with symbolic dimension will be considered.
- Lastly the same invariants will be calculated for an abstract surface defined by the equation where z is undefined function on x and y:
Examples:
| Domain[manifold] | manifold - identifier - a manifold name or a name of a manifold domain |
Functions[f1→f1[x1,x2,...,xn],f2→f2[y1,y2,...,ym],..., fk→fk[z1,z2,...,zj]] | fk=fk(z1, z2, ..., zj) - equations where fk-function identifier and zj - variables. |
| Vectors[v1,v2,...,vi,...,vn] | vi - vector identivier. |
| Forms[f1→n,f2→k,...,fi→p] | fi=p-equations wherefi-form identifier andpis a variable or an integer-the form's degree. |
| Coframe[idj,{j,1,n}] | id-identifier for indexed variable-the coframe 1-forms.
n-dimension of working manifold (a variable or integer).
idi→ expri-equation where idiis indexed variable-coframe 1-form and expriis decomposition of the 1-form on exact 1-forms. |
| Frame[idj] | idj-indexed variable the frame vectors. |
| Connection[id] | id-variable-connection identifier. |
| div[expr] | expr-any vector expression. |
| Lv1,v2,v3...,vn[expr] | expr-any expression (on which Lie derivative is defined).
v1, v2, v3..., vn-vector fields. |
Necessary functions.
Abstract calculations with symbolic dimension
First of all we load Atlas package:
| Out[8]= |  |
| Out[9]= |  |
| Out[10]= |  |
| Out[11]= |  |
| Out[12]= |  |
| Out[13]= |  |
| Out[14]= |  |
Using
d- procedure. For functions:
| Out[15]= |  |
| Out[16]= |  |
| Out[17]= |  |
| Out[18]= |  |
| Out[19]= |  |
| Out[20]= |  |
| Out[21]= |  |
Declare constant

:
| Out[22]= |  |
| Out[23]= |  |
| Out[24]= |  |
Let us declare another coframe:
| Out[25]= |  |
| Out[26]= |  |
| Out[27]= |  |
| Out[28]= |  |
| Out[29]= |  |
| Out[30]= |  |
| Out[31]= |  |
Abstract calculations with numeric dimension
Now we reload the atlas package:
Domain R3
This domain is just 3-dimensional Euclidean space:
| Out[33]= |  |
Declare 1-forms for to use them as a coframe:
| Out[34]= |  |
Declare vector fields to use them as a frame:
| Out[35]= |  |
| Out[37]= |  |
| Out[38]= |  |
| Out[39]= |  |
| Who[l] | l -an identifier, list or set of identifies. |
| Metric[id→expr] | id - variable - metric identifier.
expr - expression - metric declaration. |
| Riemann[id] | id-variable-corresponding identifier. |
| Ricci[id] | id-variable-corresponding identifier. |
| RicciScalar[id] | id-variable-corresponding identifier. |
| Projectors[f] | f-mapping identifier |
Necessary functions.
"Rotational" surface
Now we operate on a surface:
| Out[40]= |  |
| Out[41]= |  |
Declare 1-forms for coframe:
| Out[42]= |  |
Declare vector fields for frame:
| Out[43]= |  |
Coframe declaration for the surface:
Frame declaration for the surface:
| Out[45]= |  |
Now we declare mapping of the surface into the Euclidean space
R3:
| Out[47]= |  |
Let us see the attributes of the mapping:
Out[48]//TableForm= |
| |  |
After that we can calculate metric induced on the surface by the mapping:
| Out[49]= |  |
Calculation of the corresponding connection and curvature:
| Out[50]= |  |
Out[51]//MatrixForm= |
| |  |
Now we can calculate the corresponding curvature:
| Out[52]= |  |
Out[53]//MatrixForm= |
| |  |
Calculation of riemannian and ricci tensors of the embedded surface:
| Out[54]= |  |
| Out[55]= |  |
Calculation of ricci scalar of the embedded surface:
| Out[56]= |  |
One can see any of the rsults in traditional form:
Out[57]//TraditionalForm= |
| |  |
We can also calculate the invariants (the second fundamental form and mean curvature vector) of the embedding:
| Out[58]= |  |
Let us extract the second fundamental form:
| Out[59]= |  |
Now we can calculate the corresponding tensor:
| Out[60]= |  |
One can also calculate the corresponding projectors:
| Out[61]= |  |
An abstract surface
Now current manifold is a surface:
| Out[62]= |  |
| Out[63]= |  |
Declare 1-forms for the surface coframe:
| Out[64]= |  |
Declare vector fields for the surface frame:
| Out[65]= |  |
Coframe declaration for the surface:
Frame declaration for the surface:
| Out[67]= |  |
Now we declare embedding of the surface into
R3:
Let us see the mapping attributes:
Out[69]//TableForm= |
| |  |
After that we can calculate metric induced on the surface by the embedding:
| Out[70]= |  |
Let us calculate the invariants of the embedding:
| Out[71]= |  |
One can also calculate the corresponding projectors:
| Out[72]= |  |