Python | Numpy np.hermegauss() method

With the help of np.hermegauss() method, we can get the quadrature of gaussian hermiteE series by using np.hermegauss() method.
Syntax :
np.hermegauss(deg)
Return : Return the quadrature of gaussian hermiteE series.
Example #1 :
In this example we can see that by using np.hermegauss() method, we are able to get the quadrature of gaussian hermiteE series by using this method.
# import numpy as np import numpy as np from numpy.polynomial.hermite_e import hermegauss # using np.hermegauss() method gfg = hermegauss(2) print(gfg) |
Output :
(array([-1., 1.]), array([1.25331414, 1.25331414]))
Example #2 :
# import numpy as np import numpy as np from numpy.polynomial.hermite_e import hermegauss # using np.hermegauss() method gfg = hermegauss(3) print(gfg) |
Output :
(array([-1.73205081, 0., 1.73205081]), array([0.41777138, 1.67108552, 0.41777138]))



