Cody

Solution 2177004

Submitted on 26 Mar 2020 by William
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
assert(abs(cable_01(50,120)-52.7537)<0.0001)

2   Pass
assert(abs(cable_01(50,200)-164.7918)<0.0001)

3   Pass
assert(isequal(cable_01(50,100),0))

4   Pass
assert(abs(cable_01(80,180)- 60.2058)<0.0001)

5   Pass
assert(abs(cable_01(100,180)-55.9443)<0.0001)

6   Pass
assert(abs(cable_01(100,199)-5.9740)<0.0001)

Suggested Problems

More from this Author145