powered by
compute the area of an n-dimensional hypersphere cap
areaSpherePart(n, phi, r = 1)
returns the area of the hypersphere cap
dimensionality of space the hypersphere is embedded in (e.g.3 for a 3D-sphere)
angle between vectors defining the cone
radius of the sphere
areaSpherePart(2,pi/2) # covers half the area of a circle
Run the code above in your browser using DataLab