给出 a 和 b 的算术几何平均值.
ArithmeticGeometricMean
给出 a 和 b 的算术几何平均值.
更多信息
- 对某些特殊自变量,ArithmeticGeometricMean 自动计算其精确值.
- ArithmeticGeometricMean 可以计算到任意数值精度.
- ArithmeticGeometricMean 是关于 a 和 b 的齐次函数,在复平面
上有一个分支线,分支线从
到 0. - ArithmeticGeometricMean 自动逐项作用于列表.
- ArithmeticGeometricMean 可与 Interval 和 CenteredInterval 对象一起使用. »
范例
打开所有单元 关闭所有单元基本范例 (4)
ArithmeticGeometricMean[1.8, 1.2]Plot[ArithmeticGeometricMean[1, x], {x, 0, 1}]ComplexPlot3D[ArithmeticGeometricMean[1, z], {z, -2 - 2I, 2 + 2I}, PlotLegends -> Automatic]Series[ArithmeticGeometricMean[1, x], {x, 0, 2}, Assumptions -> x > 0]范围 (25)
数值计算 (5)
ArithmeticGeometricMean[1.2, 5]ArithmeticGeometricMean[-2., -5]N[ArithmeticGeometricMean[52, 5], 30]ArithmeticGeometricMean[2, 3.0000000000000000000000]N[ArithmeticGeometricMean[1 + I, 3 + I]]ArithmeticGeometricMean[32, 5`100]//TimingArithmeticGeometricMean[32, 5`100];//Timing用 Interval 和 CenteredInterval 对象计算最坏情况下的区间:
ArithmeticGeometricMean[2, Interval[{.8, 1.2}]]ArithmeticGeometricMean[2, CenteredInterval[8, .2]]ArithmeticGeometricMean[CenteredInterval[8, .2], 1]或用 Around 计算一般情况下的统计区间:
ArithmeticGeometricMean[ 1, Around[2, 0.01]]特殊值 (4)
Table[ArithmeticGeometricMean[x, y], {x, {16, 8}}, {y, {4, 10}}]//NArithmeticGeometricMean[0, 0]ArithmeticGeometricMean[a, a]求当 ArithmeticGeometricMean[3,x]=1.5 时, x 的值:
xval = x /. FindRoot[ArithmeticGeometricMean[3, x] == 1.5, {x, 0.5}]Plot[ArithmeticGeometricMean[3, x], {x, 0, 2}, Epilog -> Style[Point[{xval, ArithmeticGeometricMean[3, xval]}], PointSize[Large], Red]]可视化 (2)
绘制各阶 ArithmeticGeometricMean 函数:
Plot[{ArithmeticGeometricMean[1, x], ArithmeticGeometricMean[2, x], ArithmeticGeometricMean[3, x], ArithmeticGeometricMean[4, x]}, {x, 0, 2}]ComplexContourPlot[Re[ArithmeticGeometricMean[2, z]], {z, -1 - I, 1 + I}, Contours -> 20]ComplexContourPlot[Im[ArithmeticGeometricMean[2, z]], {z, -1 - I, 1 + I}, Contours -> 20]函数属性 (10)
FunctionDomain[ArithmeticGeometricMean[x, y], {x, y}]FunctionDomain[ArithmeticGeometricMean[w, z], {w, z}, Complexes]ArithmeticGeometricMean 可达到所有实数值:
FunctionRange[ArithmeticGeometricMean[x, z], {x, z}, y]//QuietArithmeticGeometricMean 按元素线性作用于列表:
ArithmeticGeometricMean[{1.0, 2.0, 3.0}, 5]ArithmeticGeometricMean 并非解析函数:
FunctionAnalytic[ArithmeticGeometricMean[x, 1], x]FunctionSingularities[ArithmeticGeometricMean[x, y], {x, y}]FunctionDiscontinuities[ArithmeticGeometricMean[x, y], {x, y}]FunctionMonotonicity[{ArithmeticGeometricMean[1, x], x ≥ 0}, x]FunctionInjective[ArithmeticGeometricMean[1, x], x]Plot[{ArithmeticGeometricMean[1, x], 1}, {x, 0, 2}]FunctionSurjective[ArithmeticGeometricMean[1, x], x]Plot[{ArithmeticGeometricMean[1, x], -2}, {x, -2, 2}]FunctionSign[{ArithmeticGeometricMean[1, x], x ≥ 0}, x]FunctionSign[{ArithmeticGeometricMean[-1, x], x <= 0}, x]FunctionConvexity[{ArithmeticGeometricMean[1, x], x ≥ 0}, x]TraditionalForm 格式化:
ArithmeticGeometricMean[a, b]//TraditionalForm微分 (2)
D[ArithmeticGeometricMean[a, b], b]Table[D[ArithmeticGeometricMean[a, b], {b, k}], {k, 1, 3}]//FullSimplifyPlot[Evaluate[% /. a -> 3], {b, 0, 4}, PlotLegends -> {"First Derivative", "Second Derivative", "Third Derivative"}]级数展开 (2)
使用 Series 求泰勒展开:
Series[ArithmeticGeometricMean[y, x], {x, 0, 2}]//Normal//FullSimplifyterms = Normal@Table[Series[ArithmeticGeometricMean[2, x], {x, 0, m}], {m, 1, 3}];
Plot[{ArithmeticGeometricMean[2, x], terms}, {x, 0, 10}]Series[ArithmeticGeometricMean[y, x], {x, x0, 2}]//Normal// FullSimplify应用 (4)
a[n_] := (a[n - 1] + b[n - 1]) / 2;b[n_] := Sqrt[a[n - 1] b[n - 1]];a[0] = 1.;b[0] = 2.;Table[{a[n], b[n]}, {n, 5}]与 ArithmeticGeometricMean 进行比较:
ArithmeticGeometricMean[1., 2.]agmIterations[a_ ? InexactNumberQ, b_ ? InexactNumberQ] := FixedPointList[{(#[[1]] + #[[2]]) / 2, Sqrt[#[[1]]#[[2]]]}&, {a, b}]agmIterations[1., 2.]用于计算算术几何平均值的迭代步骤的解析式,算术几何平均值用 ArithmeticGeometricMean 表示:
ArithmeticGeometricMeanIteration[n_, a_, b_] := With[{z = EllipticNomeQ[1 - (b / a)^2]}, ArithmeticGeometricMean[a, b]{EllipticTheta[3, 0, z^2^n]^2, EllipticTheta[4, 0, z^2^n]^2}]Table[ArithmeticGeometricMeanIteration[n, 1., 2.], {n, 0, 4}]With[{a = N[1, 2000], b = N[2, 2000]}, Table[ArithmeticGeometricMeanIteration[n, a, b], {n, 0, 10}] - ArithmeticGeometricMean[a, b]]//SetPrecision[#, 3]&With[{a = 1``1010, b = 1 / Sqrt[2], o = 9}, 2ArithmeticGeometricMeanIteration[o + 1, a, b][[1]] ^ 2 / (1 - Sum[2 ^ n ({1, -1}.(ArithmeticGeometricMeanIteration[n, a, b] ^ 2)), {n, 0, o}])]% - PiN[1 / ArithmeticGeometricMean[1, Sqrt[2]], 50]% == (1/2π)Beta[(1/4), (1/2)]Plot3D[Abs[ArithmeticGeometricMean[a, b]], {a, -2, 2}, {b, -2, 2}]//Quiet属性和关系 (3)
D[ArithmeticGeometricMean[a, b], a]//SimplifyD[ArithmeticGeometricMean[a, b], b]//Simplify利用 FunctionExpand 展开 ArithmeticGeometricMean 成为其它函数:
FunctionExpand[ArithmeticGeometricMean[a, b], a > 0 && b > 0]证明 ArithmeticGeometricMean 满足一种超几何微分方程:
w[a_] := ArithmeticGeometricMean[a, b]FullSimplify[2 a (b ^ 2 - a ^ 2) w'[a] ^ 2 + w[a] ((3 a ^ 2 - b ^ 2) w'[a] +
a (a ^ 2 - b ^ 2) w''[a]) - a w[a] ^ 2 == 0, a > 0 && b > 0]a[n_] := (a[n - 1] + b[n - 1]) / 2;b[n_] := Sqrt[a[n - 1] b[n - 1]];a[0] = a0;b[0] = b0;Reduce[ForAll[{a0, b0}, {a0, b0}∈ Reals && a0 > 0 && b0 > 0, (a0 + b0) / 2 >= a[3] >= b[3] >= Sqrt[a0 b0]]]技术笔记
相关指南
-
▪
- 椭圆积分
历史
1988年引入 (1.0) | 在以下年份被更新:2021 (13.0) ▪ 2022 (13.1)
文本
Wolfram Research (1988),ArithmeticGeometricMean,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ArithmeticGeometricMean.html (更新于 2022 年).
CMS
Wolfram 语言. 1988. "ArithmeticGeometricMean." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2022. https://reference.wolfram.com/language/ref/ArithmeticGeometricMean.html.
APA
Wolfram 语言. (1988). ArithmeticGeometricMean. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ArithmeticGeometricMean.html 年
BibTeX
@misc{reference.wolfram_2026_arithmeticgeometricmean, author="Wolfram Research", title="{ArithmeticGeometricMean}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/ArithmeticGeometricMean.html}", note=[Accessed: 18-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_arithmeticgeometricmean, organization={Wolfram Research}, title={ArithmeticGeometricMean}, year={2022}, url={https://reference.wolfram.com/language/ref/ArithmeticGeometricMean.html}, note=[Accessed: 18-August-2026]}