| Atlas Tutorial | Functions »|Tutorials »|More About » |
Data types in the atlas package
In the Atlas package any identifier is treated as 0-form i.e. as non-constant scalar (if it not declared as constant, p-form, tensor etc). To declare a variable as a constant, vector, tensor or p-form use Constants, Vectors, Tensors, Forms, respectively. To find out information about indexing facilities of the package see Indexing.
The Atlas package uses its own data types, called "Constant", scal, "Vector", tensor, form, func, domain, mapping, coframe, frame to represent corresponding objects. Use TypeQ to check the corresponding types.
The Atlas package uses its own data types, called "Constant", scal, "Vector", tensor, form, func, domain, mapping, coframe, frame to represent corresponding objects. Use TypeQ to check the corresponding types.
Examples:
| Kind[t] | t -any expression containing tensors, vectors, p-forms etc. |
| Constants[c1,c2,...,ci,...,cn] | c1, c2, ..., ci, ..., cn - constants identifiers. |
| Vectors[v1,v2,...,vi,...,vn] | vi - vector identivier. |
| Forms[f1→n,f2→k,...,fi→p] | fi→p - rules where fi - form identifier and p is a variable or an integer - the form's degree. |
| Functions[f1→f1[x1,x2,...,xn],f2→f2[y1,y2,...,ym],..., fk→fk[z1,z2,...,zj]] | fk=fk[z1, z2, ..., zj] - rules where fk-function identifier and zj - variables. |
| In[163]:= |
| In[164]:= |
| Out[164]= |
Verify that C is a constant using Kind (see Kind) and TypeQ procedures:
| In[165]:= |
| Out[165]= |
| In[166]:= |
| Out[166]= |
| In[167]:= |
| Out[167]= |
| In[168]:= |
| Out[168]= |
| In[169]:= |
| Out[169]= |
| In[170]:= |
| Out[170]= |
| In[171]:= |
| Out[171]= |
| In[172]:= |
| Out[172]= |
| In[173]:= |
| Out[173]= |
| In[174]:= |
| Out[174]= |
| In[177]:= |
| Out[177]= |
| In[178]:= |
| Out[178]= |
| In[179]:= |
| Out[179]= |
| In[180]:= |
| Out[180]= |
| In[181]:= |
| Out[181]= |
| Domain[manifold] | manifold - string - a manifold name or a name of a manifold domain. |
| 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 - rules where idi is indexed variable - coframe 1-form and expri is decomposition of the 1-form on exact 1-forms. |
| Mapping[f,m,n] | f - variable - the mapping identifier i.e. f : m → n m - variable - first domain identifier n - variable - second domain identifier |
| Who[] | returns information about all declarations made. |
| Who[l] | l -an identifier, list or set of identifies. |
| In[182]:= |
| Out[182]= |
| In[183]:= |
| Out[183]= |
| In[184]:= |
| Out[184]= |
| In[186]:= |
| Out[186]= |
| In[187]:= |
| Out[187]= |
| In[188]:= |
| Out[188]= |
| In[189]:= |
| Out[189]= |
| In[190]:= |
| Out[190]= |
| In[192]:= |
| Out[192]= |
| In[193]:= |
| Out[193]= |
| In[194]:= |
| Out[194]= |
| In[195]:= |
| Out[195]= |
| In[197]:= |
Out[197]//TableForm= | |
![]() | |
| In[198]:= |
| Out[198]= |
| In[199]:= |
Out[199]//TableForm= | |
![]() | |


