spheresegmentvolume
Volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes
Author: John D'Errico
John, Have not seen teh new submission yet. perhaps it takes the server a while to update?
Best, Joel
01 Sep 2010
spheresegmentvolume
Volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes
Author: John D'Errico
Thanks!
01 Sep 2010
spheresegmentvolume
Volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes
Author: John D'Errico
annother oddity:
spheresegmentvolume([0 2],1,2)
should be 2 but returns 4?
01 Sep 2010
spheresegmentvolume
Volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes
Author: John D'Errico
I am struggling with something. I don't want to imply there is a bug in the code but there must be something I am not understanding:
spheresegmentvolume([.5, 1],3,1) / (4/3*pi)
0.34375
Should compute the ratio of the volume of the cap from 1/2 the radius vs the whole volume of the sphere in 3D. But a sktech shows pretty clearly there is no way that cap should be near 1/3 of the volume. What am I missing? Perhaps I am misinterpreting the input argument t?