Cody

Solution 1160759

Submitted on 12 Apr 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
x = 1; y = 1; assert(abs(infinteroots(x)-y)<1e-11)

2   Fail
x = 10; y = 52.2735299670437; assert(abs(infinteroots(x)-y)<1e-11)

Assertion failed.

3   Fail
x=5; y=15.8864718332426; assert(abs(infinteroots(x)-y)<1e-11)

Assertion failed.

4   Fail
x=6; y=21.7311722059576; assert(abs(infinteroots(x)-y)<1e-11)

Assertion failed.

5   Fail
x=4; y=10.827015106694; assert(abs(infinteroots(x)-y)<1e-11)

Assertion failed.

6   Fail
x=3.2; y=7.37887287693964; assert(abs(infinteroots(x)-y)<1e-11)

Assertion failed.