powered by
Volume of an ellipsoid (arbitrary dimension).
volume_ellipsoid(A, r)
The volume of the ellipsoid.
symmetric positive-definite matrix defining the ellipsoid (see Details)
"radius" (see Details)
The (boundary of the) ellipsoid is the set of vectors x satisfying t(x) %*% A %*% x == r^2.
x
t(x) %*% A %*% x == r^2
# 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])
Run the code above in your browser using DataLab