Utility
This module provides the utility subroutines for other DLR modules.
Lehmann.Interp.barycheb — Methodfunction barycheb(n, x, f, wc, xc)
Barycentric Lagrange interpolation at Chebyshev nodes Reference: Berrut, J.P. and Trefethen, L.N., 2004. Barycentric lagrange interpolation. SIAM review, 46(3), pp.501-517.
Arguments
n: order of the Chebyshev interpolationx: coordinate to interpolatef: array of size n, function at the Chebyshev nodeswc: array of size n, Barycentric Lagrange interpolation weightsxc: array of size n, coordinates of Chebyshev nodes
Returns
- Interpolation result
Lehmann.Interp.barychebinit — Methodbarychebinit(n)
Get Chebyshev nodes of first kind and corresponding barycentric Lagrange interpolation weights. Reference: Berrut, J.P. and Trefethen, L.N., 2004. Barycentric lagrange interpolation. SIAM review, 46(3), pp.501-517.
Arguments
n: order of the Chebyshev interpolation
Returns
- Chebyshev nodes
- Barycentric Lagrange interpolation weights