Imagine you need to draw a curve that follows a function with sudden spikes or “invisible” branches. Traditional polynomials often fail, creating the infamous Runge phenomenon: the curve wildly oscillates at the edges. This is where rational functions shine, combining numerators and denominators to capture spikes and branch cuts with near‑exponential convergence.
The Julia package RationalFunctionApproximation.jl takes these ideas to the next level. It implements the fastest versions of the AAA and Thiele algorithms, two rational‑approximation techniques that have reignited scientific interest. Moreover, it’s the only one offering arbitrary‑precision support, meaning it can handle numbers with hundreds of decimal places without losing accuracy.
Thanks to integration with the ComplexRegions.jl package, you can create compact representations of functions over real intervals, circles, or more elaborate regions in the complex plane. In practice, you get a short yet powerful formula that describes the function across the whole domain, saving computation time and memory.
For students of math, physics, or computer science, this tool opens doors to more realistic simulation projects, from drawing electromagnetic fields to modeling dynamic systems. And for coding enthusiasts, it’s a chance to experiment with Julia, the language rapidly conquering scientific computing.
