Cody

Solution 1228789

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

mm = 21 mm_correct = 21

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

mm = 21 mm_correct = 21

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 'o'. Error in telescope (line 4) o; Error in TestPoint3 (line 2) mm = telescope(d,b,p)