When Physics is initialized, the spacetime is 4-dimensional and galilean with signature (-, -, -, +). You can see the metric querying Setup, as in Setup(metric), or directly entering the metric as g_[], with no indices
The values 0 and 4 of the indices represent the same, and the convention for the galilean all-contravariant LeviCivita (note you indicate the contravariant character of index prefixing with ~) is
As usual, with signatures where the time-like component is positive, lowering or raising the time-like index 0 does not change the sign. Enter the index 0 without ~
and so, for the galilean all-covariant LeviCivita,
LeviCivita is totally antisymmetric, so when two indices are equal it returns 0
The symmetry property of LeviCivita is taken into account when the indices have symbolic values: they are sorted so that zero recognition is automatic
To set the scenario as a curved spacetime set the metric using Setup, for instance indicating the square of the spacetime interval:
While setting the metric set also the corresponding coordinates
At this point LeviCivita still represents the galilean .
You can access the non-Galilean LeviCivita by passing the keyword nongalilean after the indices; compare:
To work with both the Galilean and non-Galilean LeviCivita at the same time, the simplest way is to define a corresponding tensor as follows:
Now we have
Alternatively, you can set LeviCivita as nongalilean by default using Setup
Note the change in the display, reflecting the nongalilean character of LeviCivita
The non-Galilean form is also totally antisymmetric
Its derivative is not zero in general
For the contravariant components
In view of and , we have
Mixed covariant and contravariant components
Shortcut notation for computing an Array for the all-covariant LeviCivita
An Array with the values of the nongalilean all-contravariant LeviCivita
The nonzero components of the Array just computed
Note you can still access the Galilean LeviCivita by passing the keyword galilean after the indices; compare:
Finally, compare the non-Galilean LeviCivita with its definition in terms of the determinant of the metric g_. For that purpose, first reset the meaning of LeviCivita to its default value
Taking equal to , we have
Note the use the inert form,, to represent the determinant of the metric in the formulas above. The design in the Physics package is such that, given any tensor with two indices, its determinant is computed when you index the tensor with the keyword determinant. For example, for the Schwarzschild metric g_ set at this point,
However, some formulations may require a representation of the determinant to perform algebraic manipulations, instead of the computed value of the determinant. In such cases use the inert form