Python | The numpy np.hermline () method



With the np.hermline() method we can get the string specified by the Hermite row using np.hermline () .

Syntax: np.hermline (off, scl)
Return: Return the hermite series for off + scl * x

Example # 1:
In this example we can see that using np.hermline () , we can get the string specified by the Hermite series using this method.

# numpy and hermline imports

import numpy as np

from numpy.polynomial.hermite import hermline

 
# using the np.hermline () method

gfg = hermline ( 3 , 4 ) + [ 1 , 2 ]

 

print (gfg)

Output:

[four. 4.]

Example # 2:

# numpy and hermline imports

import numpy as np

from numpy.polynomial.hermite import hermline

 
# using the np.hermline () method

gfg = hermline ( 13 , 4 ) + [ 10 , 20 ]

  

print (gfg)

Output:

[23. 22.]