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

Commit b7e88d4

Browse files
committed
add doctest tolerances
1 parent ebac431 commit b7e88d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sage/functions/other.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,8 @@ def __init__(self):
10171017
10181018
EXAMPLES::
10191019
1020-
sage: gamma_inc(CDF(0,1), 3)
1021-
0.0032085749933691158 + 0.012406185811871568*I
1020+
sage: gamma_inc(CDF(0,1), 3) # abs tol 1e-15
1021+
0.003208574993369116 + 0.01240618581187156*I
10221022
sage: gamma_inc(RDF(1), 3)
10231023
0.049787068367863944
10241024
sage: gamma_inc(3,2)
@@ -1115,16 +1115,16 @@ def _evalf_(self, x, y, parent=None, algorithm='pari'):
11151115
Check that :trac:`17328` is fixed::
11161116
11171117
sage: gamma_inc(float(-1), float(-1))
1118-
(-0.8231640121031085+3.141592653589793j)
1118+
(-0.8231640121031085...3.141592653589793j)
11191119
sage: gamma_inc(RR(-1), RR(-1))
1120-
-0.823164012103109 + 3.14159265358979*I
1120+
-0.823164012103109 ... 3.14159265358979*I
11211121
sage: gamma_inc(-1, float(-log(3))) - gamma_inc(-1, float(-log(2))) # abs tol 1e-15
11221122
(1.2730972164471142+0j)
11231123
11241124
Check that :trac:`17130` is fixed::
11251125
1126-
sage: r = gamma_inc(float(0), float(1)); r
1127-
0.21938393439552029
1126+
sage: r = gamma_inc(float(0), float(1)); r # abs tol 1e-15
1127+
0.2193839343955202
11281128
sage: type(r)
11291129
<type 'float'>
11301130
"""

0 commit comments

Comments
 (0)