In the Sage support list we have the following message about a divergent integral giving a solution with the optional package simplify_sum.
"In maxima 5.47.0 I get:
(%i1) load(simplify_sum)$
(%i2) simplify_sum( sum(n*(-1)^n,n,1,inf));
-1/4
This happens both on sage's ECL based one and on the system maxima (running on SBCL). "
That this is a reversion is seen from the following:
Maxima 5.42.2 http://maxima.sourceforge.net
using Lisp ECL 16.1.2
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) load(simplify_sum)$
(%i2) simplify_sum( sum(n*(-1)^n,n,1,inf));
(%o2) ind
With Maxima 5.48.1, we're back to the incorrect value of
indThis result is wrong and it is due to a bug in the limit
The output
%o12is correct, but the output%o13should beund, notind.Thanks for this reporting this bug.
Specifically, this is a bug in
simplimplus:For other
simplimplusbugs, see #4137 simplimplus bugs.This bug can be eliminated by altering the bit of
simplimplus1code that returns the limit when one or more terms have an undefined limit:Simplified:
This revision fixes two testsuite bugs
And it fixes the bug in the ticket:
Fixed by Commit [bef598]. Tests appended to
rtest_simplify_sumandrtest_limit_extra. Closing this ticket.Related
Commit: [bef598]