NumPy

Previous topic

numpy.polynomial.chebyshev.chebfit

Next topic

numpy.polynomial.chebyshev.chebpts2

This is documentation for an old release of NumPy (version 1.19). Read this page in the documentation of the latest stable release (version 2.2).

numpy.polynomial.chebyshev.chebpts1

numpy.polynomial.chebyshev.chebpts1(npts)[source]

Chebyshev points of the first kind.

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

Parameters
nptsint

Number of sample points desired.

Returns
ptsndarray

The Chebyshev points of the first kind.

See also

chebpts2

Notes

New in version 1.5.0.