Monday, October 6, 2025
HomeLanguagesPython | Numpy np.hermeval() method

Python | Numpy np.hermeval() method

With the help of np.hermeval() method, we can evaluate the hermite series on x, where s is defined in the np.hermeval() method.

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

Example #1 :
In this example we can see that by using np.hermeval() method, we are able to evaluate the hermite series on x by using this method.




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


Output :

22.0

Example #2 :




# import numpy and hermeval
import numpy as np
from numpy.polynomial.hermite_e import hermeval
  
series = np.array([1, 2, 3, 4])
  
# using np.hermeval() method
gfg = hermeval([[2, 3], [5, 6]], series)
  
print(gfg)


Output :

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

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32338 POSTS0 COMMENTS
Milvus
86 POSTS0 COMMENTS
Nango Kala
6707 POSTS0 COMMENTS
Nicole Veronica
11871 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11936 POSTS0 COMMENTS
Shaida Kate Naidoo
6825 POSTS0 COMMENTS
Ted Musemwa
7090 POSTS0 COMMENTS
Thapelo Manthata
6779 POSTS0 COMMENTS
Umr Jansen
6782 POSTS0 COMMENTS