Skip to main content

Module christoffel_symbols

Module christoffel_symbols 

Source
Expand description

Christoffel symbols of the Levi-Civita connection in four dimensions.

For a metric g_{μν}(x) the symbols are Γ^λ_{μν} = ½ g^{λσ} (∂_μ g_{σν} + ∂_ν g_{σμ} - ∂_σ g_{μν}). They are stored as gamma[λ][μ][ν] (symmetric in the lower pair) and give the geodesic equation d²x^λ/dτ² = -Γ^λ_{μν} dx^μ/dτ dx^ν/dτ.

See the book entry Space-time.

Structs§

ChristoffelSymbols4D
The Christoffel symbols Γ^λ_{μν} at one point.

Functions§

invert_4x4
Inverse of a 4×4 matrix by Gauss-Jordan elimination with partial pivoting; None if singular.

Type Aliases§

Metric4
A 4×4 metric tensor g[μ][ν].