Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[Tensor][EinsteinTensor] and Physics[Einstein] instead.
Define the coordinate variables and the covariant Schwarzchild metric tensor components.
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
Now compute all of the quantities necessary to compute the Einstein tensor:
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
Compute the Einstein tensor:
>
|
|
| (2) |
You can also view the result using the function tensor[displayGR].