Python | Numpy np.hermmul () method

With the method np.hermmul() we can get the multiplication of two Hermite series with np.hermmul () .

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

Example # 1:
In this example, we see that with np.hermmul () we we can get the row factor after multiplying two Hermite rows using this method.

# numpy and hermmul imports

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 the np.hermmul () method

gfg = hermmul (seri es1, series2)

 

print (gfg)

Output:

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

Example # 2:

# numpy and hermmul imports

import numpy as np

from numpy.polynomial.hermite import hermmul

 

series1 = np.array ([ 1 , 2 , 3 ])

series2 = np.array ([ 1 , 2 , 3 ] )

 
# using the np.hermmul () method

gfg = hermmul (series1, series2)

 

print (gfg )

Output:

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