scipy.special.

roots_sh_jacobi#

scipy.special.roots_sh_jacobi(n, p1, q1, mu=False)[源代码]#

Gauss-Jacobi (shifted) 正交。

计算 Gauss-Jacobi (shifted) 正交的采样点和权重。 采样点是 n 次 shifted Jacobi 多项式的根,\(G^{p,q}_n(x)\)。 这些采样点和权重可以正确地对度数小于等于 \(2n - 1\) 的多项式在区间 \([0, 1]\) 上进行积分,权重函数为 \(w(x) = (1 - x)^{p-q} x^{q-1}\)。 详情请参阅 [AS] 中的 22.2.2。

参数:
nint

正交阶数

p1float

(p1 - q1) 必须 > -1

q1float

q1 必须 > 0

mubool, 可选

如果为 True,则返回权重之和,可选。

返回:
xndarray

采样点

wndarray

权重

mufloat

权重之和

参考文献

[AS]

Milton Abramowitz and Irene A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972.