Thursday, September 4, 2025
HomeLanguagesPython | Numpy np.hermefromroots() method

Python | Numpy np.hermefromroots() method

With the help of np.hermefromroots() method, we can get the hermiteE series from given roots by using np.hermefromroots() method.

Syntax : np.hermefromroots(roots)
Return : Return the hermiteE series.

Example #1 :
In this example we can see that by using np.hermefromroots() method, we are able to get the hermiteE series from given roots by using this method.




# import numpy and hermefromroots
import numpy as np
from numpy.polynomial.hermite_e import hermefromroots
  
series = np.array([0.1, 0.2, 0.3, 0.4, 0.5])
# using np.hermefromroots() method
gfg = hermefromroots(series)
  
print(gfg)


Output :

[-4.7262 17.5774 -9.225 10.85 -1.5 1.]

Example #2 :




# import numpy and hermefromroots
import numpy as np
from numpy.polynomial.hermite_e import hermefromroots
  
series = np.array([1, 0, 0, 1, 1, 0])
# using np.hermefromroots() method
gfg = hermefromroots(series)
  
print(gfg)


Output :

[24. -48. 63. -31. 18. -3. 1.]

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

Most Popular

Dominic
32263 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6627 POSTS0 COMMENTS
Nicole Veronica
11799 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11858 POSTS0 COMMENTS
Shaida Kate Naidoo
6749 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6696 POSTS0 COMMENTS
Umr Jansen
6716 POSTS0 COMMENTS