volume_sphere {uniformly}R 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

[Package uniformly version 0.5.0 Index]