You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / polynomial / chebyshev / chebpts2

function

numpy.polynomial.chebyshev:chebpts2

source: /numpy/polynomial/chebyshev.py :1886

Signature

def   chebpts2 ( npts )

Summary

Chebyshev points of the second kind.

Extended Summary

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

Parameters

npts : int

Number of sample points desired.

Returns

pts : ndarray

The Chebyshev points of the second kind.

Aliases

  • numpy.polynomial.chebyshev.chebpts2