Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.
Define the coordinate variables and the covariant components of the Schwarzchild metric.
Compute the first partials of g:
Compute the second partials of g:
All indices are covariant
The symmetries in the indices are implemented with indexing:
Extract only the nonzero entries
>
|
map( proc(x) if compts[op(x)]<>0 then op(x)=compts[op(x)] else NULL end if end proc,
[ indices(compts) ] );
|