Problem 42825. solid of revolution
Given an real polynomial P and two real numbers a,b with 0<=a<=b. Calculate the volume of the solid of revolution made by rotating P around the x-axis in the intervall [a,b]! Return the volume in multiples of pi!
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 30 Jun 2020
Please, fix the asserts. Test case 4 was complaining about an error of 1.136868377216160e-13, which is very close to my machine precision. Unless we want people to use a specific method or technique, we shouldn't request an exact value.
goc3
on 29 Sep 2020
The test suite has been updated with a tolerance rather than requiring exact values.
Solution Comments
Show commentsProblem Recent Solvers38
Suggested Problems
-
All your base are belong to us
532 Solvers
-
Omit columns averages from a matrix
580 Solvers
-
Matrix with different incremental runs
487 Solvers
-
Back to basics - mean of corner elements of a matrix
405 Solvers
-
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
1454 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!