covd | R Documentation |
Calculates the (symbolic) covariant derivative
\nabla_\rho a_{\mu_{1} \mu_{2} ...}^{\nu_{1}\nu_{2}...}
with respect
to the Levi Civita connection of any (symbolic) tensor field.
The result is a new tensor of one rank higher than
the original tensor rank.
covd(x, i, g, act_on = NULL)
x |
A labeled tensor object, created by |
i |
An index slot label specification created with |
g |
A covariant metric tensor, a "metric_field" object. See |
act_on |
An optional index slot label specification created with |
Note that symbolic derivatives are not always completely trustworthy.
They usually ignore subtle issues like undefined expressions at certain
points. The example \nabla_a \nabla^a r^{-1}
from below is telling:
The symbolic derivative
evaluates to zero identically, although strictly speaking the derivative
is not defined at r = 0
.
The covariant derivative: a new labeled array with one or more additional
indices (depending on i
).
Wikipedia: Covariant Derivative
options(ricci.auto_simplify = TRUE)
# gradient of "sin(sqrt(x1^2+x2^2+x3^2))" in 3-dimensional euclidean space
covd("sin(x1)", .(k), g = g_eucl_cart(3))
# laplace operator
covd("sin(x1)", .(-k, +k), g = g_eucl_cart(3))
covd("1/r", .(-k, +k), g = g_eucl_sph(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.