Find the volume of a solid of revolution
shellmethod(f, a, b)
discmethod(f, a, b)
f | function of revolution |
---|---|
a | lower-bound of the solid |
b | upper-bound of the solid |
the volume of the solid
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.
Other integration:
adaptint()
,
gaussint()
,
giniquintile()
,
mcint()
,
midpt()
,
romberg()
,
simp38()
,
simp()
,
trap()
f <- function(x) { x^2 }
shellmethod(f, 1, 2)
#> [1] 23.56242
discmethod(f, 1, 2)
#> [1] 19.47751