On Wed, Aug 16, 2017 at 10:12 AM, Murray Eisenberg <[email protected]> wrote: ... > Of course, an exact formula for the n-dimensional measure of the unit n-ball > is known: > > Pi^(n/2) > V(n) = ————---------- > Gamma(1+n/2)
Which brings us back to the first line of the first post in this thread: sphvol=: (1p1&^%!)@-:@] * ^ (The difference between sphvol and V(n) is that sphvol handles spheres of any radius while V(n) assumes unit radius. That said, 1&sphvol gives you the n-volume for a unit n-ball.) Thanks, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
