def test_lambertw(): x = Symbol("x") e1 = sympy.LambertW(sympy.Symbol("x")) e2 = LambertW(x) assert sympify(e1) == e2 assert e2._sympy_() == e1
def test_issue_17898(): if not scipy: skip("scipy not installed") x = symbols("x") f_ = lambdify([x], sympy.LambertW(x, -1), modules='scipy') assert f_(0.1) == mpmath.lambertw(0.1, -1)