Python | Numpy np.hermegauss() method
Last Updated :
11 Dec, 2019
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
from numpy.polynomial.hermite_e import hermegauss
gfg = hermegauss( 2 )
print (gfg)
|
Output :
(array([-1., 1.]), array([1.25331414, 1.25331414]))
Example #2 :
import numpy as np
from numpy.polynomial.hermite_e import hermegauss
gfg = hermegauss( 3 )
print (gfg)
|
Output :
(array([-1.73205081, 0., 1.73205081]), array([0.41777138, 1.67108552, 0.41777138]))
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...