triqs_xca.aaa.aaa

A Python implementation of the AAA algorithm for rational approximation.

For more information, see the paper

The AAA Algorithm for Rational Approximation Yuji Nakatsukasa, Olivier Sete, and Lloyd N. Trefethen SIAM Journal on Scientific Computing 2018 40:3, A1494-A1522

as well as the Chebfun package <http://www.chebfun.org>. This code is an almost direct port of the Chebfun implementation of aaa to Python.

Functions

aaa(F, Z[, tol, mmax, return_errors])

Compute a rational approximation of F over the points Z.

floater_hormann(values, nodes, blending)

Compute the Floater-Hormann rational interpolant for the given nodes and values.

interpolate_poly(values, nodes)

Compute the interpolating polynomial for the given nodes and values in barycentric form.

interpolate_with_poles(values, nodes, poles)

Compute a rational function which interpolates the given values at the given nodes and which has the given poles.

Classes

BarycentricRational(z, f, w)

A class representing a rational function in barycentric representation.