Example 1.
In this example we shall initialize the Lie algebra ( the algebra of trace-free matrices). For this algebra we then calculate [i] a Cartan subalgebra, [ii] the root space decomposition, [iii] the positive and simple roots, and [iv] the Cartan matrix.
>
|
|
>
|
|
| (1.1) |
Initialize this algebra.
Calculate a Cartan subalgebra.
sl3 >
|
|
Find the root space decomposition for this algebra.
sl3 >
|
|
| (1.4) |
Find the positive roots and the simple roots.
sl3 >
|
|
| (1.5) |
sl3 >
|
|
| (1.6) |
sl3 >
|
|
Find the Cartan matrix.
sl3 >
|
|
Example 2.
A space-time is called an electro-vac spacetime if there exists an electromagnetic field which solves the Einstein-Maxwell field equations. The problem of deciding if a spacetime is electro-vac can be solved using the command RainichConditions and RainichElectromagneticField
M >
|
|
M >
|
|
| (1.10) |
Test to see if the Rainich conditions for this spacetime hold.
We conclude the spacetime is an electro-vac spacetime. Here is the electro-magnetic field.
M >
|
|
| (1.12) |
M >
|
|
| (1.13) |
We check that the Einstein equations are satisfied (See EinsteinTensor, EnergyMomentumTensor).
M >
|
|
| (1.14) |
| (1.15) |
We check that the Maxwell equations (see MatterFieldEquations)
are satisfied.
M >
|
|
| (1.17) |
Example 3.
The DifferentialGeometry package now supports extended functionality for working with abstract differential forms
Create an abstract manifold with a function 1-forms and a 2-form .
>
|
|
The command DGinfo gives the names of all scalars and forms which are defined.
| (1.19) |
Scalar products, wedge products and sums of abstract forms can be defined.
M >
|
|
The command DGinfo can also be used to extract information about the form .
M >
|
|
M >
|
|
M >
|
|
M >
|
|
New forms can be defined on M.
M >
|
|
| (1.26) |
We can use the DGzip and GetComponents commands with abstract forms.
M >
|
|
M >
|
|
| (1.28) |
M >
|
|
We can take the exterior derivative of a form.
M >
|
|
The 2-form has been added to list of defined forms and is now available for subsequent computations.
| (1.31) |
Exterior derivatives of defined forms can be specified.
M >
|
|
M >
|
|