Cody

Solution 1160758

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

Undefined function or variable 'e'. Error in infinteroots (line 2) y = x^e; Error in TestPoint1 (line 3) assert(abs(infinteroots(x)-y)<1e-11)

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

Undefined function or variable 'e'. Error in infinteroots (line 2) y = x^e; Error in TestPoint2 (line 3) assert(abs(infinteroots(x)-y)<1e-11)

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

Undefined function or variable 'e'. Error in infinteroots (line 2) y = x^e; Error in TestPoint3 (line 3) assert(abs(infinteroots(x)-y)<1e-11)

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

Undefined function or variable 'e'. Error in infinteroots (line 2) y = x^e; Error in TestPoint4 (line 3) assert(abs(infinteroots(x)-y)<1e-11)

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

Undefined function or variable 'e'. Error in infinteroots (line 2) y = x^e; Error in TestPoint5 (line 3) assert(abs(infinteroots(x)-y)<1e-11)

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

Undefined function or variable 'e'. Error in infinteroots (line 2) y = x^e; Error in TestPoint6 (line 3) assert(abs(infinteroots(x)-y)<1e-11)