Python Numpy np.legfromroots()方法
np.legfromroots() 方法用于生成具有给定根的legendre数列。
语法: np.legfromroots(roots)
参数:
roots : [array_like] 包含根的输入序列。
返回: [ndarray] legendre数列的一维系数阵列。
代码#1:
输出:
代码#2:
输出:
np.legfromroots() 方法用于生成具有给定根的legendre数列。
语法: np.legfromroots(roots)
参数:
roots : [array_like] 包含根的输入序列。
返回: [ndarray] legendre数列的一维系数阵列。
代码#1:
输出:
代码#2:
输出: