Cody

Problem 42531. volume of torus

Solution 920953

Submitted on 9 Jul 2016 by Riazul Arefin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
a = 8; b = 3; y_correct = 1421.2296; assert(isequal(torus_volm(a,b),y_correct))

y = 1.4212e+03

2   Pass
a = 6; b = 2; y_correct = 473.7432; assert(isequal(torus_volm(a,b),y_correct))

y = 473.7432

Suggested Problems

More from this Author18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!