def _eval_evalf(self, prec): from sympy.mpmath import mp, workprec from sympy import Expr z = self.args[0]._to_mpmath(prec) with workprec(prec): res = mp.airyai(z, derivative=1) return Expr._from_mpmath(res, prec)
def _eval_evalf(self, prec): from sympy.mpmath import mp from sympy import Expr z = self.args[0]._to_mpmath(prec) oprec = mp.prec mp.prec = prec res = mp.airyai(z, derivative=1) mp.prec = oprec return Expr._from_mpmath(res, prec)