Skip to content

Commit 870fa22

Browse files
Matthias Koeppedimpase
authored andcommitted
src/sage/functions/special.py: Use 'abs tol' instead of 'tol' in two examples
1 parent ace41e4 commit 870fa22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/functions/special.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def __init__(self):
511511
Check that :trac:`34085` is fixed::
512512
513513
sage: _ = var("x y") # needs sage.symbolic
514-
sage: fricas(elliptic_e(x, y)) # optional - fricas, needs sage.symbolic
514+
sage: fricas(elliptic_e(x, y)) # optional - fricas, needs sage.symbolic
515515
ellipticE(sin(x),y)
516516
517517
However, the conversion is only correct in the interval
@@ -525,7 +525,7 @@ def __init__(self):
525525
sage: f = lambda x, y: elliptic_e(arcsin(x), y).subs(x=x, y=y)
526526
sage: g = lambda x, y: fricas.ellipticE(x, y).sage()
527527
sage: d = lambda x, y: f(x, y) - g(x, y)
528-
sage: [d(N(-pi/2 + x), y) # tol 1e-8 # optional - fricas, needs sage.symbolic
528+
sage: [d(N(-pi/2 + x), y) # abs tol 1e-8 # optional - fricas, needs sage.symbolic
529529
....: for x in range(1, 3) for y in range(-2, 2)]
530530
[0.000000000000000,
531531
0.000000000000000,
@@ -877,7 +877,7 @@ def __init__(self):
877877
Check that :trac:`34186` is fixed::
878878
879879
sage: _ = var("x y") # needs sage.symbolic
880-
sage: fricas(elliptic_f(x, y)) # optional - fricas, needs sage.symbolic
880+
sage: fricas(elliptic_f(x, y)) # optional - fricas, needs sage.symbolic
881881
ellipticF(sin(x),y)
882882
883883
However, the conversion is only correct in the interval
@@ -891,7 +891,7 @@ def __init__(self):
891891
sage: f = lambda x, y: elliptic_f(arcsin(x), y).subs(x=x, y=y)
892892
sage: g = lambda x, y: fricas.ellipticF(x, y).sage()
893893
sage: d = lambda x, y: f(x, y) - g(x, y)
894-
sage: [d(N(-pi/2 + x), y) # tol 1e-8 # optional - fricas, needs sage.symbolic
894+
sage: [d(N(-pi/2 + x), y) # abs tol 1e-8 # optional - fricas, needs sage.symbolic
895895
....: for x in range(1, 3) for y in range(-2,2)]
896896
[0.000000000000000,
897897
0.000000000000000,

0 commit comments

Comments
 (0)