Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Update doctests for SymPy 1.11
Browse files Browse the repository at this point in the history
Doctests related to SymPy's rsolve function are updated in:

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

The form of the output from SymPy has changed since

sympy/sympy#23567
  • Loading branch information
oscarbenjamin committed Jul 11, 2022
1 parent 08dc8fd commit 04d0344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sage/calculus/test_sympy.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
sage: u = Function('u')
sage: n = Symbol('n', integer=True)
sage: f = u(n+2) - u(n+1) + u(n)/4
sage: 2**n * rsolve(f,u(n))
C1*n + C0
sage: expand(2**n * rsolve(f,u(n)))
2*C1*n + C0
"""
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
sage: from sympy import rsolve_hyper
sage: from sympy.abc import n
sage: rsolve_hyper([-2,1],2**(n+2),n)
2**n*C0 + 2**(n + 2)*(C0 + n/2)
2**n*C0 + 2**(n + 1)*n
"""

0 comments on commit 04d0344

Please sign in to comment.