Skip to content

Commit

Permalink
src/sage/interfaces/fricas.py: Do not rely on '# tol' for complex tol…
Browse files Browse the repository at this point in the history
…erances; cf. #36631
  • Loading branch information
Matthias Koeppe committed Nov 18, 2023
1 parent bba7057 commit 70492f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/interfaces/fricas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,13 +1608,13 @@ def _sage_expression(fricas_InputForm):
Check that :trac:`25602` is fixed::
sage: r = fricas.integrate(72000/(1+x^5), x).sage()
sage: n(r.subs(x=5) - r.subs(x=3)) # tol 0.1
193.020947266210
sage: abs(n(r.subs(x=5) - r.subs(x=3)) - 193.020947266210) <= 0.1
True
sage: var("a"); r = fricas.integrate(72000*a^8/(a^5+x^5), x).sage()
a
sage: n(r.subs(a=1, x=5) - r.subs(a=1, x=3)) # tol 0.1
193.020947266268 - 8.73114913702011e-11*I
sage: abs(n(r.subs(a=1, x=5) - r.subs(a=1, x=3)) - 193.020947266268) <= 0.1
True
Check conversions of sums and products::
Expand Down

0 comments on commit 70492f2

Please sign in to comment.