Cody

Solution 1527701

Submitted on 13 May 2018
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
d=200; b=100; p=0.5; mm = telescope(d,b,p) mm_correct = 21 assert(abs(round(abs(mm))- mm_correct)<1000*eps)

Undefined function or variable 'meter'. Error in telescope (line 3) mm=1000*meter; Error in Test1 (line 2) mm = telescope(d,b,p)

2   Fail
d=100; b=200; p=0.5; mm = telescope(d,b,p) mm_correct = 21 assert(abs(round(abs(mm))- mm_correct)<1000*eps)

Undefined function or variable 'meter'. Error in telescope (line 3) mm=1000*meter; Error in Test2 (line 2) mm = telescope(d,b,p)

3   Fail
d=100; b=100; p=0.5; mm = telescope(d,b,p) mm_correct = 0 assert(round(abs(mm))== mm_correct)

Undefined function or variable 'meter'. Error in telescope (line 3) mm=1000*meter; Error in Test3 (line 2) mm = telescope(d,b,p)