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

Commit

Permalink
17505: fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed May 12, 2017
1 parent d420ec4 commit 5779423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/functions/other.py
Expand Up @@ -2615,7 +2615,7 @@ def _print_latex_(self, x, var, a, b):
sage: from sage.functions.other import symbolic_sum as ssum
sage: latex(ssum(x^2, x, 1, 10))
\sum_{x=1}^{10} x^2
{\sum_{x=1}^{10} x^2}
"""
return r"{{\sum_{{{}={}}}^{{{}}} {}}}".format(var, a, b, x)

Expand Down Expand Up @@ -2662,7 +2662,7 @@ def _print_latex_(self, x, var, a, b):
sage: from sage.functions.other import symbolic_product as sprod
sage: latex(sprod(x^2, x, 1, 10))
\prod_{x=1}^{10} x^2
{\prod_{x=1}^{10} x^2}
"""
return r"{{\prod_{{{}={}}}^{{{}}} {}}}".format(var, a, b, x)

Expand Down

0 comments on commit 5779423

Please sign in to comment.