Cody

Solution 1160760

Submitted on 12 Apr 2017 by Jihye Sofia Seo
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   Pass
x = 10; y = 52.2735299670437; assert(abs(infinteroots(x)-y)<1e-11)

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

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

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

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