Cody

Problem 42737. Spherical Volume

Solution 3148516

Submitted on 10 Oct 2020 by Alex
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
radius= 1; Volume_correct = 4.1888; assert(abs(VolumeOfSphere(radius) - Volume_correct) < tolerance);

2   Pass
radius= 2; Volume_correct = 33.5103; assert(abs(VolumeOfSphere(radius) - Volume_correct) < tolerance);

3   Pass
radius= 3; Volume_correct = 113.0973; assert(abs(VolumeOfSphere(radius) - Volume_correct) < tolerance);

Suggested Problems

Community Treasure Hunt

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

Start Hunting!