Problem 133. Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.
Solution Stats
Problem Comments
-
10 Comments
I think the input are the radii, not the diameters, but I'm too lazy to check for sure.
not really, the test sequence is simply wrong.
I spend 20mn to understand that the data are inverted, thanks :|
and also five minus it is not diameter but radii, a is outer radii and b the radii of the hole
It should be specified more clear what the input parameters mean exactly geometrically.
What a waste! Calling a radius a diameter. I got numbers that were off by a factor of 8, which turned out to be that I had used the information that a and b were diameters, whereas Bistwas used them as radii. Please correct the problem definition.
If a is the hole diameter and b is the outermost diameter, how can a>b in the test cases?
Problem is written incorrectly.
test suite'answer is wrong if a and b is diameter instead of radius.
How do you incorporate the height if there is no variable to define it?
Solution Comments
Show commentsProblem Recent Solvers197
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15747 Solvers
-
Least common multiple of many numbers
253 Solvers
-
Calculate the area of a triangle between three points
3353 Solvers
-
1462 Solvers
-
Find out sum of all elements of given Matrix
526 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!