#7822: pynac log function cannot handle float arguments <= 0
-------------------------+--------------------------------------------------
   Reporter:  burcin     |       Owner:  burcin       
       Type:  defect     |      Status:  new          
   Priority:  major      |   Milestone:  sage-4.3.1   
  Component:  symbolics  |    Keywords:               
Work_issues:             |      Author:  Burcin Erocal
   Upstream:  N/A        |    Reviewer:               
     Merged:             |  
-------------------------+--------------------------------------------------
 After changes in #7490 to sage.symbolic.pynac.py_log, symbolic log
 function cannot handle float arguments <= 0:

 {{{
 sage: from sage.functions.log import function_log
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /home/burcin/.sage/temp/karr/16530/_home_burcin__sage_init_sage_0.py in
 <module>()

 /home/burcin/sage/sage-4.3/local/lib/python2.6/site-
 packages/sage/symbolic/function.so in
 sage.symbolic.function.GinacFunction.__call__
 (sage/symbolic/function.cpp:5305)()

 /home/burcin/sage/sage-4.3/local/lib/python2.6/site-
 packages/sage/symbolic/function.so in
 sage.symbolic.function.Function.__call__
 (sage/symbolic/function.cpp:3560)()

 /home/burcin/sage/sage-4.3/local/lib/python2.6/site-
 packages/sage/symbolic/pynac.so in sage.symbolic.pynac.py_log
 (sage/symbolic/pynac.cpp:10778)()

 ValueError: math domain error
 }}}

 Attached patch fixes the problem.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7822>
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