## huber method
volume(height = 10, dm = 35)
volume(height = 10, circum = 100)
## smalian method
volume(height = 10, do = 45, ds = 15, method = "smalian")
volume(height = 10, circumo = 200, circums = 110, method = "smalian")
## cone method
volume(height = 10, do = 45, ds = 15, method = "cone")
volume(height = 10, circumo = 200, circums = 110, method = "cone")
## newton method
volume(height = 10, dm = 35, do = 45, ds = 15, method = "newton")
volume(height = 10, circum = 100, circumo = 200, circums = 110, method = "newton")
Run the code above in your browser using DataLab