areaSpherePart: compute the area of an n-dimensional hypersphere cap

View source: R/angleTest.r

areaSpherePartR Documentation

compute the area of an n-dimensional hypersphere cap

Description

compute the area of an n-dimensional hypersphere cap

Usage

areaSpherePart(n, phi, r = 1)

Arguments

n

dimensionality of space the hypersphere is embedded in (e.g.3 for a 3D-sphere)

phi

angle between vectors defining the cone

r

radius of the sphere

Value

returns the area of the hypersphere cap

Examples

areaSpherePart(2,pi/2) # covers half the area of a circle

Morpho documentation built on June 22, 2024, 7:19 p.m.