powered by
compute the area of an n-dimensional hypersphere
areaSphere(n, r = 1)
returns the area
dimensionality of space the hypersphere is embedded in (e.g.3 for a 3D-sphere)
radius of the sphere
areaSphere(2) #gives us the circumference of a circle of radius 1
Run the code above in your browser using DataLab