numpy.polynomial.legendre.leggauss()

numpy.polynomial.legendre.leggauss

numpy.polynomial.legendre.leggauss(deg) [source]

Gauss-Legendre quadrature.

Computes the sample points and weights for Gauss-Legendre quadrature. These sample points and weights will correctly integrate polynomials of degree 2*deg - 1 or less over the interval [-1, 1]登录查看完整内容