#6388: Logarithm function log(x) is partially broken for x <= 0
-----------------------+----------------------------------------------------
 Reporter:  gmhossain  |       Owner:                        
     Type:  defect     |      Status:  new                   
 Priority:  major      |   Milestone:                        
Component:  symbolics  |    Keywords:  negative argument, log
 Reviewer:             |      Author:                        
   Merged:             |  
-----------------------+----------------------------------------------------

Comment(by kcrisman):

 Attach either patch, they are the same - things timed out on me and I
 wasn't sure if it uploaded the first time.  I can't figure out how to
 remove the redundant one.

 Please note that there should now be NO log(-1) that return an error
 (including log(RIF(-1)), log(float(-1)), and log(complex(-1))) and there
 should be NO log(0) that return a symbol or NaN (including the same
 types).  This is a change, but presumably will not break anything.  It
 does change the error message for
 {{{
 sage: plot(log,-1,1)
 }}}
 to something about complexes rather than math domain error, but that is
 not a big deal since it still plots.  It passed all tests for me.

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