volume_ellipsoid | R Documentation |
Volume of an ellipsoid (arbitrary dimension).
volume_ellipsoid(A, r)
A |
symmetric positive-definite matrix defining the ellipsoid (see Details) |
r |
"radius" (see Details) |
The (boundary of the) ellipsoid is the set of vectors x
satisfying t(x) %*% A %*% x == r^2
.
The volume of the ellipsoid.
# dimension 2 (area), with diagonal matrix A
A <- diag(c(2,3))
r <- 2
volume_ellipsoid(A, r)
pi * r^2 / sqrt(A[1,1]*A[2,2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.