Cody

# Problem 43069. Find the volume of cone

Solution 1722603

Submitted on 7 Feb 2019
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   Fail
r = 6/sqrt(pi); h = 1; y = coneVolume(r,h) y_correct = 12; assert(abs(y-y_correct)<1e-3)

Undefined function 'coneVolume' for input arguments of type 'double'. Error in Test1 (line 3) y = coneVolume(r,h)

2   Fail
r = 4.7; h = 2.3; y = coneVolume(r,h) y_correct = 53.2050; assert(abs(y-y_correct)<1e-3)

Undefined function 'coneVolume' for input arguments of type 'double'. Error in Test2 (line 3) y = coneVolume(r,h)

3   Fail
r = 1.1; h = 1.21; y = coneVolume(r,h) y_correct = 1.5332; assert(abs(y-y_correct)<1e-3)

Undefined function 'coneVolume' for input arguments of type 'double'. Error in Test3 (line 3) y = coneVolume(r,h)

4   Fail
r = 10.7; h = 100; y = coneVolume(r,h) y_correct = 11989.36476; assert(abs(y-y_correct)<1e-3)

Undefined function 'coneVolume' for input arguments of type 'double'. Error in Test4 (line 3) y = coneVolume(r,h)

5   Fail
r = pi^3; h = exp(1); y = coneVolume(r,h) y_correct = 2736.6694; assert(abs(y-y_correct)<1e-3)

Undefined function 'coneVolume' for input arguments of type 'double'. Error in Test5 (line 3) y = coneVolume(r,h)

6   Fail
r = sqrt(5); h = sqrt(817); y = coneVolume(r,h) y_correct = 149.66135; assert(abs(y-y_correct)<1e-3)

Undefined function 'coneVolume' for input arguments of type 'double'. Error in Test6 (line 3) y = coneVolume(r,h)