Problem 42531. volume of torus
22.84% Correct | 77.16% Incorrect
Last Solution submitted on Dec 08, 2022
Alfonso Nieto-Castanon on 24 Aug 2015
solutions are rounded in a somewhat arbitrary fashion...
Jihye Sofia Seo on 10 Feb 2017
Your value of pi is wrong.
Rafael S.T. Vieira on 28 Aug 2020
The problem should specify that the used value for pi is 3.1416 (since this is not its true value), and that we need to use floor with precision of 4 decimal places.
Problem Recent Solvers49
Rounding off numbers to n decimals
Given the variable x as your input, multiply it by four, then divide it by two. Then put the result in y.
More from this Author16
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!