Python | The numpy np.hermeval () method



Using the np.hermeval() method, we can evaluate the Hermite series in x, where s is defined in np.hermeval () .

Syntax: np.hermeval (x, series)
Return: Return the evaluated hermite series.

Example # 1:
In this example we can see that with np.hermeval () we can estimate the Hermite ranks in x using this method.

# NumPy and Hermeval imports

import numpy as np

from numpy.polynomial.hermite import hermeval

  

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

 
# using the np.hermeval () method

gfg = hermeval ( 2 , series)

 

print (gfg)

Output:

22.0

Example # 2:

# NumPy and Hermeval imports

import numpy as np

from numpy.polynomial.hermite_e import hermeval

 

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

 
# using the np method .hermeval ()

gfg = hermeval ([[ 2 , 3 ], [ 5 , 6 ]], series)

 

print (gfg)

Output:

[[ 22. 103.]
[523. 910.]]