In the examples that follow, as well as in the context of tensor computations with the Physics package, it is used Einstein's summation convention for repeated indices
Set a system of coordinates - say X
Compute the exterior derivative of a scalar
Because the spacetime at this point in the worksheet is flat, the output above involves d_, not the covariant D_. Set the spacetime to any non-Galilean value, for instance use the Schwarzschild metric (see g_)
Define two tensors for experimentation, one symmetric, the other antisymmetric
Use the declare facility of PDEtools to avoid redundant display of functionality of and
The same result can be expressed in non-covariant manner in terms of d_ - pass it as last argument
For example, to verify these two expressions are the same, rewrite the first one in terms of d_ and Simplify to re-obtain (8)
To see the components behind these tensorial expressions you can use TensorArray, or the Library command TensorComponents, or more directly: Define a tensor with the expression, say and use it to compute its contravariant or covariant expressions, matricial form, etc:
To see the all indices covariant and equal to 1,
The values of for all of its indices equal to 1, 2, 3, either covariant or all contravariant
By construction, this tensorial expression is totally antisymmetric, so
Recalling that is defined as symmetric and the symmetries of the Riemann tensor, create an expression that is zero by contracting with the first or second pair of indices of Riemann. Use the product operator `*`, not `.`, to avoid automatic simplification of contracted indices
ExteriorDerivative does not simplify the expression before proceeding, it only checks the antisymmetry of the free indices
You can Simplify results like this one, or where the zero is more disguised, using