Skip to content

Commit da754e1

Browse files
committed
Handle a typo-fix in an ODE doctest.
One "Computational Math..." book test fails for me with, Expected: [[y(x) == -_C^2 + _C*x, y(x) == 1/4*x^2], 'clairault'] Got: [[y(x) == -_C^2 + _C*x, y(x) == 1/4*x^2], 'clairaut'] This looks like a typo that was fixed. For backwards compatibility, the doctest has been updated to accept both outputs in the second component.
1 parent a1d4c2f commit da754e1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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)