x^y
给出关于
的
次幂.
Power 
x^y
给出关于
的
次幂.
背景
- Power 是一个计算表达式给定幂次的数学函数,称为指数函数. 表达式 Power[x,y] 通常通过速记语法被表示为 x^y 的形式或输入为 2D 排版形式 xy. 一个数的一次方等于它自身(
),而 1 的任意复数次方都等于 1(
). 指数函数的反函数由 Log 给出,所以求满足方程
的
值,主解是
. - 求一个表达式二次幂的操作被称为“平方”而求一个表达式三次幂的操作被称为“立方”. 结合包含幂次的量的运算法则被称为指数律,而把一个底数提升到给定幂次的过程被称为乘方. 许多涉及 Power、Exp、Log 和相关函数的表达式会被自动化简而其余则可能需要用 Simplify 或 FullSimplify 化简. PowerExpand 可被用于进行形式化的展开和相关化简,而 ExpToTrig 可被用于求 Power 表达式的三角函数形式.
- 函数 Sqrt[x] 是用 Power[x,1/2] 表示的. 使用自然对数 E 为底的乘幂可被输入为 Exp[x] 但实际是用 Power[E,x] 表示的.
- 对非整数的 y,Power[x,y] 在复 x 平面上对 y 由一个从
到 0 的不连续的分支切割. 因为这个分支切割,对负实数值的 x 和正奇数 n,Power[x,1/n] 默认返回复数根而不是实数根. 要得到实数值的第 n
个根,可以用 Surd[x,n]. 特例 CubeRoot[x] 对应的是 Surd[x,3].
范例
打开所有单元 关闭所有单元基本范例 (6)
2 ^ 1002^100明确的 FullForm:
Power[2, 100]Plot[Power[x, 3], {x, 0, 5}]ComplexPlot3D[z^3, {z, -3 - 3I, 3 + 3I}, PlotLegends -> Automatic]Series[Power[x^2 / 3], {x, -1, 3}, Assumptions -> Im[x] > 0]范围 (46)
数值计算 (9)
Power[2., -1 / 2]N[((12/17))^5, 50]res = N[Power[123, 4567890], 10 ^ 6];//Timing(-5)^1 / 2(-1)^1 / 3N[%]下面的式子遵循 Power 的广义定义,
:
%% == Exp[(1/3) Log[-1]]可用 Surd 来获取实根:
Surd[-1, 3]N[Power[2, I]]Power[I, 2]Power[2, I, 2]Power 逐项作用于列表和矩阵的各个元素:
{0, 1.5, I π, ∞}^1 / 22 ^ {1, 2, 3}(| | |
| :- | :- |
| 1 | u |
| v | I |)^2//MatrixFormPower 可与 Interval 和 CenteredInterval 对象一起使用:
Interval[{1 / 3, 2}] ^ 3Pi ^ Interval[{2, 3.}]CenteredInterval[2, 1 / 100] ^ CenteredInterval[3, 1 / 100]CenteredInterval[2 + 3I, (1 + I) / 100] ^ CenteredInterval[3, (1 + I) / 100]用 Around 计算普通的统计区间:
Power[ 2, Around[2 / 3, 0.001]]Power[2, {{1 / 2, -1}, {-5 / 3, 1 / 2}}]或用 MatrixFunction 计算矩阵形式的 Power 函数:
MatrixFunction[Power[2, #]&, {{1 / 2, -1}, {-5 / 3, 1 / 2}}]//FullSimplify特殊值 (4)
Power[x, 0]Power[0, n]{0^2, 0^-2}//QuietPower[0, 0]//QuietLimit[x ^ n, n -> ∞, Assumptions -> Abs[x] < 1]Limit[x ^ n, n -> ∞, Assumptions -> Abs[x] > 1]Power[2, y]Power[x, 5]Power[x, y, z]求当 Power[x,3]=0.5,x 的值:
xval = x /. FindRoot[Power[x, 3] == 0.5, {x, 0.1}]Plot[Power[x, 3], {x, 0, 1}, Epilog -> Style[Point[{xval, Power[xval, 3]}], PointSize[Large], Red]]可视化 (5)
Plot[{x^1, x^2, x^3, x^4}, {x, -1, 1}, PlotLegends -> "Expressions"]ReImPlot[x^2 / 3, {x, -4, 4}, PlotLegends -> Automatic]在实数上比较
(Power[x,
]) 和
(CubeRoot[x]) 的实部和虚部:
ReImPlot[{x^(1/(3)), Surd[x, 3]}, {x, -4, 4}, PlotLegends -> Automatic]ComplexContourPlot[Re[(z)^5 / 2], {z, -3 - 3 I, 3 + 3I}, Contours -> 20]ComplexContourPlot[Im[(z)^5 / 2], {z, -3 - 3 I, 3 + 3I}, Contours -> 20]PolarPlot[ϕ^3, {ϕ, 0, 8π}, Frame -> True]函数的属性 (11)
FunctionDomain[2^n, n]FunctionDomain[(-2)^n, n]FunctionDomain[(-2)^n, n, Complexes]FunctionRange[2^n, n, y]FunctionRange[2^n, n, z, Complexes]Power 是右结合:
Power[x, y, z] === Power[x, Power[y, z]]Power[x, y, z]//FullFormPower 在复平面上第二个参数上是周期性的:
FunctionPeriod[x ^ n, n, Complexes]Limit[(-2 + ε) ^ (1 / 3), ε -> 0, Direction -> I]Limit[(-2 + ε) ^ (1 / 3), ε -> 0, Direction -> -I]N[{%, %%}]FunctionAnalytic[x^n, x, Assumptions -> n∈ℤ && n > 0]FunctionMeromorphic[x^n, x, Assumptions -> n∈ℤ && n < 0]{FunctionMeromorphic[x^1 / 2, x], FunctionMeromorphic[x^-π, x]}FunctionAnalytic[b^x, x, Assumptions -> b∈ℝ && b ≠ 0]{FunctionAnalytic[x^y, {x, y}], FunctionMeromorphic[x^y, {x, y}]}FunctionMonotonicity[b^x, x, Assumptions -> b > 1, StrictInequalities -> True]FunctionMonotonicity[b^x, x, Assumptions -> 0 < b < 1, StrictInequalities -> True]FunctionInjective[b^x, x, Assumptions -> b < -1 || b > 1 || -1 < b < 0 || 1 > b > 0]Plot[{((1/4))^``x``, 5}, {x, -5, 5}]FunctionSurjective[b^x, x, Assumptions -> b > 1]Plot[{4^``x``, -2}, {x, -5, 5}]FunctionSign[b^``x``, x, Assumptions -> b > 0, StrictInequalities -> True]FunctionSign[x^n, x, Assumptions -> (n/2)∈ℤ && n > 0]FunctionSingularities[x^n, x]FunctionContinuous[{x ^ n, x ≥ 0}, x]//FullSimplifyFunctionConvexity[b^x, x, Assumptions -> b > 0]FunctionConvexity[x^n, x, Assumptions -> (n/2)∈ℤ && n > 0]微分 (4)
D[Power[x, n], x]Table[D[Power[x, n], {x, k}], {k, 1, 4}]//FullSimplifyPlot[Evaluate[% /. n -> 4], {x, -3, 3}, PlotLegends -> {"First Derivative", "Second Derivative", "Third Derivative", "Fourth Derivative"}]D[Power[x, n], {x, k}]// FullSimplifyD[x^n, n]D[x^n, {n, k}]积分 (3)
用 Integrate 计算不定积分:
Integrate[x^y, x]// FullSimplifyFullSimplify[D[%, x]]// FullSimplifyIntegrate[x^y, {x, 0, 10}, Assumptions -> Re[y] > -1]Integrate[x^y y^x, x]// FullSimplifyIntegrate[Log10[x] Power[E, x], {x, 0, E}]// FullSimplify级数展开 (4)
用 Series 求泰勒展开式:
Series[Power[y, x], {x, 0, 5}]terms = Normal@Table[Series[Power[2, x], {x, 0, m}], {m, 1, 5, 2}];
Plot[{Power[2, x], terms}, {x, -10, 10}]用 SeriesCoefficient 获取级数展开式的通项:
SeriesCoefficient[Power[y, x], {x, 1, n}]FourierSeries[Power[y, x], x, 1]// FullSimplifySeries[Power[y, x], {x, x0, 2}]// FullSimplify函数恒等式和化简 (6)
Power[z, 0] == 1Power[z, k] == z Power[z, k - 1]ExpToTrig[Power[E, I x]]与 Exp 函数的关系:
Power[-1, a] == Exp[I a π]//FullSimplify(x ^ 2)^1 / 3用 PowerExpand 强制进行组合:
PowerExpand[%](x ^ 2)^1 / 3 == PowerExpand[x^2 / 3] /. x -> -1也可以用含有合适假设的 Simplify:
Simplify[(x ^ 2)^1 / 3, x∈Reals]Power[x, a]Power[x, b]ComplexExpand[Power[x + I y, k]]应用 (5)
Table[(1 + 0.05) ^ n, {n, 5}]Reduce[(4/3)Pi r ^ 3 == a ^ 3, r, Reals]ToRadicals[%, Assumptions -> a > 0]% /. a -> 1.ContourPlot[Re[2 ^ (1 / (0.1 + x + I y))], {x, -0.1, 0.1}, {y, -0.1, 0.1}]求有理函数的用 Log 表示的的积分:
Integrate[1 / (x ^ 2 - 1), x]DSolve[{(1 + x^2) y''[x] + 2 x y'[x] == 0, y[0] == 0, y'[0] == 1}, y[x], x]属性和关系 (27)
{x ^ (1 / 2), Sqrt[x], Sqrt[x]}(z ^ (1 / 3)) ^ 3(z ^ 3) ^ (1 / 3)(z ^ 3) ^ (1 / 3) /. z -> -1使用 Power[x,1/n] 或
求主值负根:
(-16.)^1 / 4-32.^(1/(5))使用 Surd[x,n] 求 n 次方实根:
Surd[-16., 4]Surd[-32., 5]Simplify[(z ^ 3) ^ (1 / 3), z > 0]用 PowerExpand 处理正式化简:
PowerExpand[(z ^ 3) ^ (1 / 3)]PowerExpand[(z ^ 3) ^ (1 / 3), Assumptions -> {}]PiecewiseExpand[%, Assumptions -> -Pi < Arg[z] ≤ Pi]用 ExpToTrig 获得三角形式:
(-1) ^ (1 / 7)ExpToTrig[(-1) ^ (1 / 7)]RootReduce[2 ^ (1 / 2) + 5 ^ (1 / 5)]sol = Solve[x ^ 6 == 1, x]root = Table[Root[# ^ 6 - 1&, m], {m, 6}]Sort[ExpToTrig[x /. sol]] == Sort[root]用 Expand 将多项式的幂展开:
(1 + x) ^ 10Expand[(1 + x) ^ 10]Series[Exp[x], {x, 0, 5}]% ^ 4Solve[a ^ x == b, x]Reduce[a ^ x == b, x]//TraditionalForm1 / x ^ 2//FullFormSqrt[x]//FullFormExp[x] // FullFormCases[{1 / x, 1, Sqrt[x], x, x ^ 2, x ^ 3}, x ^ _]Cases[{1 / x, 1, Sqrt[x], x, x ^ 2, x ^ 3}, x ^ _.]Plot3D[Im[(x + I y) ^ (1 / 3)], {x, -3, 3}, {y, -2, 2}](2 + Sqrt[3]) ^ (1 / 3)∈Algebraics(Pi) ^ (1 / 3)∈Algebraics∫x^aa^xⅆxLaplaceTransform[t^n, t, s]FourierTransform[1 / t ^ 2, t, s]Underoverscript[∑, k = Subscript[k, 1], Subscript[k, 2]]k^aDSolve[z Derivative[1][w][z] - a w[z] == 0, w[z], z]在许多数学函数的特例中显示 Power:
{HypergeometricPFQ[{-a}, {}, 1 - z], Hypergeometric2F1[-a, b, b, 1 - z], MeijerG[{{1 + a}, {}}, {{0}, {}}, z - 1]}Power 可被表示为 DifferenceRoot:
DifferenceRootReduce[Power[k, 2], k]DifferenceRootReduce[Power[z, k], k]Power 的级数展开式中的一般项:
SeriesCoefficient[Power[a, x], {x, 0, n}]Power 的母函数:
GeneratingFunction[Power[n, k], n, x]Series[%, {x, 0, 10}]FindSequenceFunction 可以识别 Power 序列:
Table[Power[n, 5], {n, 10}]FindSequenceFunction[%, n]Power 的指数母函数:
ExponentialGeneratingFunction[Power[k, n], n, x]用 GeneralizedPower 表示任意二进制运算的整数幂:
GeneralizedPower[NonCommutativeMultiply, x + y, 3]Power 是 Times 的 GeneralizedPower:
GeneralizedPower[Times, x, k]可能存在的问题 (13)
Power 通常计算主根:
(-1) ^ (1 / 3)N[%](z ^ 3) ^ (1 / 3)(z ^ 3) ^ (1 / 3) /. z -> -1PowerExpand[(z ^ 3) ^ (1 / 3)]((-1.) ^ (1 / 3)) ^ 3((N[-1, 20]) ^ (1 / 3)) ^ 3用 Chop 删除较小的虚部:
Chop[%]Plot[Sqrt[z ^ 2] / z, {z, -1, 1}]D[Sqrt[z ^ 2] / z, z]N[(-2 + I ((Pi + 1) ^ 2 - Pi ^ 2 - 2Pi - 1 - Exp[-Pi ^ 4])) ^ (1 / 3)]N[(-2 + I ((Pi + 1) ^ 2 - Pi ^ 2 - 2Pi - 1 - Exp[-Pi ^ 4])) ^ (1 / 3), 8]5 ^ 5 ^ 5.MachineNumberQ[%]2 ^ 2 ^ 20.2 ^ 2 ^ 100.0 ^ 0{x ^ 0, x ^ 0.0, x ^ 0``10}{1 ^ x, 1.0 ^ x, 1``10 ^ x}(Pi ^ 2 + 2Pi + 1 - (Pi + 1) ^ 2 + Exp[-1000]) ^ 0N[%]Block[{$MaxExtraPrecision = 10 ^ 4}, N[%%, 20]]Series[x ^ Sqrt[2] Sin[x], {x, 0, 5}]Head[%]Power 按元素作用于矩阵:
{{1, 2}, {3, 4}} ^ 2对于矩阵幂用 MatrixPower:
MatrixPower[{{1, 2}, {3, 4}}, 2]巧妙范例 (3)
Plot[Evaluate[Table[x ^ n, {n, 10}]], {x, -1.2, 1.2}]NestList[z ^ #&, z, 6]ContourPlot[Evaluate[Sin[Arg[z^z^z^z /. z -> x + I y] / 2]], {x, -1, 1}, {y, -1, 1}, ColorFunction -> Hue, ContourStyle -> None, Exclusions -> {}]ListPlot[Abs[NestList[I ^ #&, 1, 50]]]FixedPoint[SetPrecision[I ^ #, 16]&, 1]Solve[I ^ x == x, x]N[%, 16]技术笔记
-
▪
- 算术
相关指南
-
▪
- 算术函数 ▪
- 矩阵运算 ▪
- 矩阵和线性代数 ▪
- 向量运算 ▪
- 初等函数 ▪
- 图像处理和分析 ▪
- Wolfram 语言语法 ▪
- 数学函数 ▪
- GPU 计算 ▪
- 音频编辑 ▪
- NVIDIA GPU 计算 ▪
- Apple GPU 计算
历史
1988年引入 (1.0) | 在以下年份被更新:2021 (13.0)
文本
Wolfram Research (1988),Power,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Power.html (更新于 2021 年).
CMS
Wolfram 语言. 1988. "Power." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2021. https://reference.wolfram.com/language/ref/Power.html.
APA
Wolfram 语言. (1988). Power. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Power.html 年
BibTeX
@misc{reference.wolfram_2026_power, author="Wolfram Research", title="{Power}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Power.html}", note=[Accessed: 03-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_power, organization={Wolfram Research}, title={Power}, year={2021}, url={https://reference.wolfram.com/language/ref/Power.html}, note=[Accessed: 03-November-2026]}