areaSphere: compute the area of an n-dimensional hypersphere

View source: R/angleTest.r

areaSphereR Documentation

compute the area of an n-dimensional hypersphere

Description

compute the area of an n-dimensional hypersphere

Usage

areaSphere(n, r = 1)

Arguments

n

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

r

radius of the sphere

Value

returns the area

Examples

areaSphere(2) #gives us the circumference of a circle of radius 1

zarquon42b/Morpho documentation built on Jan. 28, 2024, 2:11 p.m.