{ } Raw JSON

bundles / scipy 1.17.1 / scipy / special / _orthogonal / _roots_hermite_asy

function

scipy.special._orthogonal:_roots_hermite_asy

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

Signature

def   _roots_hermite_asy ( n )

Summary

Gauss-Hermite (physicist's) quadrature for large n.

Extended Summary

Computes the sample points and weights for Gauss-Hermite quadrature. The sample points are the roots of the nth degree Hermite polynomial, . These sample points and weights correctly integrate polynomials of degree or less over the interval with weight function .

This method relies on asymptotic expansions which work best for n > 150. The algorithm has linear runtime making computation for very large n feasible.

Parameters

n : int

quadrature order

Returns

nodes : ndarray

Quadrature nodes

weights : ndarray

Quadrature weights

See also

roots_hermite

Aliases

  • scipy.special._orthogonal._roots_hermite_asy