As I said in my original post, for general radius r, just multiply the value I give for V(n) by r^n.
> On 17 Aug2017, at 8:00 AM, programming-requ...@forums.jsoftware.com wrote: > > Message: 8 > Date: Wed, 16 Aug 2017 13:50:04 -0400 > From: Raul Miller <rauldmil...@gmail.com <mailto:rauldmil...@gmail.com>> > To: Programming forum <programm...@jsoftware.com > <mailto:programm...@jsoftware.com>> > Subject: Re: [Jprogramming] "n-volume" of an "n-sphere" > Message-ID: > <cad2jou-7w0ds9nvahqdnmw0tyk_qo6aabcmfdiewcdyc0oq...@mail.gmail.com > <mailto:cad2jou-7w0ds9nvahqdnmw0tyk_qo6aabcmfdiewcdyc0oq...@mail.gmail.com>> > Content-Type: text/plain; charset="UTF-8" > > On Wed, Aug 16, 2017 at 10:12 AM, Murray Eisenberg > <mur...@math.umass.edu <mailto:mur...@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.) —— Murray Eisenberg mur...@math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 240 246-7240 (H) University of Massachusetts 710 North Pleasant Street Amherst, MA 01003-9305 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm