Cody

Solution 934168

Submitted on 10 Aug 2016
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)

x = 0.5671

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

x = 0

Assertion failed.

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

x = 0

Assertion failed.

Suggested Problems

More from this Author8