numpy / 1.22.0 / reference / generated / numpy.polynomial.chebyshev.chebpts2.html /

numpy.polynomial.chebyshev.chebpts2

polynomial.chebyshev. chebpts2 ( npts ) [source]

Chebyshev points of the second kind.

The Chebyshev points of the second kind are the points cos(x), where x = [pi*k/(npts - 1) for k in range(npts)].

Parameters
npts int

Number of sample points desired.

Returns
pts ndarray

The Chebyshev points of the second kind.

Notes

New in version 1.5.0.

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.polynomial.chebyshev.chebpts2.html