revolution-solid: Volumes of solids of revolution

Description Usage Arguments Details Value See Also Examples

Description

Find the volume of a solid of revolution

Usage

1
2
3
shellmethod(f, a, b)

discmethod(f, a, b)

Arguments

f

function of revolution

a

lower-bound of the solid

b

upper-bound of the solid

Details

The functions discmethod and shellmethod implement the algorithms for finding the volume of solids of revolution. The discmethod function is suitable for volumes revolved around the x-axis and the shellmethod function is suitable for volumes revolved around the y-axis.

Value

the volume of the solid

See Also

Other integration: adaptint, gaussint, giniquintile, mcint, midpt, romberg, simp38, simp, trap

Examples

1
2
3
f <- function(x) { x^2 }
shellmethod(f, 1, 2)
discmethod(f, 1, 2)

cmna documentation built on June 20, 2017, 9:08 a.m.