Cody

Solution 1814874

Submitted on 14 May 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
g=32; h=10000; v_correct = 800; assert(isequal(canon(g,h),v_correct))

Undefined function or variable 'h'. Error in canon (line 2) v = sqrt(g*2*h); Error in Test1 (line 3) assert(isequal(canon(g,h),v_correct))

2   Fail
g=32; h=100; v_correct = 80; assert(isequal(canon(g,h),v_correct))

Undefined function or variable 'h'. Error in canon (line 2) v = sqrt(g*2*h); Error in Test2 (line 3) assert(isequal(canon(g,h),v_correct))

3   Fail
g=32; h=4; v_correct = 16; assert(isequal(canon(g,h),v_correct))

Undefined function or variable 'h'. Error in canon (line 2) v = sqrt(g*2*h); Error in Test3 (line 3) assert(isequal(canon(g,h),v_correct))

Suggested Problems

More from this Author100