GegenbauerC[n,m,x]
用来给出 Gegenbauer 多项式
.
GegenbauerC[n,x]
用来给出重正规化形式
.
GegenbauerC
GegenbauerC[n,m,x]
用来给出 Gegenbauer 多项式
.
GegenbauerC[n,x]
用来给出重正规化形式
.
更多信息
- 数学函数, 同时适合符号和数值运算.
- 对于整数 n 和任意 m 给出显式表达的多项式.
满足微分方程
.- 加上权函数
,Gegenbauer 多项式在区间
上正交. - 对某些特定变量值,GegenbauerC 自动运算出精确值.
- GegenbauerC 可计算到任意数值精度.
- GegenbauerC 自动逐项作用于列表.
- GegenbauerC[n,0,x] 总为零.
- GegenbauerC[n,m,z] 在复平面 z 上从
到
的有一个不连续分支切割. - GegenbauerC 可与 Interval 和 CenteredInterval 对象一起使用. »
范例
打开所有单元 关闭所有单元基本范例 (7)
N[GegenbauerC[3, 1 / 2, 7]]GegenbauerC[10, 1, x]GegenbauerC[10, x]Plot[GegenbauerC[10, x], {x, -1, 1}]ComplexPlot3D[GegenbauerC[5, z], {z, -2 - 2I, 2 + 2I}, PlotLegends -> Automatic]Series[GegenbauerC[5, x], {x, 0, 5}]在 Infinity 的级数展开:
Series[GegenbauerC[5, x], {x, ∞, 3}]//FullSimplifySeries[GegenbauerC[5, x], {x, -1, 3}]//FullSimplify范围 (44)
数值计算 (6)
GegenbauerC[5, 1 / 8, 7.]GegenbauerC[2, 0.5]N[GegenbauerC[1 / 6, 1 / 8, 7], 50]GegenbauerC[0.333333333333333333, 7, 1]N[GegenbauerC[2 / 7, 5 - I, 2]]GegenbauerC[2 / 49, 5, 1`100]//TimingGegenbauerC[89 / 49, 3, 5`1000];//Timing用 Interval 和 CenteredInterval 对象计算最坏情况下的区间:
GegenbauerC[3 / 4, 4 / 5, Interval[{1.9, 2.1}]]GegenbauerC[3 / 4, 4 / 5, CenteredInterval[5, 1 / 100]]或用 Around 计算一般情况下的统计区间:
GegenbauerC[1 / 2, Around[.9, 0.1]]GegenbauerC[3, {{2, 0}, {1 / 2, -2}}]或用 MatrixFunction 计算矩阵形式的 GegenbauerC 函数:
MatrixFunction[GegenbauerC[3, #]&, {{2, 0}, {1 / 2, -2}}]特殊值 (8)
在固定点的 GegenbauerC 的值:
Table[GegenbauerC[10, x ], {x, 1, 5}]GegenbauerC[{1 / 3, 1 / 2}, 1 / 6, 0]符号 n 的 GegenbauerC:
GegenbauerC[n, 0]GegenbauerC[n, 1 / 2, x]GegenbauerC[n, 1, x]GegenbauerC[n, x]Table[GegenbauerC[n, m, x], {x, 0, 1}, {m, 0, 1}]GegenbauerC[1, 0]GegenbauerC[0, 1, 1]求 GegenbauerC[10,x ] 的第一个正极大值:
xmax = x /. Solve[D[GegenbauerC[10, x ], x] == 0 && 0 < x < 5, x][[1]]Plot[GegenbauerC[10, x ], {x, -1, 1}, Epilog -> Style[Point[{xmax, GegenbauerC[10, xmax ]}], PointSize[Large], Red]]计算相关的 GegenbauerC[7,x] 多项式:
GegenbauerC[7, x]计算半整数 n 的关联 GegenbauerC[1/2,x] 多项式:
GegenbauerC[1 / 2, x]不同的 GegenbauerC 类型给出不同的符号形式:
Table[GegenbauerC[n, m, x], {n, 0, 3}, {m, 0, 1}]可视化 (4)
绘制各阶 GegenbauerC 函数:
Plot[{GegenbauerC[1, x], GegenbauerC[2, x], GegenbauerC[3, x], GegenbauerC[4, x]}, {x, -.7, .7}]ComplexContourPlot[Re[GegenbauerC[3, 1, z]], {z, -3 - 3 I, 3 + 3 I}, IconizedObject[«PlotOptions»]]ComplexContourPlot[Im[GegenbauerC[3, 1, z]], {z, -3 - 3 I, 3 + 3 I}, IconizedObject[«PlotOptions»]]Plot3D[Re[GegenbauerC[n, 1, z]], {n, 0, 5}, {z, -1, 1}]GegenbauerC 函数的类型 2 和 3 有不同的分支切割结构:
Plot3D[Im[GegenbauerC[2, x + I y]], {x, -1.5, 1.5}, {y, -0.5, 0.5}, Exclusions -> {{y == 0, Abs[x] > 1}}]Plot3D[Im[GegenbauerC[3, x + I y]], {x, -1.5, 1.5}, {y, -0.5, 0.5}, Exclusions -> {{y == 0, -1 < x < 1}}, PlotRange -> All]函数属性 (14)
整数阶的 GegenbauerC 的域:
{FunctionDomain[GegenbauerC[1, z], z], FunctionDomain[GegenbauerC[2, z], z]}{FunctionDomain[GegenbauerC[1, z], z, Complexes], FunctionDomain[GegenbauerC[2, z], z, Complexes]}整数阶的 GegenbauerC 的范围:
{FunctionRange[GegenbauerC[1, x], x, y], FunctionRange[GegenbauerC[2, x], x, y]}{FunctionRange[GegenbauerC[1, z], z, y, Complexes], FunctionRange[GegenbauerC[2, z], z, y, Complexes]}GegenbauerC[1, -x] == -GegenbauerC[1, x]GegenbauerC[2, -x] == GegenbauerC[2, x]GegenbauerC 按元素线性作用于列表:
GegenbauerC[{1, 2, 3}, m, x]GegenbauerC 具有镜像属性
:
{GegenbauerC[1, Conjugate[z]] == Conjugate[GegenbauerC[1, z]], GegenbauerC[2, Conjugate[z]] == Conjugate[GegenbauerC[2, z]]}FunctionAnalytic[GegenbauerC[n, x], x, Assumptions -> n∈ℤ && n ≠ 0]然而,对于非整数参数而言 GegenbauerC 函数一般不是解析函数:
FunctionAnalytic[GegenbauerC[1 / 2, x], x]FunctionAnalytic[GegenbauerC[1 / 2, 1, x], x]FunctionMeromorphic[GegenbauerC[1 / 2, x], x]FunctionMeromorphic[GegenbauerC[1 / 2, 1, x], x]FunctionMonotonicity[GegenbauerC[2, x], x]FunctionInjective[GegenbauerC[2, x], x]Plot[{GegenbauerC[2, x], 2}, {x, -2, 2}]FunctionSurjective[GegenbauerC[2, x], x]Plot[{GegenbauerC[2, x], -2}, {x, -2, 2}]FunctionSign[GegenbauerC[2, x], x]FunctionSingularities[GegenbauerC[n, x], x]FunctionDiscontinuities[GegenbauerC[n, x], x]FunctionSingularities[GegenbauerC[n, m, x], x]FunctionDiscontinuities[GegenbauerC[n, m, x], x]FunctionConvexity[GegenbauerC[2, x], x]TraditionalForm 格式化:
GegenbauerC[n, λ, x]//TraditionalFormGegenbauerC[n, m]//HoldForm//TraditionalForm微分 (3)
D[GegenbauerC[n, m, x], x]D[GegenbauerC[n, x], x]Table[D[GegenbauerC[n, m, x], {x, k}], {k, 1, 3}]//FullSimplifyPlot[Evaluate[% /. { n -> 10, m -> 1 / 3}], {x, -3, 3}, PlotLegends -> {"First Derivative", "Second Derivative", "Third Derivative"}]D[GegenbauerC[n, m, x], {x, k}]// FullSimplify积分 (3)
使用 Integrate 计算不定积分:
Integrate[GegenbauerC[n, m, x], x]FullSimplify[D[%, x]]Integrate[GegenbauerC[n, m, x], {x, 0, 4}]Integrate[Exp[x] GegenbauerC[2, x], x]//FullSimplifyIntegrate[ x GegenbauerC[1, x^2], {x, 0, 3}]//FullSimplify级数展开 (2)
使用 Series 求泰勒展开:
Series[GegenbauerC[n, x], {x, 0, 3}]terms = Normal@Table[Series[GegenbauerC[10, x], {x, 0, m}], {m, 1, 5, 2}];
Plot[{GegenbauerC[10, x], terms}, {x, -1, 1}]Series[GegenbauerC[n, x], {x, x0, 2}]// Normal//FullSimplify函数恒等与简化 (4)
GegenbauerC 是 JacobiP 的特殊情况:
GegenbauerC[n, m, x] == (Pochhammer[2m, n]/Pochhammer[m + 1 / 2, n]) JacobiP[n, m - 1 / 2, m - 1 / 2, x]//FullSimplifyGegenbauerC 的导数恒等:
D[GegenbauerC[n, m, x], x] == 2 m GegenbauerC[n - 1, m + 1, x]GeneratingFunction[GegenbauerC[n, m, x], n, t]GegenbauerC[n, m, x] == (2 (m + n + 1)x/2 m + n) GegenbauerC[n + 1, m, x] - ( n + 2/2 m + n) GegenbauerC[n + 2, m, x] //FullSimplifyGegenbauerC[n, m, x] == (2 (m + n - 1)x/n) GegenbauerC[n - 1, m, x] - (2 m + n - 2/n) GegenbauerC[n - 2, m, x] //FullSimplify推广和延伸 (2)
将 GegenbauerC 应用到一个幂级数:
GegenbauerC[5, Sin[x] + O[x] ^ 4]GegenbauerC 可以处理实数区间:
GegenbauerC[4, Interval[{-1, 1}]]应用 (3)
Δ = ((1/Sin[θ]^2)D[ Sin[θ]^2D[#, θ], θ] + (1/Sin[θ]^2Sin[χ])D[Sin[χ]D[#, χ], χ] + (1/Sin[θ]^2Sin[χ]^2)D[#, ϕ, ϕ])&;With[{f = GegenbauerC[ n, 1, Cos[θ]]}, FullSimplify[Δ[ f ] / f]]ψ[{n_, l_, m_}, p_] := (2^ll!/n^2)Sqrt[((n - l - 1)!/(n + l)!)]((p / n)^l/(p^2 + n^-2)^2 + l)GegenbauerC[n - l - 1, l + 1, (1 - n^2p^2/1 + n^2p^2)]Table[Plot[ψ[{4, l, 0}, p] ^ 2, {p, 0, 0.4}], {l, 0, 3}]在 n 点 Gauss–Lobatto 求积规则中,两个极端节点的值是固定的,而另外 n-2 个节点是通过某个特定的Gegenbauer 多项式的根来计算的. 计算 n 点 Gauss–Lobatto 求积规则的节点和权重:
n = 10;
tmp = x /. NSolve[GegenbauerC[n - 2, 3 / 2, x], x];
lobattoNodes = Join[{N[-1]}, tmp, {N[1]}]w1 = x |-> (2/n(n - 1)GegenbauerC[n - 1, 1 / 2, x]^2);
lobattoWeights = ArrayPad[w1[tmp], 1, N[(2/n(n - 1))]]使用 n 点 Gauss–Lobatto 求积规则来数值计算一个积分:
fun[x_] := (1/1 / 100 + (x - 3 / 10)^2) + (1/1 / 25 + (x - 9 / 10)^2) - 6a = 1 / 2;b = 1;
est1 = ((b - a/2)lobattoWeights).Map[fun, Rescale[lobattoNodes, {-1, 1}, {a, b}]]将 Gauss–Lobatto 求积的结果与 NIntegrate 函数的结果进行比较:
est1 - NIntegrate[fun[x], {x, a, b}]属性和关系 (5)
用 FunctionExpand 将 GegenbauerC 展开成其它函数:
FunctionExpand[GegenbauerC[1 / 2, -1 / 2, x]]FunctionExpand[GegenbauerC[n, m, 1]]GegenbauerC 可以被表示为 DifferenceRoot:
DifferenceRootReduce[GegenbauerC[k, z, y], k]DifferenceRootReduce[GegenbauerC[1, 2, k], k]GegenbauerC 的级数展开的通项
SeriesCoefficient[GegenbauerC[a, x], {x, 0, n}]GegenbauerC 的生成函数:
GeneratingFunction[GegenbauerC[n, a, b], n, x]使用 Integrate 定义一个关于函数的内积:
dot[f_, g_] := 2 / π Subsuperscript[∫, -1, 1]Conjugate[f]gSqrt[1 - x^2]ⅆx使用 Orthogonalize 构建一个正态基:
Orthogonalize[{1, x, x ^ 2, x ^ 3, x ^ 4}, dot] // Expand该内积生成了 GegenbauerC 多项式:
Table[GegenbauerC[n, 1, x], {n, 0, 4}]技术笔记
-
▪
- 正交多项式
历史
1988年引入 (1.0) | 在以下年份被更新:2021 (13.0) ▪ 2022 (13.1)
文本
Wolfram Research (1988),GegenbauerC,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GegenbauerC.html (更新于 2022 年).
CMS
Wolfram 语言. 1988. "GegenbauerC." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2022. https://reference.wolfram.com/language/ref/GegenbauerC.html.
APA
Wolfram 语言. (1988). GegenbauerC. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/GegenbauerC.html 年
BibTeX
@misc{reference.wolfram_2026_gegenbauerc, author="Wolfram Research", title="{GegenbauerC}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/GegenbauerC.html}", note=[Accessed: 01-July-2026]}
BibLaTeX
@online{reference.wolfram_2026_gegenbauerc, organization={Wolfram Research}, title={GegenbauerC}, year={2022}, url={https://reference.wolfram.com/language/ref/GegenbauerC.html}, note=[Accessed: 01-July-2026]}