# 零的零次方

**零的零次方**，写作 \( 0^{0} \)，是幂的底数和指数都为零时得到的表达式。它在整个数学中没有公认的单一值：大多数实际语境，包括组合数学、代数、集合论，以及 IEEE 754 中的 `pow` 和 `pown` 函数和 POSIX 中的 `pow` 函数，都把它定义为 1；而在实分析中，它是一个未定式，其极限取决于底数和指数如何趋近于零。<sup>[1](https://old.maa.org/press/periodicals/convergence/what-is-00-indeterminate-forms)</sup><sup> • </sup><sup>[2](https://www.math.utoronto.ca/mathnet/plain/questionCorner/powerof0.html)</sup><sup> • </sup><sup>[3](https://cs.uwaterloo.ca/~alopez-o/math-faq/mathtext/node14.html)</sup><sup> • </sup><sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup> 这种分歧是约定和语境的问题，而不是被发现的事实；每个领域所作的选择都有文献记载且是有意为之。

| 关键事实 | 细节 |
|---|---|
| 相互冲突的规则 | 欧拉（Euler）的《引论》（*Introductio*，1748）指出 \( a^{0} = 1 \)，而对正 \( z \) 有 \( 0^{z} = 0 \)；把第二条规则延拓到 \( z = 0 \) 会提示 0，与第一条规则的值 1 冲突。<sup>[1](https://old.maa.org/press/periodicals/convergence/what-is-00-indeterminate-forms)</sup> |
| 极限行为 | 当 \( x \to 0^{+} \) 时，\( x^{0} \to 1 \) 且 \( 0^{x} \to 0 \)；并且 \( x^{y} \) 在 \( (x,y) \to (0,0) \) 时没有良好定义的极限。<sup>[5](https://mathworld.wolfram.com/Zero.html)</sup><sup> • </sup><sup>[2](https://www.math.utoronto.ca/mathnet/plain/questionCorner/powerof0.html)</sup> |
| 组合值 | 二项式定理 \( (x+y)^{n} = \sum_{k=0}^{n} \binom{n}{k} x^{k} y^{n-k} \) 在 \( x = 0 \) 处成立，仅当 \( 0^{0} = 1 \)。<sup>[6](https://arxiv.org/pdf/math.HO/9205211)</sup> |
| 计算标准 | IEEE 754 的 `pow` 和 `pown` 对 \( 0^{0} \) 返回 1 且不报错；`powr` 返回 NaN；POSIX.1-2024 要求 `pow(0,0)` 返回 1.0。<sup>[7](https://grouper.ieee.org/groups/msc/ANSI_IEEE-Std-754-2019/background/power.txt)</sup><sup> • </sup><sup>[8](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/pow.html)</sup> |
| 分歧的软件 | Mathematica 返回 Indeterminate，Excel 对 `=POWER(0,0)` 返回数字错误，Sage 和 Pari 返回 1，而 Maple 的答案在不同版本之间发生过变化。<sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup><sup> • </sup><sup>[9](https://github.com/microsoft/calculator/issues/418)</sup> |
| 历史争论 | 柯西（Cauchy）在 1821 年把 \( 0^{0} \) 列入未定义形式；1830 年代的利布里（Libri）—莫比乌斯（Möbius）之争以表面上的结论结束，即 \( 0^{0} \) 应当未定义，而高德纳（Knuth）拒绝这一结论。<sup>[6](https://arxiv.org/pdf/math.HO/9205211)</sup> |
| 平行约定 | \( 0! = 1 \) 也以同样方式得到辩护，即零个元素的排列数。<sup>[5](https://mathworld.wolfram.com/Zero.html)</sup> |

## 为什么这个表达式有问题

这种歧义来自两条指数规则，它们各自看起来都很有说服力，却在 \( (0,0) \) 这一点上不一致。欧拉（Euler）的《无穷分析引论》（*Introduction to Analysis of the Infinite*，1748）指出 \( a^{0} = 1 \)，而只要 \( z \) 保持为正，就有 \( 0^{z} = 0 \)。在第一条规则中代入 \( a = 0 \) 会提示 \( 0^{0} = 1 \)；在第二条规则中代入 \( z = 0 \) 会提示 \( 0^{0} = 0 \)。<sup>[1](https://old.maa.org/press/periodicals/convergence/what-is-00-indeterminate-forms)</sup> MathWorld 以同样方式总结这一冲突：\( a^{0} \) 总是 1，所以 \( 0^{0} \)“应当”等于 1；但对正 \( a \)，\( 0^{a} \) 总是 0，所以它“应当”等于 0。<sup>[5](https://mathworld.wolfram.com/Zero.html)</sup>

极限论证使冲突更尖锐。当 \( x \) 趋近于 0 时，\( x^{0} \) 恒等于 1，而对正 \( x \)，\( 0^{x} \) 恒等于 0。<sup>[5](https://mathworld.wolfram.com/Zero.html)</sup> 更一般地，二元函数 \( f(x,y) = x^{y} \) 在 \( (x,y) \to (0,0) \) 时没有良好定义的极限：如果底数和指数各自沿不同路径趋近于零，那么无法保证这个量（如果存在的话）会趋近于什么。<sup>[2](https://www.math.utoronto.ca/mathnet/plain/questionCorner/powerof0.html)</sup> 这就是为什么没有任何单一值能使 \( x^{y} \) 在原点连续。

## 支持定义 0⁰ = 1 的论据

**空结构约定。** 平行约定 \( 0! = 1 \) 被定义为 1，因为 0 个元素的排列数为 1。<sup>[5](https://mathworld.wolfram.com/Zero.html)</sup>

**代数必要性。** 唐纳德·E·高德纳（Donald E. Knuth）在《记法二题》（*Two Notes on Notation*，载《美国数学月刊》，1992）中论证，任何希望二项式定理 \( (x+y)^{n} = \sum_{k=0}^{n} \binom{n}{k} x^{k} y^{n-k} \) 至少对一个非负整数 \( n \) 成立的人，都必须接受 \( 0^{0} = 1 \)，因为令 \( x = 0 \)、\( y = 1 \) 时，左边给出 1，右边给出 \( 0^{0} \)。<sup>[6](https://arxiv.org/pdf/math.HO/9205211)</sup> 他补充说，如果该定理在 \( x = 0 \)、\( y = 0 \) 或 \( x = -y \) 时要有效，就必须对所有 \( x \) 定义 \( x^{0} = 1 \)；他称这个定理太重要，不能任意加以限制。<sup>[10](https://www.math.uni-bielefeld.de/~sillke/NEWS/0-0.html)</sup> 同样的要求出现在多项式求值中：代数教材对所有 \( x \)（包括 \( x = 0 \)）定义 \( x^{0} = 1 \)，以便把写成 \( a_{0} x^{0} + a_{1} x^{1} + \cdots \) 的多项式在 0 处求值。<sup>[11](https://manned.org/man/freebsd-13.0/pow.3)</sup> 泰勒级数也是如此：诸如 \( e^{x} = \sum_{n=0}^{\infty} x^{n}/n! \) 的展开要在 \( x = 0 \) 处有效，就需要 \( 0^{0} = 1 \)。<sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup>

**解析函数论证。** 威廉·卡汉（William Kahan）论证 \( 0.0^{0.0} \) 应当为 1，因为如果 \( f(x) \) 和 \( g(x) \) 都是实解析函数且都趋于 0，并且 \( f(x) \) 在极限附近（极限点本身除外）为正，那么 \( f(x)^{g(x)} \to 1 \)。<sup>[10](https://www.math.uni-bielefeld.de/~sillke/NEWS/0-0.html)</sup> FreeBSD 的 `pow(3)` 手册陈述了同样的理由：如果 \( x(z) \) 和 \( y(z) \) 在 \( z = 0 \) 附近实解析，且 \( x(0) = y(0) = 0 \)，并对所有足够小的非零 \( z \) 有 \( x(z) \) 为正，那么当 \( z \to 0 \) 时 \( x(z)^{y(z)} \to 1 \)。<sup>[11](https://manned.org/man/freebsd-13.0/pow.3)</sup> 这一论证覆盖沿解析函数的极限路径，而不是底数和指数趋近于零的所有路径；这就是为什么它支持一个默认值，而不是解决解析上的歧义。<sup>[11](https://manned.org/man/freebsd-13.0/pow.3)</sup><sup> • </sup><sup>[2](https://www.math.utoronto.ca/mathnet/plain/questionCorner/powerof0.html)</sup>

## 分析中的未定式

微积分教材把两个函数都趋于 0 的 \( [f(x)]^{g(x)} \) 视为 \( 0^{0} \) 型未定式，这种未定式的极限可以根据 \( f \) 和 \( g \) 取不同值。<sup>[1](https://old.maa.org/press/periodicals/convergence/what-is-00-indeterminate-forms)</sup> 这种形式的极限可能需要洛必达法则等特殊技巧来求值。<sup>[3](https://cs.uwaterloo.ca/~alopez-o/math-faq/mathtext/node14.html)</sup> 经典例子是 \( \lim_{x \to 0^{+}} x^{x} = 1 \)，奥古斯特·莫比乌斯（August Möbius）在 1830 年代实际上把它用作 \( 0^{0} = 1 \) 的证明。<sup>[12](https://old.maa.org/press/periodicals/convergence/what-is-00-guglielmo-libri-and-augustin-cauchy)</sup>

解决表面冲突的区别在于*整数指数*与*实数指数*两种设定。当指数始终为整数时，\( 0^{0} \) 通常定义为 1。<sup>[2](https://www.math.utoronto.ca/mathnet/plain/questionCorner/powerof0.html)</sup> 当底数和指数都是实变量时，\( x^{y} \) 在原点没有极限，因此没有任何固定值能保持该处的连续性；在这种设定下定义 \( 0^{0} = 1 \) 是一种约定，它牺牲一个点上的连续性，以换取其他地方的代数便利。sci.math 常见问题（FAQ）直截了当地给出实用立场：\( 0^{0} \) 型的极限是未定的，但除此之外，\( 0^{0} = 1 \) 似乎是最有用的选择。<sup>[3](https://cs.uwaterloo.ca/~alopez-o/math-faq/mathtext/node14.html)</sup>

## 计算中的处理

**IEEE 754 系列。** IEEE 754-2008 把幂运算分成若干具有不同约定的函数：`pow` 和 `powr` 用于浮点指数，`pown` 和 `compound` 用于整数指数，2019 年又为十进制类型增加了 `powd`。<sup>[7](https://grouper.ieee.org/groups/msc/ANSI_IEEE-Std-754-2019/background/power.txt)</sup> 根据该标准，`pow` 和整数函数 `pown` 对 \( 0^{0} \) 返回 1.0 且不报错；而附加函数 `powr` 把负底数视为无效，对 `powr(0,0)`、`powr(+inf,0)` 和 `powr(1,inf)` 返回 NaN，这些情形看起来都像 \( \exp(0 \cdot \infty) \)；`powr` 并未广泛提供。<sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup><sup> • </sup><sup>[7](https://grouper.ieee.org/groups/msc/ANSI_IEEE-Std-754-2019/background/power.txt)</sup> 2019 年修订版做了一处与此相关的改动：`pow(x, ±0)` 仅当 \( x \) 不是信号 NaN 时才为 1，而 2008 年版对任意 \( x \) 都返回 1，因此 `pow(f32, signaling NaN, 0.0)` 现在必须返回 NaN；Zig 标准库不得不为此修正。<sup>[13](https://codeberg.org/ziglang/zig/pulls/30176)</sup>

**POSIX 与 ISO C。** POSIX.1-2024 要求，对任意 \( x \) 值（包括 NaN），如果 \( y \) 为 ±0，结果就是 1.0，因此 `pow(0,0)` 返回 1.0；它还规定当 \( y < 0 \) 时 `pow(±0, y)` 产生极点错误，返回 ±HUGE_VAL。<sup>[8](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/pow.html)</sup> ISO C 对 \( 0^{0} \) 的处理较为宽松：2001 年针对 C99 提交、并在 C99 TC2 中修正的缺陷报告 241 区分了 `pow(0,0)` 与 `pow(0, y<0)`，前者*可能*发生定义域错误，后者可能发生值域错误，因为后者实际上是 \( 1/0 \)。<sup>[14](https://www.open-std.org/Jtc1/sc22/wg14/issues/c99/issue0241.html)</sup> cppreference 记录了同样宽松的措辞。<sup>[15](https://cppreference.com/c/numeric/math/pow)</sup> FreeBSD 手册指出，`pow(x,0)` 对所有 \( x \) 返回 1，包括 \( x = 0 \)、\( \infty \) 和 NaN，而早先的实现可能把其中一些情形留作未定义。<sup>[11](https://manned.org/man/freebsd-13.0/pow.3)</sup>

**实现现实。** 发表在《ACM 数学软件汇刊》（*ACM Transactions on Mathematical Software*）上的一项同行评审研究考察了 C99、C11 和 IEEE 754-2008 如何定义幂函数在特殊操作数值上的正确结果，测试了多个软件实现，并发现实现与标准之间存在不一致，以及同一软件不同版本之间存在不兼容。<sup>[16](https://dl.acm.org/doi/10.1145/2809783)</sup> 在 C 谱系之外，行为出现分歧：Mathematica 对 \( 0^{0} \) 返回 Indeterminate，Microsoft Excel 对 `=POWER(0,0)` 返回数字错误，Android 计算器返回“未定义，或 1”，Sage 和 Pari 返回 1，旧版 Maple 返回“未定义”，而较新版本对整数幂函数返回 1；一些手持计算器返回 1，另一些则卡死并需要清除错误。<sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup><sup> • </sup><sup>[9](https://github.com/microsoft/calculator/issues/418)</sup>

## 历史争论

欧拉（Euler）很早就采取值为 1 的立场：他的《代数基础》（*Elements of Algebra*，1770）论证 \( a^{0} \) 总等于 1，“即使 \( a \) 为零”。<sup>[1](https://old.maa.org/press/periodicals/convergence/what-is-00-indeterminate-forms)</sup> 奥古斯丁-路易·柯西（Augustin-Louis Cauchy）在其《分析教程》（*Cours d'Analyse*，1821）中，把 \( 0^{0} \) 与 \( 0/0 \)、\( \infty - \infty \) 之类的表达式一起列入未定义形式表。<sup>[6](https://arxiv.org/pdf/math.HO/9205211)</sup>

1830 年代出现了最尖锐的插曲。古列尔莫·利布里（Guglielmo Libri）1833 年的论文引发了一场关于 \( 0^{0} \) 是否有定义的争论；当时大多数数学家同意 \( 0^{0} = 1 \)，奥古斯特·莫比乌斯（August Möbius）以一则所谓的 \( 0^{0} = 1 \) 证明为利布里辩护，本质上就是证明 \( \lim_{x \to 0^{+}} x^{x} = 1 \)。莫比乌斯 1834 年的论文发表在《纯粹与应用数学杂志》（*Journal für die reine und angewandte Mathematik*）第 12 卷，第 292–294 页，后来被悄然从全集中略去。<sup>[12](https://old.maa.org/press/periodicals/convergence/what-is-00-guglielmo-libri-and-augustin-cauchy)</sup> 高德纳（Knuth）叙述说，这场争论以表面上的结论结束，即 \( 0^{0} \) 应当未定义，并断然拒绝它：“不，不，一万个不！”<sup>[6](https://arxiv.org/pdf/math.HO/9205211)</sup> 他认为，因为 \( x^{0} \) 和 \( 0^{x} \) 有不同的极限值就把 \( 0^{0} \) 留作未定义，是一个错误。<sup>[10](https://www.math.uni-bielefeld.de/~sillke/NEWS/0-0.html)</sup>

## 按领域看

当前格局按领域划分得很清楚。标准和大多数编程语言返回 1：IEEE 754 的 `pow` 和 `pown`、POSIX.1-2024 以及 C# 都计算 \( 0^{0} = 1 \) 且不报错，只有 IEEE 的 `powr` 产生 NaN。<sup>[8](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/pow.html)</sup><sup> • </sup><sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup> 计算机代数系统则分成两派：Sage 和 Pari 返回 1，Mathematica 返回 Indeterminate，Maple 在不同版本之间发生过变化。<sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup> 电子表格和一些计算器把它视为错误。<sup>[9](https://github.com/microsoft/calculator/issues/418)</sup> 甚至 OEIS 整数序列数据库也记录两种解释：序列 A000007 以 \( 0^{0} = 1 \) 列出零的幂，而 A000004 与 \( 0^{0} = 0 \) 的解释一致。<sup>[4](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)</sup>

从标准记录和近期学术研究中可以看出，正在形成的共识是：对整数指数，\( 0^{0} = 1 \) 是正确的，因为空乘积、组合和多项式求值论证适用；而对实数和复数指数，该表达式仍是未定式，因为没有任何固定值能保持连续性。一篇 2025 年的 arXiv 论文确认 \( 0^{0} = 1 \) 这一值与组合和代数解释一致，并引用了高德纳（Knuth）对这场争论的叙述。<sup>[17](https://arxiv.org/html/2501.08762v1)</sup> 剩下的分歧在于：高德纳（Knuth）坚持普遍定义 \( 0^{0} = 1 \)，而分析传统在整数设定之外把它留作未定义；这是一个有文献记载的约定差异，关乎哪种值服务于哪种目的，而不是一个未决的数学问题。<sup>[6](https://arxiv.org/pdf/math.HO/9205211)</sup>

## References

1. ["What is 0^0? – Indeterminate Forms", MAA Convergence.](https://old.maa.org/press/periodicals/convergence/what-is-00-indeterminate-forms)
2. ["Question Corner – Why is x^0 = 1?", University of Toronto MathNet.](https://www.math.utoronto.ca/mathnet/plain/questionCorner/powerof0.html)
3. ["What is 0^0", Sci.Math FAQ, University of Waterloo.](https://cs.uwaterloo.ca/~alopez-o/math-faq/mathtext/node14.html)
4. ["The special case of zero to the zeroth power", OeisWiki.](https://oeis.org/wiki/The_special_case_of_zero_to_the_zeroeth_power)
5. ["Zero", Wolfram MathWorld.](https://mathworld.wolfram.com/Zero.html)
6. [Donald E. Knuth (1992). "Two Notes on Notation". American Mathematical Monthly, arXiv math.HO/9205211.](https://arxiv.org/pdf/math.HO/9205211)
7. ["IEEE 754-2019 background notes on the power functions", IEEE MSC.](https://grouper.ieee.org/groups/msc/ANSI_IEEE-Std-754-2019/background/power.txt)
8. ["POSIX.1-2024: pow", The Open Group.](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/pow.html)
9. ["Math.pow(0.0, 0.0) returns 1; should be undefined or error?", Microsoft Calculator issue tracker.](https://github.com/microsoft/calculator/issues/418)
10. ["What is 0^0 (Knuth/Kahan quotations)", Bielefeld University archive.](https://www.math.uni-bielefeld.de/~sillke/NEWS/0-0.html)
11. ["pow(3)", FreeBSD manual page.](https://manned.org/man/freebsd-13.0/pow.3)
12. ["What is 0^0? – Guglielmo Libri and Augustin Cauchy", MAA Convergence.](https://old.maa.org/press/periodicals/convergence/what-is-00-guglielmo-libri-and-augustin-cauchy)
13. ["std.math.pow: fix IEEE 754 compliance issues", ziglang/zig PR #30176.](https://codeberg.org/ziglang/zig/pulls/30176)
14. ["C Defect Report 241: Make the base standard and Annex F consistent for pow(0, <0)", ISO/IEC JTC1 SC22 WG14.](https://www.open-std.org/Jtc1/sc22/wg14/issues/c99/issue0241.html)
15. ["pow, powf, powl", cppreference.com.](https://cppreference.com/c/numeric/math/pow)
16. ["What are the Correct Results for the Special Values of the Operands of the Power Operation?", ACM Transactions on Mathematical Software.](https://dl.acm.org/doi/10.1145/2809783)
17. ["Yet Another Note on Notation", arXiv (2025).](https://arxiv.org/html/2501.08762v1)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 19, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Integer sequences and partitions › Special and named integers › Powers and perfect powers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/zero-to-the-power-of-zero

English original: https://www.edgepedia.org/zero-to-the-power-of-zero
