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

Commit 2f6945a

Browse files
committed
#12455 Airy functions: avoid calling deprecated function
1 parent c80be63 commit 2f6945a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sage/functions/airy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
from sage.symbolic.function import BuiltinFunction
4949
from sage.symbolic.expression import Expression
50-
from sage.symbolic.function import is_inexact
5150
from sage.symbolic.ring import SR
5251
from sage.structure.coerce import parent as sage_structure_coerce_parent
5352
from sage.functions.other import gamma
@@ -126,7 +125,7 @@ def _eval_(self, alpha, x):
126125
"""
127126
if not isinstance(x, Expression) and \
128127
not isinstance(alpha, Expression):
129-
if is_inexact(x):
128+
if self._is_numerical(x):
130129
return self._evalf_(alpha, x)
131130
if alpha == 0:
132131
return airy_ai_simple(x)

0 commit comments

Comments
 (0)