void-packages/srcpkgs/sagemath/patches/trac-33398-fix_doctest_sympy_1.10-c49eff347454ac7f07e5918470b20e97b8f2357e.patch
Gonzalo Tornaría 300bcb86a8 sagemath: rebuild for package updates
- compatibility with lrcalc 2.1 (trac #31355)
 - fix doctests for ipython-8.1 (trac #33170)
 - fix doctests for scipy-1.8 (trac #33336)
 - fix doctests for sympy-1.10 (trac #33398)
 - fix doctests when sphinx is installed (trac #33585)
 - use new package threejs-sage for 3d plots
2022-04-04 22:22:54 +02:00

30 lines
1.1 KiB
Diff

From c49eff347454ac7f07e5918470b20e97b8f2357e Mon Sep 17 00:00:00 2001
From: Matthias Koeppe <mkoeppe@math.ucdavis.edu>
Date: Fri, 4 Mar 2022 15:14:43 -0800
Subject: src/sage/calculus/calculus.py: Update laplace doctest for sympy 1.10
---
src/sage/calculus/calculus.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/sage/calculus/calculus.py b/src/sage/calculus/calculus.py
index 9c2f226..b335093 100644
--- a/src/sage/calculus/calculus.py
+++ b/src/sage/calculus/calculus.py
@@ -1639,9 +1639,9 @@ def laplace(ex, t, s, algorithm='maxima'):
sage: laplace(dirac_delta(t), t, s)
1
sage: F, a, cond = laplace(dirac_delta(t), t, s, algorithm='sympy')
- sage: a, cond
- (-oo, True)
- sage: F # random - sympy <1.9 includes undefined heaviside(0) in answer
+ sage: a, cond # random - sympy <1.10 gives (-oo, True)
+ (0, True)
+ sage: F # random - sympy <1.9 includes undefined heaviside(0) in answer
1
sage: laplace(dirac_delta(t), t, s, algorithm='giac')
1
--
cgit v1.0-1-gd88e