#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:             |  
-----------------------+----------------------------------------------------
 Although log(x) function in new symbolics is appeared to be defined for
 entire complex plane, it throws out error sometime

 (1) Negative argument

 {{{
 sage: log(-1 + 0*I)
 I*pi
 sage: log(-1)
 ...
 ValueError: self must be positive
 }}}
 It behaves differently for mathematically equivalent arguments.


 (2) Value of log(x) at x=0

 {{{
 sage: log(0)
 ...
 ValueError: self must be positive
 }}}

 log(0) should throw out an unevaluated symbolic expression "log(0)"
 instead of raising error. Depending on the way it appears in an
 expression, one could use it for simplifications.

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