How can one get second value for Lambert W?

34 views
Skip to first unread message

Bill Bell

unread,
Apr 19, 2016, 1:21:06 PM4/19/16
to sympy
For instance, there are two roots to the equation for which  N(-LambertW(-log(2)/8)/log(2)) is a solution but when I enter this sympy yields just 0.137499628779701.

What can I do to obtain the second value?

TIA.

Aaron Meurer

unread,
Apr 19, 2016, 1:24:09 PM4/19/16
to sy...@googlegroups.com
The second argument to LambertW lets you specify the branch. In this
case, the -1 branch gives the other real root:

In [28]: N(-LambertW(-log(2)/8, -1)/log(2))
Out[28]: 5.44490755461021

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/f7ba9eca-010f-490b-ae88-41e109b82abe%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Bill Bell

unread,
Apr 19, 2016, 1:36:22 PM4/19/16
to sympy

Ah! Thank you.
Reply all
Reply to author
Forward
0 new messages