Math::nSphere - calculate volumen and surface of n-spheres
use Math::nSphere qw(nsphere_surface nshepere_volumen); my $sur = nsphere_surface($dim - 1, $radius); my $vol = nsphere_volumen($dim - 1, $radius);
This module provides functions to calculate the surface and the volumen of n-spheres of any dimension.
Note that n + 1 equals the space dimension. For instace, a circunference is a 1-sphere and a sphere is a 2-sphere.
Returns the surface of the n-sphere of the given radius (1.0 by default).
Returns the volumen of the n-sphere of the given radius (1.0 by default).
n-sphere entry at the Wikipedia: http://en.wikipedia.org/wiki/N-sphere
Copyright (C) 2011 by Salvador Fandino (firstname.lastname@example.org)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available.