#10072: Bug in log gamma evaluation
-----------------------------------+----------------------------------------
   Reporter:  kcrisman             |       Owner:  AlexGhitza
       Type:  defect               |      Status:  needs_work
   Priority:  major                |   Milestone:  sage-4.6.1
  Component:  basic arithmetic     |    Keywords:            
     Author:                       |    Upstream:  N/A       
   Reviewer:                       |      Merged:            
Work_issues:  easy patch to write  |  
-----------------------------------+----------------------------------------
Changes (by zimmerma):

  * status:  new => needs_work
  * work_issues:  => easy patch to write


Comment:

 I found the reason of the bug. In {{{symbolic/pynac.pyx}}}, function
 {{{py_lgamma}}}, it is
 written {{{CC(x).log().gamma()}}} instead of {{{CC(x).gamma().log()}}}:
 {{{
 sage: CC(I).log().gamma()
 -0.0219785471672303 - 0.168184318273662*I
 sage: CC(I).gamma().log()
 -0.650923199301856 - 1.87243664726243*I
 }}}
 If somebody provides a patch, I will review it.

 Paul

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10072#comment:10>
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.

Reply via email to