Python | The numpy np.hermegauss () method

With the np.hermegauss() method we can get the squaring of hermiteE Gaussian series using np.hermegauss () .

Syntax: np.hermegauss (deg)
Return: Return the quadrature of gaussian hermiteE series.

Example # 1:
In this example we see that using np.hermegauss () we can get the squaring of hermiteE gaussian rows using this method.

# import numpy as np

import numpy as np

from numpy.polynomial.hermite_e import hermegauss

  
# using the 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 the np.hermegauss () method

gfg = hermegauss ( 3 )

 

print (gfg)

Output:

(array ([- 1.73205081, 0., 1.73205081]), array ([0.41777138, 1.67108552, 0.41777138]))