numpy.polynomial.legendre.Legendre.fromroots#
method
- classmethod polynomial.legendre.Legendre.fromroots(roots, domain=[], window=None, symbol='x')[源代码]#
返回具有指定根的级数实例.
返回一个表示乘积
(x - r[0])(x - r[1])...(x - r[n-1])的级数,其中r是一个根列表.- 参数:
- 根array_like
根的列表.
- domain{[], None, array_like}, 可选
结果序列的域.如果为 None,则域是从最小根到最大根的区间.如果为 [],则域为类域.默认为 [].
- window{None, array_like}, optional
返回序列的窗口.如果为 None,则使用类窗口.默认为 None.
- symbolstr, optional
表示自变量的符号.默认为"x".
- 返回:
- new_series级数
具有指定根的序列.