Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 6e7166a

Browse files
author
Travis Scrimshaw
committed
Added doctest for ticket.
1 parent a3c4cf3 commit 6e7166a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/interfaces/maxima_lib.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,13 @@ def sr_sum(self,*args):
795795
Traceback (most recent call last):
796796
...
797797
ValueError: Sum is divergent.
798+
799+
An error with an infinite sum in Maxima (before 5.30.0,
800+
see :trac:`13712`)::
801+
802+
sage: n = var('n')
803+
sage: sum(1/((2*n-1)^2*(2*n+1)^2*(2*n+3)^2), n, 0, oo)
804+
3/256*pi^2
798805
"""
799806
try:
800807
return max_to_sr(maxima_eval([[max_ratsimp],[[max_simplify_sum],([max_sum],[sr_to_max(SR(a)) for a in args])]]));

0 commit comments

Comments
 (0)