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.
Initialize this algebra.
Calculate a Cartan subalgebra.
Find the root space decomposition for this algebra.
Find the positive roots and the simple roots.
Find the Cartan matrix.
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
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.
We check that the Einstein equations are satisfied (See EinsteinTensor, EnergyMomentumTensor).
We check that the Maxwell equations (see MatterFieldEquations) are satisfied.
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.
Scalar products, wedge products and sums of abstract forms can be defined.
The command DGinfo can also be used to extract information about the form .
New forms can be defined on M.
We can use the DGzip and GetComponents commands with abstract forms.
We can take the exterior derivative of a form.
The 2-form has been added to list of defined forms and is now available for subsequent computations.
Exterior derivatives of defined forms can be specified.