#13271: wrong sign with function Ei and limit
-------------------------+--------------------------------------------------
   Reporter:  dkrenn     |             Owner:  burcin       
       Type:  defect     |            Status:  new          
   Priority:  major      |         Milestone:  sage-5.3     
  Component:  symbolics  |          Keywords:  Ei limit sign
Work issues:             |   Report Upstream:  N/A          
  Reviewers:             |           Authors:               
  Merged in:             |      Dependencies:               
   Stopgaps:             |  
-------------------------+--------------------------------------------------
 We have
 {{{
 sage: (Ei(-Z)).limit(Z=oo)
 Infinity
 }}}
 which is wrong, since it should be 0. It seems that there goes something
 wrong with the {{{-}}} sign. This can be also seen here:
 {{{
 sage: (Ei(-Z)).limit(Z=1000)
 -Ei(1000)
 sage: (Ei(-Z)).limit(Z=1000).n()
 -1.97204513714124e431
 }}}
 But
 {{{
 sage: Ei(-1000).n()
 -5.07089306023517e-438
 sage: -Ei(1000).n()
 -1.97204513714124e431
 }}}
 which are the correct results.

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