{ } Raw JSON

bundles / scipy 1.17.1 / scipy / special / _orthogonal / roots_chebyt

function

scipy.special._orthogonal:roots_chebyt

source: /scipy/special/_orthogonal.py :1651

Signature

def   roots_chebyt ( n mu = False )

Summary

Gauss-Chebyshev (first kind) quadrature.

Extended Summary

Computes the sample points and weights for Gauss-Chebyshev quadrature. The sample points are the roots of the nth degree Chebyshev polynomial of the first kind, . These sample points and weights correctly integrate polynomials of degree or less over the interval with weight function . See 22.2.4 in [AS] for more details.

Parameters

n : int

quadrature order

mu : bool, optional

If True, return the sum of the weights, optional.

Returns

x : ndarray

Sample points

w : ndarray

Weights

mu : float

Sum of the weights

See also

numpy.polynomial.chebyshev.chebgauss
scipy.integrate.fixed_quad

Aliases

  • scipy.special.roots_chebyt