Cody

Solution 1144720

Submitted on 23 Mar 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   Fail
assert(abs(need2(1)-1)<0.001)

Error: File: solution.m Line: 2 Column: 23 Unexpected MATLAB expression.

2   Fail
assert(abs(need2(2)-0.6667)<0.001)

Error: File: solution.m Line: 2 Column: 23 Unexpected MATLAB expression.

3   Fail
assert(abs(need2(10)-0.5263)<0.001)

Error: File: solution.m Line: 2 Column: 23 Unexpected MATLAB expression.

4   Fail
assert(abs(need2(100)-0.5025)<0.001)

Error: File: solution.m Line: 2 Column: 23 Unexpected MATLAB expression.

5   Fail
assert(abs(need2(1000)-0.5003)<0.001)

Error: File: solution.m Line: 2 Column: 23 Unexpected MATLAB expression.

Suggested Problems

More from this Author100