tensor
Ricciscalar
compute the Ricci scalar
Calling Sequence
Parameters
Description
Examples
Ricciscalar(ginv, Ricci)
ginv
-
rank two tensor_type of character [-1,-1] representing the contravariant metric tensor; specifically, ginvcomptsi,j≔gij
Ricci
rank two tensor_type of character [-1,-1] representing the COVARIANT Ricci tensor; specifically, Ricci[compts][i,j] := R_{ij}
Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[Tensor][RicciScalar] and Physics[Ricci] instead.
The result of this routine is the Ricci scalar (note it is represented by a rank zero tensor_type).
Both ginv and Ricci should use the Maple symmetric indexing function for their components.
Simplification: This routine uses the `tensor/Ricciscalar/simp` routine for simplification purposes. The simplification routine is applied to each component of result after it is computed. By default, `tensor/Ricciscalar/simp` is initialized to the `tensor/simp` routine. It is recommended that the `tensor/Ricciscalar/simp` routine be customized to suit the needs of the particular problem.
This function is part of the tensor package, and so can be used in the form Ricciscalar(..) only after performing the command with(tensor) or with(tensor, Ricciscalar). The function can always be accessed in the long form tensor[Ricciscalar](..).
with⁡tensor:
Define the coordinate variables and the covariant components of the Schwarzchild metric.
coord≔t,r,θ,φ:
g_compts≔array⁡symmetric,sparse,1..4,1..4:
g_compts1,1≔1−2⁢mr:g_compts2,2≔−1g_compts1,1:
g_compts3,3≔r2:g_compts4,4≔r2⁢sin⁡θ2:
g≔create⁡−1,−1,eval⁡g_compts
g≔table⁡index_char=−1,−1,compts=1−2⁢mr0000−11−2⁢mr0000r20000r2⁢sin⁡θ2
Compute the Ricci scalar.
ginv≔invert⁡g,detg:
D1g≔d1metric⁡g,coord:D2g≔d2metric⁡D1g,coord:
Cf1≔Christoffel1⁡D1g:
RMN≔Riemann⁡ginv,D2g,Cf1:
RICCI≔Ricci⁡ginv,RMN:
RS≔Ricciscalar⁡ginv,RICCI
RS≔table⁡index_char=,compts=−4r2
You can also view the result using the tensor package function displayGR.
See Also
DifferentialGeometry[Tensor][RicciScalar]
Physics[Christoffel]
Physics[D_]
Physics[d_]
Physics[Einstein]
Physics[g_]
Physics[LeviCivita]
Physics[Ricci]
Physics[Riemann]
Physics[Weyl]
tensor(deprecated)
tensor(deprecated)[displayGR]
tensor(deprecated)[invert]
tensor(deprecated)[Ricci]
tensor(deprecated)[simp]
tensor(deprecated)[tensorsGR]
Download Help Document