Cody

# Problem 420. Sum the Infinite Series II

Solution 1236596

Submitted on 22 Jul 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; c = infinite_series2(x); c_correct = 0.8783264829967111; assert(abs(c-c_correct)<50*eps*abs(c_correct))

ans = 0.8564

Assertion failed.

2   Fail
x = sqrt(3); c = infinite_series2(x); c_correct = 0.7603863252347075; assert(abs(c-c_correct)<50*eps*abs(c_correct)) % %% % x = 6.28318; % c = infinite_series2(x); % c_correct = 306.9401397805991110; % assert(abs(c-c_correct)<50*eps*abs(c_correct))

ans = 0.7573

Assertion failed.

3   Fail
x = 39/7; c = infinite_series2(x); c_correct = 0.9836348579190693; assert(abs(c-c_correct)<50*eps*abs(c_correct))

ans = 0.9495

Assertion failed.

4   Fail
x = 1.5e-5; c = infinite_series2(x); c_correct = 182.5748704878243416; assert(abs(c-c_correct)<50*eps*abs(c_correct))

ans = 25.2501

Assertion failed.