surface_sphere: Sphere surface

Description Usage Arguments Value Examples

View source: R/surfaces.R

Description

Surface of a sphere (arbitrary dimension).

Usage

1
surface_sphere(d, r = 1)

Arguments

d

dimension of the space

r

radius of the sphere

Value

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

Examples

1
2
3
4
5
r <- 2
surface_sphere(3, r)
4*pi*r^2
# perimeter of the unit circle:
surface_sphere(2)

stla/uniformly documentation built on Aug. 10, 2018, 7:03 a.m.