# 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.]]

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.