  # Python | Numpy np.hermmulx () method

NumPy | Python Methods and Functions

With the method `np.hermmulx() ` we can get the multiplication of the Hermite series by x using ` np.hermmulx () `, where x — independent variable.

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

Example # 1:
In this example we can see that using ` np.hermmulx () `, we can get the coefficient of the series after multiplying the Hermite series by the independent variable x using this method.

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

Output:

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

Example # 2:

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

Logout:

[2. 6.5 1. 1.5]