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

stla/uniformly documentation built on July 29, 2023, 4:35 p.m.