Skip to content

Commit 0d42e23

Browse files
author
Release Manager
committed
gh-36143: Fix two "Computational Math.." book doctests Nothing interesting here, just two minor tweaks that are needed probably due to a giac upgrade. URL: #36143 Reported by: Michael Orlitzky Reviewer(s): Kwankyu Lee, Michael Orlitzky
2 parents 1a76c80 + da754e1 commit 0d42e23

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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::

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@
5656
5757
Sage example in ./recequadiff.tex, line 459::
5858
59-
sage: desolve(y == x*diff(y,x)-diff(y,x)^2, y,
60-
....: contrib_ode=True, show_method=True)
61-
[[y(x) == -_C^2 + _C*x, y(x) == 1/4*x^2], 'clairault']
59+
sage: diffeq = y == x*diff(y,x)-diff(y,x)^2
60+
sage: solution,method = desolve(diffeq,
61+
....: y,
62+
....: contrib_ode=True,
63+
....: show_method=True)
64+
sage: solution
65+
[y(x) == -_C^2 + _C*x, y(x) == 1/4*x^2]
66+
sage: method in ["clairaut", "clairault"]
67+
True
6268
6369
Sage example in ./recequadiff.tex, line 487::
6470

0 commit comments

Comments
 (0)