bvp_ps_lin_coeffs obtains the Chebyshev coefficients of a function discretized on Chebyshev Gauss–Lobatto points. The set of discretization points on which the function is evaluated is usually obtained by a previous call to bvp_ps_lin_cgl_grid().

For full information please refer to the NAG Library document for d02ua

ffloat, array-like, shape

The function values , for .

cfloat, ndarray, shape

The Chebyshev coefficients, , for .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: is even.


bvp_ps_lin_coeffs computes the coefficients , for , of the interpolating Chebyshev series

which interpolates the function evaluated at the Chebyshev Gauss–Lobatto points

Here denotes the Chebyshev polynomial of the first kind of degree with argument defined on . In terms of your original variable, say, the input values at which the function values are to be provided are

where and are respectively the upper and lower ends of the range of over which the function is required.


Canuto, C, 1988, Spectral Methods in Fluid Dynamics, 502, Springer

Canuto, C, Hussaini, M Y, Quarteroni, A and Zang, T A, 2006, Spectral Methods: Fundamentals in Single Domains, Springer

Trefethen, L N, 2000, Spectral Methods in MATLAB, SIAM