Skip to content

Commit

Permalink
sagemathgh-36862: Fix one doctest for giac 1.9.0-73
Browse files Browse the repository at this point in the history
With giac 1.9.0-73 the output of a `symbolic_sum()` test changes. Note
that both answers are correct, and it's not clear that one is "better"
than the other...

I managed to find a way to avoid trouble (by sending the output through
`factor()`) so the output is the same with latest giac and earlier giac.

However, fixing doctests keeps getting harder (I mean: making sure the
same doctest works for different releases of dependencies). I don't have
a good idea on how to improve the situation.

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.

URL: sagemath#36862
Reported by: Gonzalo Tornaría
Reviewer(s): Matthias Köppe
  • Loading branch information
Release Manager committed Dec 13, 2023
2 parents c85cb61 + a921710 commit 2395f7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=configure-VERSION.tar.gz
sha1=60efc2b1ac7c0dcd9175cbfad5beefaf8969f24f
md5=0dc99ff8479a481293e59816a5d21488
cksum=2783976116
sha1=5bb6e594b35fce9bc66e06f620018bd18eb8346e
md5=33c8854fa8d6f356c99ebfc55c2cf884
cksum=1833053275
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f66d283d487c6f8bcee6e135c93c5613796ce9e2
e8571725a77eee05f130807f4638ad9043412d52
4 changes: 2 additions & 2 deletions src/sage/calculus/calculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ def symbolic_sum(expression, v, a, b, algorithm='maxima', hold=False):
An example of this summation with Giac::
sage: symbolic_sum(1/(1+k^2), k, -oo, oo, algorithm='giac')
(pi*e^(2*pi) - pi*e^(-2*pi))/(e^(2*pi) + e^(-2*pi) - 2)
sage: symbolic_sum(1/(1+k^2), k, -oo, oo, algorithm='giac').factor()
pi*(e^(2*pi) + 1)/((e^pi + 1)*(e^pi - 1))
The same summation is solved by SymPy::
Expand Down

0 comments on commit 2395f7b

Please sign in to comment.