#13526: simple incorrect limit
-------------------------+--------------------------------------------------
   Reporter:  pang       |             Owner:  burcin         
       Type:  defect     |            Status:  new            
   Priority:  minor      |         Milestone:                 
  Component:  symbolics  |          Keywords:  symbolic, limit
Work issues:             |   Report Upstream:  N/A            
  Reviewers:             |           Authors:                 
  Merged in:             |      Dependencies:                 
   Stopgaps:             |  
-------------------------+--------------------------------------------------
 Sage incorrectly computes:

 {{{
 var('n')
 l  = (3^n + (-2)^n) / (3^(n+1) + (-2)^(n+1))
 l.limit(n=oo)
 }}}
 gives 0.

 However,


 {{{
 var('n')
 l  = (3^n + (-2.0)^n) / (3^(n+1) + (-2)^(n+1))
 l.limit(n=oo)
 }}}

 gives the correct result 1/3, and

 {{{
 var('n')
 assume(n,'integer')
 l  = (3^n + (-2)^n) / (3^(n+1) + (-2)^(n+1))
 l.limit(n=oo)
 }}}

 also does.

 maxima also gives the value 0 to the corresponding limits, but changing
 (-2)\^n by (-2.0)\^n only produce meaningless results.

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