Python | Numpy np.hermgauss() method

With the help of np.hermgauss() method, we can get the quadrature value of gaussian hermite by using np.hermgauss() method.

Syntax : np.hermgauss(degree)
Return : Return the quadrature of gaussian hermite.

Example #1 :
In this example we can see that by using np.hermgauss() method, we are able to get the quadrature of gaussian hermite by using this method.

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy and hermgauss
import numpy as np
  
# using np.hermgauss() method
gfg = hermgauss(3)
  
print(gfg)

chevron_right


Output :

(array([-1.22474487, 0., 1.22474487]), array([0.29540898, 1.1816359, 0.29540898]))



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy and hermgauss
import numpy as np
  
# using np.hermgauss() method
gfg = hermgauss(5)
  
print(gfg)

chevron_right


Output :

(array([-2.02018287, -0.95857246, 0., 0.95857246, 2.02018287]), array([0.01995324, 0.39361932, 0.94530872, 0.39361932, 0.01995324]))

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.