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
Solution Comments
Show comments
Loading...
Problem Recent Solvers45
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53830 Solvers
-
How to find the position of an element in a vector without using the find function
2822 Solvers
-
Project Euler: Problem 7, Nth prime
1781 Solvers
-
Implement a bubble sort technique and output the number of swaps required
403 Solvers
-
Create an index-powered vector
968 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!
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.
The test suite has been updated with a tolerance rather than requiring exact values.