powered by
Volume of a simplex (arbitrary dimension).
volume_simplex(simplex)
The volume of the simplex.
a (d+1) times d matrix giving the vertices of the simplex (rows)
(d+1)
d
set.seed(666) simplex <- matrix(rnorm(4*3), nrow=4, ncol=3) volume_simplex(simplex) volume_tetrahedron(simplex[1,], simplex[2,], simplex[3,], simplex[4,])
Run the code above in your browser using DataLab