#11888: Sage is missing the lambert_w function conversion from Maxima
-------------------------------------------------------------------+--------
Reporter: benjaminfjones |
Owner: burcin
Type: defect |
Status: needs_work
Priority: minor |
Milestone: sage-5.0
Component: symbolics |
Keywords: lambert_w symbolics conversion maxima sd35.5
Work_issues: add second parameter, RDF/CDF stuff |
Upstream: N/A
Reviewer: Keshav Kini, Karl-Dieter Crisman, Fredrik Johansson |
Author: Benjamin Jones
Merged: |
Dependencies:
-------------------------------------------------------------------+--------
Comment(by benjaminfjones):
OK, I made a second attempt. The patch isn't complete (I need to fix and
add docstrings and do more testing) and is *not* ready for review, but if
the reviewers will take a look at the basic implementation and give me
feedback, I'd appreciate it.
In [attachment:trac_11888_v2.patch] there is a new symbolic function
`lambert_w_branch` which takes two arguments, a complex number `z` and an
integer branch `n`. This is implemented using scipy.special.lambertw for
RDF/CDF arguments z and using mpmath otherwise.
There is also a wrapper function `lambert_w` that accepts either one or
two arguments. For one argument it returns the principle branch
`lambert_w_branch(z,0)`, for two it returns `lambert_w_branch(z,n)`. I
still need to add the conversion from Maxima (by hand now, since
`lambert_w` doesn't inherit from !BuiltinFunction any more).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11888#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.