volume_sphere: Sphere volume

View source: R/volumes.R

volume_sphereR Documentation

Sphere volume

Description

Volume of a sphere (arbitrary dimension).

Usage

volume_sphere(d, r = 1)

Arguments

d

dimension of the space

r

radius of the sphere

Value

The volume of the sphere with radius r in the d-dimensional space.

Examples

r <- 2
volume_sphere(3, r)
4/3*pi*r^3

uniformly documentation built on July 26, 2023, 6:06 p.m.