Cody

# Problem 43595. Find the Sum of the Series:

Solution 2217192

Submitted on 17 Apr 2020
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 = 3; e=0.01 y_correct = 19.846; tolerance = 1e-2; assert(abs((evalSum(x,e))-y_correct(1))<tolerance)

e = 0.0100 rat = 1 rat = 0.6000 rat = 0.3750 rat = 0.2195 rat = 0.1164 rat = 0.0550 rat = 0.0230 rat = 0.0086

Assertion failed.

2   Fail
x = 5; e=0.001; y_correct = 148.3096; tolerance = 1e-2; assert(abs((evalSum(x,e))-y_correct(1))<tolerance)

rat = 1 rat = 0.7143 rat = 0.5435 rat = 0.4045 rat = 0.2880 rat = 0.1936 rat = 0.1215 rat = 0.0706 rat = 0.0377 rat = 0.0185 rat = 0.0083 rat = 0.0035 rat = 0.0013 rat = 4.7504e-04

Assertion failed.

3   Fail
x = 0.2; e=0.001 y_correct = 1.2213; tolerance = 1e-2; assert(abs((evalSum(x,e))-y_correct(1))<tolerance)

e = 1.0000e-03 rat = 1 rat = 0.0909 rat = 0.0060 rat = 3.0111e-04

Assertion failed.

4   Fail
x = 1; e=0.1 y_correct = 2.5000; tolerance = 1e-2; assert(abs((evalSum(x,e))-y_correct(1))<tolerance)

e = 0.1000 rat = 1 rat = 0.3333 rat = 0.1000

Assertion failed.