Cody

Solution 2019829

Submitted on 14 Nov 2019
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
assert(abs(P(1)-1)<10*eps)

Undefined function 'P' for input arguments of type 'double'. Error in Test1 (line 1) assert(abs(P(1)-1)<10*eps)

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

Undefined function 'P' for input arguments of type 'double'. Error in Test2 (line 1) assert(abs(P(2)-exp(1)+2)<10*eps)

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

Undefined function 'P' for input arguments of type 'double'. Error in Test3 (line 1) assert(abs(P(3)-0.563436343081910)<10*eps)

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

Undefined function 'P' for input arguments of type 'double'. Error in Test4 (line 1) assert(abs(P(10)-0.228001515486442)<10*eps)

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

Undefined function 'P' for input arguments of type 'double'. Error in Test5 (line 1) assert(abs(P(20)-0.123803830762570)<10*eps)

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

Undefined function 'P' for input arguments of type 'double'. Error in Test6 (line 1) assert(abs(P(50)-0.052293638299222)<10*eps)

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

Undefined function 'P' for input arguments of type 'double'. Error in Test7 (line 1) assert(abs(P(99)-0.026916294692673)<10*eps)