g_mink_cart | R Documentation |
g_mink_cart()
provides the covariant metric tensor in n
dimensions in
Cartesian coordinates with signature (-1, 1, 1, ...)
.
ds^2=-dx_0^2+\sum_{i=1}^{n-1} dx_i^2
g_mink_sph()
provides the same tensor where the spatial part uses spherical
coordinates.
ds^2=-dt^2 + dr^2 + r^2 d\Omega^2
g_mink_cart(n, coords = paste0("x", 1:n - 1))
g_mink_sph(n, coords = c("t", "r", paste0("ph", 1:(n - 2))))
n |
The dimension of the metric tensor. |
coords |
A character vector of coordinate names. The length needs to match the tensor dimensions. |
The covariant metric tensor as array imputed with coordinate names.
Wikipedia Minkowski metric tensor
Other metric tensors:
g_eucl_cart()
,
g_sph()
,
g_ss()
,
metric_field()
g_mink_cart(4)
g_mink_cart(4) %_% .(+i, +j)
g_mink_sph(4)
g_mink_sph(4) %_% .(+i, +j)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.