sphereArea function

Surface area of spheres, volumes of balls in n-dimensions.

Surface area of spheres, volumes of balls in n-dimensions.

Calculates the (n-1) dimensional surface area of a sphere and the n dimensional volume of a ball in n-space.

sphereArea(n, R = 1) ballVolume(n, R = 1)

Arguments

  • n: Dimension of the space.
  • R: Radius of the sphere/ball.

Returns

Single number that is the area of the sphere/volume of the ball.

Examples

sphereArea(n=5) ballVolume(n=5)
  • Maintainer: John P. Nolan
  • License: GPL (>= 2)
  • Last published: 2021-01-10

Useful links