#12521: evaluate log gamma for complex input
------------------------------------+---------------------------------------
Reporter: kcrisman | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-5.1
Component: basic arithmetic | Resolution:
Keywords: lgamma log_gamma | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
------------------------------------+---------------------------------------
Comment (by zimmerma):
by the way, MPFR provides two functions: {{{mpfr_lngamma}}} indeed returns
{{{NaN}}} between
{{{-2k-1}}} and {{{-2k}}} for {{{k}}} a non-negative integer.
However there is another function {{{mpfr_lgamma}}} which returns
{{{log(abs(gamma(x)))}}},
and separately the sign of {{{gamma(x)}}}. It suffices to add {{{pi*I}}}
when the sign is
negative.
This would solve the problem at least for real input.
Paul
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12521#comment:4>
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.