A Simple Approximation for the Airy Function
Besides the Normal Distribution Function, I occasionally need the Airy Function Ai(x): it arises in perturbation theory and some other contexts. This function is most definitely not part of most standard numerics libraries! While high-quality implementations of it are part of most “serious” numerics libraries (such as SciPy or GSL), these libraries are not always available or convenient.
Here is a really simple numerical approximation: it is numerically “good enough” for casual work, and simple enough to be implemented on the fly as needed.