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.

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy as np
import numpy as np
from numpy.polynomial.hermite_e import hermegauss
  
# using np.hermegauss() method
gfg = hermegauss(2)
  
print(gfg)

chevron_right


Output :

(array([-1., 1.]), array([1.25331414, 1.25331414]))



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy as np
import numpy as np
from numpy.polynomial.hermite_e import hermegauss
  
# using np.hermegauss() method
gfg = hermegauss(3)
  
print(gfg)

chevron_right


Output :

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

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.