Python | Numpy np.hermmulx() method

With the help of np.hermmulx() method, we can get the multiplication of hermite series with x by using np.hermmulx() method, where x is an independent variable.

Syntax : np.hermmulx(series)
Return : Return the coefficient of series after multiplication.

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

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy and hermmulx
import numpy as np
from numpy.polynomial.hermite import hermmulx
  
series = np.array([6, 7, 8, 9, 10])
  
# using np.hermmulx() method
gfg = hermmulx(series)
  
print(gfg)

chevron_right


Output :

[7. 19. 30.5 44. 4.5 5.]



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output :

[2. 6.5 1. 1.5]

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.