From: "baptiste Auguié" Date: 2007-07-01T20:07:43+09:00 Subject: Re: simple math operations on arrays The names may have been confusing without the context. I believe the formula is right (as Octave's results show). long/short axis refer to a 3D ellipsoid of constant volume, radius referring to the degenerate case of a sphere. Thanks for the .to_f thing, I seem to be overdoing many things ;-) thanks, baptiste On 1 Jul 2007, at 11:55, Robert Dober wrote: > On 7/1/07, baptiste Augui� wrote: > Sorry if I have overlooked other issues but >> > longAxis=aspectRatio.collect{ |x| radius.to_f*((x.to_f)**(-2/3)) } > -2/3 is not what you expect it to be, I'd say, cause you'd probably > written -1 than or just divided radius by x. > > radius and x seem to be floats already, you might save some > keystrokes there ;) > > HTH > Robert >