Carathéodory-Fejér approximation
In case you are looking for a fast and stable way to compute a rational approximation of the exponential on the negative real line you can stop here. This function will to the job!
Computing rational approximations of the exponential has a long and interesting history with deep links into pure maths. Some of this is summarised in
Talbot quadratures and rational approximations
L. N. Trefethen, J. A. C. Weideman and T. Schmelzer
BIT Numerical Mathematics (2006) 46, pp. 653-670.
However, one can apply this also to other interesting functions and two examples are discussed in
Computing the gamma function using contour integrals and rational approximations
T. Schmelzer and L. N. Trefethen
SIAM J. Numer. Anal., Vol. 45 (2007), No. 2, pp. 558-571.
and
Evaluating matrix functions for exponential integrators via Carathéodory-Fejér approximation and contour integrals
T. Schmelzer and L. N. Trefethen
ETNA, Volume 29, pp. 1-18, 2007.
Please start playing around with this method by looking into the file demo.m.
Cite As
Thomas Schmelzer (2024). Carathéodory-Fejér approximation (https://www.mathworks.com/matlabcentral/fileexchange/22055-caratheodory-fejer-approximation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |