[Jprogramming] "n-volume" of an "n-sphere"
Raul Miller
rauldmiller at gmail.com
Wed Aug 16 17:50:04 UTC 2017
On Wed, Aug 16, 2017 at 10:12 AM, Murray Eisenberg
<murray at math.umass.edu> 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
More information about the Programming
mailing list