Cody

Problem 1377. find radius of cone

Solution 2718549

Submitted on 21 Jul 2020
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
I=5,H=4; y_correct = 3; assert(isequal(coneradius(I,H),y_correct))

I = 5

Unrecognized function or variable 'h'. Error in coneradius (line 2) y = sqrt(I^2 - h^2); Error in Test1 (line 3) assert(isequal(coneradius(I,H),y_correct))

2   Fail
I=13,H=12; y_correct = 5; assert(isequal(coneradius(I,H),y_correct))

I = 13

Unrecognized function or variable 'h'. Error in coneradius (line 2) y = sqrt(I^2 - h^2); Error in Test2 (line 3) assert(isequal(coneradius(I,H),y_correct))

Suggested Problems

More from this Author13