naginterfaces.library.ode.bvp_​ps_​lin_​cgl_​grid

naginterfaces.library.ode.bvp_ps_lin_cgl_grid(n, a, b)[source]

bvp_ps_lin_cgl_grid returns the Chebyshev Gauss–Lobatto grid points on .

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

https://www.nag.com/numeric/nl/nagdoc_29.3/flhtml/d02/d02ucf.html

Parameters
nint

, where the number of grid points is . This is also the largest order of Chebyshev polynomial in the Chebyshev series to be computed.

afloat

, the lower bound of domain .

bfloat

, the upper bound of domain .

Returns
xfloat, ndarray, shape

The Chebyshev Gauss–Lobatto grid points, , for , on .

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: is even.

(errno )

On entry, and .

Constraint: .

Notes

bvp_ps_lin_cgl_grid returns the Chebyshev Gauss–Lobatto grid points on . The Chebyshev Gauss–Lobatto points on are computed as , for . The Chebyshev Gauss–Lobatto points on an arbitrary domain are:

References

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