Multiple precision evaluation of the Airy Ai function with reduced cancellation
Abstract
The series expansion at the origin of the Airy function Ai(x) is alternating and hence problematic to evaluate for x > 0 due to cancellation. Based on a method recently proposed by Gawronski, Müller, and Reinhard, we exhibit two functions F and G, both with nonnegative Taylor expansions at the origin, such that Ai(x) = G(x)/F(x). The sums are now well-conditioned, but the Taylor coefficients of G turn out to obey an ill-conditioned three-term recurrence. We use the classical Miller algorithm to overcome this issue. We bound all errors and our implementation allows an arbitrary and certified accuracy, that can be used, e.g., for providing correct rounding in arbitrary precision.
- Publication:
-
arXiv e-prints
- Pub Date:
- December 2012
- DOI:
- 10.48550/arXiv.1212.4731
- arXiv:
- arXiv:1212.4731
- Bibcode:
- 2012arXiv1212.4731C
- Keywords:
-
- Computer Science - Symbolic Computation
- E-Print:
- 21st IEEE Symposium on Computer Arithmetic (2013)