Maxima Function
cmetric (dis)
cmetric()
A function in the ctensor
(component tensor) package
that computes the metric inverse and sets up the package for
further calculations.
If cframe_flag
is false
, the function computes the inverse metric
ug
from the (user-defined) matrix lg
. The metric determinant is
also computed and stored in the variable gdet
. Furthermore, the
package determines if the metric is diagonal and sets the value
of diagmetric
accordingly. If the optional argument dis
is present and not equal to false
, the user is prompted to see
the metric inverse.
If cframe_flag
is true
, the function expects that the values of
fri
(the inverse frame matrix) and lfg
(the frame metric) are
defined. From these, the frame matrix fr
and the inverse frame
metric ufg
are computed.