#12410: divergent alternating sum gives finite result
------------------------+---------------------------------------------------
   Reporter:  dkrenn    |          Owner:  burcin                          
       Type:  defect    |         Status:  new                             
   Priority:  major     |      Milestone:  sage-5.0                        
  Component:  calculus  |       Keywords:  alternating sum divergent result
Work_issues:            |       Upstream:  N/A                             
   Reviewer:            |         Author:                                  
     Merged:            |   Dependencies:                                  
------------------------+---------------------------------------------------
 The two sums
 {{{
 sage: var('x');
 sage: sum(1/x*(-1)^x, x, 1, oo)
 -log(2)
 sage: sum(1/x*(-1)^x, x, 0, oo)
 -log(2)
 }}}
 return the same, but shouldn't. The latter sum is divergent because of the
 summand `1/0`.

 It works correctly, when not using the `(-1)^x`, e.g.:
 {{{
 sage: sum(1/x^2, x, 1, oo)
 1/6*pi^2
 sage: sum(1/x^2, x, 0, oo)
 Traceback (most recent call last)
 ...
 ValueError: Sum is divergent.
 }}}
 (Calculating `sum(1/x^2*(-1)^x, x, 0, oo)` gives the wrong result, too.)

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