📜  Python| Numpy np.hermeroots() 方法

📅  最后修改于: 2022-05-13 01:54:43.568000             🧑  作者: Mango

Python| Numpy np.hermeroots() 方法

np.hermeroots()方法的帮助下,我们可以使用np.hermeroots()方法获取 hermiteE 系列的根。

示例 #1:
在这个例子中我们可以看到,通过使用np.hermeroots()方法,我们可以使用这个方法从 hermiteE 系列中获取根。

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

输出 :

示例 #2:

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

输出 :