numpy.polynomial.hermite_e.hermegauss
f(x)=exp(−x2/2)
- 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. The weights are determined by using the fact that
wk=c/(Hen′(xk)∗Hen−1(xk)) where c is a constant independent of k and xk
is the k’th root of Hen, and then scaling the results to get
the right value when integrating 1.