From e09659cdcb64bc0b0d1ce2e5da1b992e0223e3e9 Mon Sep 17 00:00:00 2001 From: pbrod Date: Wed, 1 Jun 2016 02:09:47 +0200 Subject: [PATCH] Added doctests to stirlerr --- wafo/misc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wafo/misc.py b/wafo/misc.py index 68a16be..c937c48 100644 --- a/wafo/misc.py +++ b/wafo/misc.py @@ -2136,8 +2136,13 @@ def stirlerr(n): True >>> np.allclose(wm.stirlerr(12), 0.00694284) True + >>> np.allclose(wm.stirlerr(25), 0.00333316) + True >>> np.allclose(wm.stirlerr(70), 0.00119047) True + >>> np.allclose(wm.stirlerr(100), 0.00083333) + True + See also ---------