Skip to content

Commit a1d4c2f

Browse files
committed
Add "abs tol" to an ODE doctest.
A "Computational Math..." book test fails for me with, Expected: [[0, 1], [0.5, 1.12419127424558], [1.0, 1.461590162288825]] Got: [[0, 1], [0.5, 1.12419127424558], [1.0, 1.4615901622888245]] An "abs tol" fixes the issue backwards-compatibly.
1 parent 04232a4 commit a1d4c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
Sage example in ./integration.tex, line 1363::
254254
255255
sage: t, y = var('t, y')
256-
sage: desolve_rk4(t*y*(2-y), y, ics=[0,1], end_points=[0, 1], step=0.5)
256+
sage: desolve_rk4(t*y*(2-y), y, ics=[0,1], end_points=[0, 1], step=0.5) # abs tol 1e-12
257257
[[0, 1], [0.5, 1.12419127424558], [1.0, 1.461590162288825]]
258258
259259
Sage example in ./integration.tex, line 1399::

0 commit comments

Comments
 (0)