Python | Numpy np.hermmul() method

With the help of np.hermmul() method, we can get the multiplication of two hermite series by using np.hermmul() method.

Syntax : np.hermmul(series1, series2)
Return : Return the coefficient of series after multiplication.

Example #1 :
In this example we can see that by using np.hermmul() method, we are able to get the coefficient of series after multiplication of two hermite series by using this method.

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy and hermmul
import numpy as np
from numpy.polynomial.hermite import hermmul
  
series1 = np.array([1, 2, 3, 4, 5])
series2 = np.array([6, 7, 8, 9, 10])
  
# using np.hermmul() method
gfg = hermmul(series1, series2)
  
print(gfg)

chevron_right


Output :

[21154. 17903. 44860. 13458. 16278. 2154. 1706. 85. 50.]



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy and hermmul
import numpy as np
from numpy.polynomial.hermite import hermmul
  
series1 = np.array([1, 2, 3])
series2 = np.array([1, 2, 3])
  
# using np.hermmul() method
gfg = hermmul(series1, series2)
  
print(gfg)

chevron_right


Output :

[81. 52. 82. 12. 9.]

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.