Cody

Solution 118115

Submitted on 24 Jul 2012 by Aurelien Queffurust
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
%% assert(abs(P(1)-1)<10*eps)

ans = 1.0000

2   Pass
%% assert(abs(P(2)-exp(1)+2)<10*eps)

ans = 0.7183

3   Pass
%% assert(abs(P(3)-0.563436343081910)<10*eps)

ans = 0.5634

4   Pass
%% assert(abs(P(10)-0.228001515486442)<10*eps)

ans = 0.2280

5   Pass
%% assert(abs(P(20)-0.123803830762570)<10*eps)

ans = 0.1238

6   Pass
%% assert(abs(P(50)-0.052293638299222)<10*eps)

ans = 0.0523

7   Pass
%% assert(abs(P(99)-0.026916294692673)<10*eps)

ans = 0.0269