From aa3b5355cc265094cc682f89595451df502a8790 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Wed, 22 Feb 2017 04:11:24 +0100 Subject: [PATCH] Added even more doctests --- wafo/integrate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wafo/integrate.py b/wafo/integrate.py index d6c7371..6caf4aa 100644 --- a/wafo/integrate.py +++ b/wafo/integrate.py @@ -1084,6 +1084,10 @@ class _Quadgr(object): >>> np.allclose(q, 3.1415926535897811), err < 1.0e-12 (True, True) + >>> q, err = quadgr(lambda x: np.sqrt(4-x**2), 0, 0, abseps=1e-12) + >>> np.allclose(q, 0), err < 1.0e-12 + (True, True) + >>> q, err = quadgr(lambda x: x**-0.75, 0, 1) >>> np.allclose(q, 4), err < 1.e-13 (True, True)