This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / polynomial / chebyshev / chebgauss

function

numpy.polynomial.chebyshev:chebgauss

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/chebyshev.py :1791

Signature

def   chebgauss ( deg )

Summary

Gauss-Chebyshev quadrature.

Extended Summary

Computes the sample points and weights for Gauss-Chebyshev quadrature. These sample points and weights will correctly integrate polynomials of degree or less over the interval with the weight function .

Parameters

deg : int

Number of sample points and weights. It must be >= 1.

Returns

x : ndarray

1-D ndarray containing the sample points.

y : ndarray

1-D ndarray containing the weights.

Notes

The results have only been tested up to degree 100, higher degrees may be problematic. For Gauss-Chebyshev there are closed form solutions for the sample points and weights. If n = deg, then

Aliases

  • numpy.polynomial.chebyshev.chebgauss