多项式#

幂级数 (cupy.polynomial.polynomial)#

杂项功能#

polyvander(x, deg)

计算给定阶数的范德蒙矩阵。

polycompanion(c)

计算 c 的伴随矩阵。

polyval(x, c[, tensor])

在点 x 处评估多项式。

polyvalfromroots(x, r[, tensor])

在点 x 处评估由其根指定的多项式。

Polyutils#

函数#

as_series(alist[, trim])

返回参数作为1-d数组的列表。

trimseq(seq)

移除小的多项式级数系数。

trimcoef(c[, tol])

从多项式中移除小的尾随系数。

Poly1d#

基础#

poly1d(c_or_r[, r, variable])

一维多项式类。

cupy.poly(seq_of_zeros)

计算具有给定根序列的多项式的系数。

polyval(p, x)

计算多项式在特定值处的值。

roots(p)

计算具有给定系数的多项式的根。

拟合#

polyfit(x, y, deg[, rcond, full, w, cov])

返回在 x 上采样的数据 y 的最小二乘拟合多项式,其阶数为 deg。

算术#

polyadd(a1, a2)

计算两个多项式的和。

polysub(a1, a2)

计算两个多项式的差。

polymul(a1, a2)

计算两个多项式的乘积。