Learn R Programming

uniformly (version 0.5.0)

volume_pball: p-ball volume

Description

Euclidean volume of a p-ball (arbitrary dimension).

Usage

volume_pball(d, p, r = 1)

Value

The volume of the p-ball with radius r.

Arguments

d

dimension

p

exponent in the p-norm, a positive number

r

radius of the ball

Examples

Run this code
volume_pball(d=4, p=2, r=2)
volume_sphere(d=4, r=2)

Run the code above in your browser using DataLab