Cody

Solution 2634766

Submitted on 30 Jun 2020 by Nikolaos Nikolaou
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
A = 1; x = LambertW(A); A_correct = x*exp(x); assert(abs(A_correct/A-1)<1e-5)

i = 5.671440000000000e-01 x = 5.671440000000000e-01

2   Pass
A = 6.8; x = LambertW(A); A_correct = x*exp(x); assert(abs(A_correct/A-1)<1e-5)

i = 1.506881000000000e+00 x = 1.506881000000000e+00

3   Pass
A = 14; x = LambertW(A); A_correct = x*exp(x); assert(abs(A_correct/A-1)<1e-5)

i = 1.964050000000000e+00 x = 1.964050000000000e+00