# 立方根

数a的立方根，是指满足b³ = a的数b，记作∛a或a^(1/3)。与平方根不同，立方根对每个实数都有定义，而且每个实数都恰好有一个实数立方根：正数的立方是正数，负数的立方是负数，立方函数严格递增，因此任何实数都不可能有两个不同的实数立方根。<sup>[1](https://math.libretexts.org/Bookshelves/Algebra/Advanced_Algebra/01%3A_Algebra_Fundamentals/1.03%3A_Square_and_Cube_Roots_of_Real_Numbers)</sup>例如，x³ = −8只有一个实数解，所以−2就是−8的主立方根。<sup>[2](https://mathcenter.oxford.emory.edu/site/math100/radicals/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | b = ∛a当且仅当b³ = a；每个实数都恰好有一个实数立方根，因此不存在主根方面的技术性麻烦<sup>[1](https://math.libretexts.org/Bookshelves/Algebra/Advanced_Algebra/01%3A_Algebra_Fundamentals/1.03%3A_Square_and_Cube_Roots_of_Real_Numbers)</sup> |
| 复根 | 任何非零复数都恰好有三个不同的立方根，均匀分布在半径为\|z\|^(1/3)的圆上<sup>[3](https://mathworld.wolfram.com/nthRoot.html)</sup><sup> • </sup><sup>[4](https://mpmath.org/doc/1.0.0/functions/powers.html)</sup> |
| 浮点数 | cbrt(343)精确返回7，而pow(343, 1.0/3)返回6.9999999999999991；pow(−343, 1.0/3)返回NaN，而cbrt(−343)返回−7<sup>[5](https://en.cppreference.com/cpp/numeric/math/cbrt)</sup> |
| 收敛性 | 牛顿法在单根附近以2阶收敛；哈雷法以3阶收敛，而且对于三次多项式，不存在一般收敛且阶数恰好为4的方法<sup>[6](https://janehawkins.web.unc.edu/wp-content/uploads/sites/17111/2019/09/Hawkins_ProcAMS_2002.pdf)</sup> |
| 迭代次数 | Boost的cbrt在双精度下至多6次迭代即精确到末位，在1000位精度下为7次迭代<sup>[7](https://www.cppal-dev.boost.org/doc/libs/latest/libs/math/doc/html/math_toolkit/root_finding_examples/cbrt_eg.html)</sup> |
| 历史 | 倍立方等价于构造∛2，而∛2无法用圆规和直尺作出，这一结论由万策尔于1837年确立<sup>[8](https://faculty.etsu.edu/gardnerr/3040/Notes-Eves6/Eves6-4-5.pdf)</sup> |
| 近期软件 | OpenJDK于2025年为x86_64新增了Math.cbrt内建函数；LLVM的libc实现了双精度cbrt，在所有舍入模式下均正确舍入<sup>[9](https://github.com/openjdk/jdk/pull/24470)</sup><sup> • </sup><sup>[10](https://github.com/llvm/llvm-project/pull/99262)</sup> |

## 定义与基本性质

形式上，∛a由方程b³ = a定义。由于三个相等因子的乘积取该因子的符号，负数也有实数立方根；而在偶次根的情形中，负的被开方数根本没有实数根。<sup>[1](https://math.libretexts.org/Bookshelves/Algebra/Advanced_Algebra/01%3A_Algebra_Fundamentals/1.03%3A_Square_and_Cube_Roots_of_Real_Numbers)</sup><sup> • </sup><sup>[2](https://mathcenter.oxford.emory.edu/site/math100/radicals/)</sup>相比之下，每个正实数有两个平方根，一正一负，这正是为什么主根的概念对偶次根有意义，而对实数的立方根却没有必要。<sup>[1](https://math.libretexts.org/Bookshelves/Algebra/Advanced_Algebra/01%3A_Algebra_Fundamentals/1.03%3A_Square_and_Cube_Roots_of_Real_Numbers)</sup>

**记号。**根号形式∛x是幂形式x^(1/3)的较早替代写法；根号下的值称为被开方数，根的次数n称为根指数。<sup>[2](https://mathcenter.oxford.emory.edu/site/math100/radicals/)</sup>函数x^(1/3)在实数上连续，但在x = 0处有奇点，其导数在该点无界。<sup>[11](https://reference.wolfram.com/language/ref/CubeRoot.en.md)</sup>

## 复立方根

把立方根扩展到复平面，情况就完全变了。有定理保证：任何非零复数恰好有n个不同的n次根，因此一个非零复数恰好有三个立方根。<sup>[3](https://mathworld.wolfram.com/nthRoot.html)</sup>几何上，z的n个n次根等距分布在以原点为圆心、半径为\|z\|^(1/n)的圆上。<sup>[4](https://mpmath.org/doc/1.0.0/functions/powers.html)</sup>

**主根与支割线。**复立方根是多值的，因此单值版本必须在每一点选定一个值。多值函数的一个分支，是指定义域上的一个单值连续函数，它在每一点取可用值之一；主根分支按惯例沿负实轴割开。<sup>[12](https://complexanalysis.org/web/sec_branches.html)</sup>按照惯例，对于负实数输入，主立方根是虚部为正的那个复根，主值的支割线沿负实轴。<sup>[13](https://mathworld.wolfram.com/CubeRoot.html)</sup>这一后果在软件中清晰可见：mpmath的cbrt(x)通过exp(log(x)/3)计算x^(1/3)，用的是对数的主分支，因此cbrt(−1)返回0.5 + 0.866025403784439j，而不是−1。<sup>[4](https://mpmath.org/doc/1.0.0/functions/powers.html)</sup>Wolfram语言等符号代数语言遵循同样的惯例，所以Wolfram单独提供了CubeRoot[x]函数，对实数x返回实值立方根，在负实轴上与Power[x, 1/3]不同。<sup>[13](https://mathworld.wolfram.com/CubeRoot.html)</sup><sup> • </sup><sup>[11](https://reference.wolfram.com/language/ref/CubeRoot.en.md)</sup>

## 计算立方根

**牛顿法**求解f(x) = x³ − a。它在单根附近以2阶收敛，即每步正确数字的位数大约翻一倍。<sup>[6](https://janehawkins.web.unc.edu/wp-content/uploads/sites/17111/2019/09/Hawkins_ProcAMS_2002.pdf)</sup>**哈雷法**也用到二阶导数，以3阶收敛；麦克马伦证明，他的一般收敛三次算法与哈雷（柯尼希）算法一致，并且对于三次多项式，不存在一般收敛且阶数恰好为4的方法，不过用一般收敛算法可以得到任意高的阶数。<sup>[6](https://janehawkins.web.unc.edu/wp-content/uploads/sites/17111/2019/09/Hawkins_ProcAMS_2002.pdf)</sup>几何上，f的牛顿步沿−∇\|f\|方向，位于当前点与\|f\|水平集的密切圆圆心之间的连线上。<sup>[14](http://benisrael.net/NEWTON-MONTHLY.pdf)</sup>

**实用实现**把范围缩减、多项式初始猜测和若干次精化步骤结合起来。标准的单精度做法将尾数缩减到(0.125, 1)区间，用二次多项式得到初始近似，再用两次牛顿–拉夫森迭代精化到完整的24位精度。<sup>[15](https://mdpi-res.com/d_attachment/energies/energies-14-01058/article_deploy/energies-14-01058-v2.pdf?version=1613712816)</sup>Apple的技术报告发现，四次有理多项式近似就足以给出24位精度，代价是16次乘法加1次除法；与之竞争的另一方案则需12次乘法加2次除法。<sup>[16](https://people.freebsd.org/~lstewart/references/apple_tr_kt32_cuberoot.pdf)</sup>GCC的四倍精度cbrtq接受负参数，用2的幂进行范围缩减，并对尾数应用一个2次多项式。<sup>[17](https://gnu.googlesource.com/gcc/+/7f114df90992c77a3c5774dfebe4cadc8d3769d4/libquadmath/math/cbrtq.c)</sup>一类位操作算法使用魔常数产生种子猜测，再施加改进的牛顿–拉夫森和豪斯霍尔德精化；两次迭代后单精度得到22.84个正确位，该方法在微控制器上经实验证明比库函数更快、更精确。<sup>[15](https://mdpi-res.com/d_attachment/energies/energies-14-01058/article_deploy/energies-14-01058-v2.pdf?version=1613712816)</sup>

**正确舍入的结果**需要更多讲究。有文献记载的binary64构造用整数运算做快速初始近似，再精化到三分之一的精度，精确舍入，最后用一个高阶迭代收尾，推广了19世纪末的一族求根方法。<sup>[18](https://raw.githubusercontent.com/mockingbirdnest/Principia/master/documentation/cbrt.pdf?raw=true)</sup>Boost手工编写的cbrt使用多项式初始猜测加简化的哈雷步骤，在双精度下胜过通用求根程序；在其测试套件中，双精度下每种情形至多6次迭代即可精确到末位，而更好的初始猜测在几乎所有情形中把迭代次数降到1。在1000位精度（约300位十进制数字）下，用7次迭代即获得完整精度。<sup>[7](https://www.cppal-dev.boost.org/doc/libs/latest/libs/math/doc/html/math_toolkit/root_finding_examples/cbrt_eg.html)</sup>在Boost对计算∛28的四种算法的基准测试中，对于50位精度的cpp_bin_float类型，牛顿–拉夫森迭代比两种二阶导数（哈雷型）方法都快一倍。<sup>[19](https://www.boost.org/doc/libs/latest/libs/math/doc/html/math_toolkit/root_comparison/cbrt_comparison.html)</sup>

## 立方根与平方根及其他n次根

符号行为是最鲜明的对比。每个正实数有两个平方根，而任何实数都恰好有一个实数立方根。<sup>[1](https://math.libretexts.org/Bookshelves/Algebra/Advanced_Algebra/01%3A_Algebra_Fundamentals/1.03%3A_Square_and_Cube_Roots_of_Real_Numbers)</sup>因此浮点运算需要专门的库函数：调用std::cbrt(num)不同于调用std::pow(num, 1.0/3)，因为有理数1/3通常不等于舍入后的量1.0/3，而且std::pow无法处理负底数的分数次幂。<sup>[5](https://en.cppreference.com/cpp/numeric/math/cbrt)</sup>文档中的C++示例具体展示了这一差距：cbrt(343) = 7，而pow(343, 1.0/3) = 6.9999999999999991；cbrt(−343) = −7，而pow(−343, 1.0/3)返回NaN。<sup>[5](https://en.cppreference.com/cpp/numeric/math/cbrt)</sup>Kotlin则直接记载了符号性质：对任意x，cbrt(−x) == −cbrt(x)。<sup>[20](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.math/cbrt.html)</sup>在IEEE（IEC 60559）算术下，cbrt原样返回±0和±∞，对NaN输入返回NaN。<sup>[5](https://en.cppreference.com/cpp/numeric/math/cbrt)</sup>英特尔IPP 2026定义了若干ippsCbrt版本，带有分级精度保证：32f_A11保证11个正确舍入位（至少3位精确的十进制数字），A21保证21位或4 ulp，A24保证1 ulp内的24位；在64位上，A26保证26位（约8位十进制数字），A50保证50位或4 ulp，A53保证1 ulp内的53位。<sup>[21](https://www.intel.com/content/www/us/en/docs/ipp/developer-guide-reference/2026-0/cbrt.html)</sup>

## 历史：倍立方与三次公式

一个经典的立方根问题是提洛问题，即倍立方：构造一个体积为给定立方体两倍的立方体。这等价于构造∛2，而∛2无法用圆规和直尺作出，这一事实直到19世纪现代代数发展起来之后，才由万策尔于1837年确立。<sup>[8](https://faculty.etsu.edu/gardnerr/3040/Notes-Eves6/Eves6-4-5.pdf)</sup>约公元前440年，希俄斯的希波克拉底把问题归结为在s与2s之间求两个比例中项（s : x = x : y = y : 2s，从而给出x³ = 2s³），古代解法由阿尔基塔斯、欧多克索斯、梅纳赫穆斯、埃拉托色尼、尼科米德斯、阿波罗尼乌斯、希罗、菲隆、狄奥克利斯、斯波鲁斯和帕普斯给出。<sup>[8](https://faculty.etsu.edu/gardnerr/3040/Notes-Eves6/Eves6-4-5.pdf)</sup>

**三次公式。**到1494年，三次方程尚未获得一般的代数解；最早的抽象解法见于意大利数学家希皮奥内·德尔·费罗、尼科洛·塔尔塔利亚、吉罗拉莫·卡尔达诺和拉斐尔·邦贝利的工作，由于卡尔达诺于1545年首次发表这些结果，公式便以他命名。<sup>[22](https://arxiv.org/pdf/2403.04774)</sup>在德尔·费罗的时代，零和负数尚未使用，因此一般三次方程被归结为x³ + mx = n和x³ = mx + n两种情形，其中m、n为正。<sup>[23](https://mathshistory.st-andrews.ac.uk/Biographies/Ferro/)</sup>由于卡尔达诺拒绝使用负系数，他不得不处理13种不同的三次方程；对复数的首次严肃而系统的处理，则来自邦贝利的《代数学》（1572年）。<sup>[24](https://www.britannica.com/science/algebra/Cardano-and-the-solving-of-cubic-and-quartic-equations)</sup>

立方根位于这个故事的中心，因为卡尔达诺公式正是通过取中间量的立方根来解三次方程的。在不可约情况（casus irreducibilis）下，即有理系数的压缩三次方程x³ + ax + b = 0在有理数上不可约且(a/3)³ + (b/2)² < 0时，三个根都是互异实数，尽管卡尔达诺公式涉及复数中间量。<sup>[22](https://arxiv.org/pdf/2403.04774)</sup><sup> • </sup><sup>[32](https://math.berkeley.edu/~giventh/fields.pdf)</sup>由此到达一个悖论式的境地：如果三个根全是实数，反而需要复数才能找到它们。<sup>[25](https://www.parabola.unsw.edu.au/sites/default/files/2024-03/vol41_no3_6.pdf)</sup>关于塔尔塔利亚解法的学术研究也指出了同一点：即使三个根全是实数，三个根的表达式也牵涉复数表达式。<sup>[26](https://www.sciencedirect.com/science/article/pii/S0315086015000403)</sup>邦贝利如今主要因开始严肃处理复数而被记住，他给出了复数的加法和乘法规则；他的例子x³ = 15x + 4有明显的解x = 4，而卡尔达诺公式只有通过一个复数的立方根才能得到它。<sup>[27](https://ms.uky.edu/~sohum/ma330/files/eqns_4.pdf)</sup>一般地求出三次方程的全部根，需要求任意复数的立方根，这可以借助三角方法得到。<sup>[27](https://ms.uky.edu/~sohum/ma330/files/eqns_4.pdf)</sup>加州大学伯克利分校数学教授W. 卡汉后来评论道，十六世纪关于实三次方程Ax³ + Bx² + Cx + D = 0的闭式公式虽然是一个胜利，却因其在浮点使用中的数值困难而变成失望。<sup>[28](https://people.eecs.berkeley.edu/~wkahan/Math128/Cubic.pdf)</sup>

## 近期发展

近期的工作集中在软件层面的速度与正确性，而不是新的数学。2025年，OpenJDK为java.lang.Math.cbrt()实现了基于libm的x86_64内建函数。其按范围划分的微基准测试报告：对于[−2^(−1022), 2^(−1022)]内的极小输入，吞吐量提升169%（2.69倍）；其他输入提升45%（1.45倍）；这些是在Intel Xeon 6761P上以OpenJDK v25-b21为基线、8次运行的均值。<sup>[9](https://github.com/openjdk/jdk/pull/24470)</sup>同一变更在2025年4月的评审请求中报告，cbrt微基准整体提升41%，同样是8次运行的均值。<sup>[29](https://mail.openjdk.org/pipermail/core-libs-dev/2025-April/143826.html)</sup>

**编译器与库支持。**2026年1月，LLVM新增了llvm.cbrt内建函数，对f32、f64、x86_fp80、fp128和ppc_fp128重载，文档说明其与符合标准的libm cbrt一致，不产生陷阱，也不设置errno，并且可以在'afn'快速数学标志下近似。<sup>[30](https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20260126/1833281.html)</sup>LLVM的libc还实现了在所有舍入模式下均正确舍入的双精度cbrt，使用无除法的牛顿迭代算法，并通过范围缩减把x拆成x = (−1)^s · 2^e · (1.m)。<sup>[10](https://github.com/llvm/llvm-project/pull/99262)</sup>英特尔IPP 2026的文档把上述分级精度保证正式化。<sup>[21](https://www.intel.com/content/www/us/en/docs/ipp/developer-guide-reference/2026-0/cbrt.html)</sup>在研究方面，2025年ICCS的一篇论文提出了使用魔数和分段线性近似的倒数立方根近似算法，面向物联网边缘机器学习设备；文中指出立方根和倒数立方根在热力学、计算机图形学和AI中不可或缺，而微控制器和FPGA缺少Intel平台上可用的快速厂商实现（SVML、IPP）。<sup>[31](https://www.iccs-meeting.org/archive/iccs2025/papers/159110085.pdf)</sup>Boost的多精度基准测试还量化了高精度的软件代价：使用cpp_bin_float_50的计算常常比64位硬件浮点慢50倍以上，因为大部分工作是在软件中完成的。<sup>[19](https://www.boost.org/doc/libs/latest/libs/math/doc/html/math_toolkit/root_comparison/cbrt_comparison.html)</sup>

## References

1. [1.3: Square and Cube Roots of Real Numbers, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Algebra/Advanced_Algebra/01%3A_Algebra_Fundamentals/1.03%3A_Square_and_Cube_Roots_of_Real_Numbers)
2. [Radicals and Rational Exponents, Emory Math Center](https://mathcenter.oxford.emory.edu/site/math100/radicals/)
3. [nth Root, Wolfram MathWorld](https://mathworld.wolfram.com/nthRoot.html)
4. [Powers and logarithms, mpmath 1.0.0 documentation](https://mpmath.org/doc/1.0.0/functions/powers.html)
5. [std::cbrt, std::cbrtf, std::cbrtl, cppreference.com](https://en.cppreference.com/cpp/numeric/math/cbrt)
6. [McMullen's root-finding algorithm for cubic polynomials, J. Hawkins, Proc. AMS 2002](https://janehawkins.web.unc.edu/wp-content/uploads/sites/17111/2019/09/Hawkins_ProcAMS_2002.pdf)
7. [Finding the Cubed Root With and Without Derivatives, Boost.Math](https://www.cppal-dev.boost.org/doc/libs/latest/libs/math/doc/html/math_toolkit/root_finding_examples/cbrt_eg.html)
8. [Duplication of the Cube, ETSU course notes on Eves](https://faculty.etsu.edu/gardnerr/3040/Notes-Eves6/Eves6-4-5.pdf)
9. [OpenJDK PR 8353686: Optimize Math.cbrt for x86 64 bit platforms](https://github.com/openjdk/jdk/pull/24470)
10. [LLVM libc PR: Implement double precision cbrt correctly rounded to all rounding modes](https://github.com/llvm/llvm-project/pull/99262)
11. [CubeRoot, Wolfram Language Reference](https://reference.wolfram.com/language/ref/CubeRoot.en.md)
12. [Branches of Functions, complexanalysis.org](https://complexanalysis.org/web/sec_branches.html)
13. [Cube Root, Wolfram MathWorld](https://mathworld.wolfram.com/CubeRoot.html)
14. [The Newton and Halley Methods for Complex Roots, A. Ben-Israel](http://benisrael.net/NEWTON-MONTHLY.pdf)
15. [Fast Calculation of Cube and Inverse Cube Roots Using a Magic Constant, Energies (2021)](https://mdpi-res.com/d_attachment/energies/energies-14-01058/article_deploy/energies-14-01058-v2.pdf?version=1613712816)
16. [Computing the Cube Root, Apple Technical Report KT32](https://people.freebsd.org/~lstewart/references/apple_tr_kt32_cuberoot.pdf)
17. [GCC libquadmath cbrtq.c](https://gnu.googlesource.com/gcc/+/7f114df90992c77a3c5774dfebe4cadc8d3769d4/libquadmath/math/cbrtq.c)
18. [Implementation of a correctly-rounded binary64 cube root, Principia project](https://raw.githubusercontent.com/mockingbirdnest/Principia/master/documentation/cbrt.pdf?raw=true)
19. [Comparison of Cube Root Finding Algorithms, Boost.Math](https://www.boost.org/doc/libs/latest/libs/math/doc/html/math_toolkit/root_comparison/cbrt_comparison.html)
20. [cbrt, Kotlin Programming Language API](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.math/cbrt.html)
21. [Cbrt, Intel IPP Developer Reference 2026](https://www.intel.com/content/www/us/en/docs/ipp/developer-guide-reference/2026-0/cbrt.html)
22. [A note on Cardano's formula, D. Pfeifer, arXiv](https://arxiv.org/pdf/2403.04774)
23. [Scipione del Ferro (1465–1526), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/Ferro/)
24. [Algebra: Cardano and the solving of cubic and quartic equations, Encyclopaedia Britannica](https://www.britannica.com/science/algebra/Cardano-and-the-solving-of-cubic-and-quartic-equations)
25. [History of Mathematics: Solving Cubic Equations, Parabola (UNSW)](https://www.parabola.unsw.edu.au/sites/default/files/2024-03/vol41_no3_6.pdf)
26. [Continued proportions and Tartaglia's solution of cubic equations, Historia Mathematica](https://www.sciencedirect.com/science/article/pii/S0315086015000403)
27. [Bombelli to Euler: solving cubics, University of Kentucky course notes](https://ms.uky.edu/~sohum/ma330/files/eqns_4.pdf)
28. [To Solve a Real Cubic Equation, W. Kahan, UC Berkeley (1986)](https://people.eecs.berkeley.edu/~wkahan/Math128/Cubic.pdf)
29. [OpenJDK core-libs-dev RFR: 8353686, April 2025](https://mail.openjdk.org/pipermail/core-libs-dev/2025-April/143826.html)
30. [LLVM commit: Add new llvm.cbrt intrinsic, January 2026](https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20260126/1833281.html)
31. [Fast reciprocal cube root approximation algorithms for IoT/edge ML, ICCS 2025](https://www.iccs-meeting.org/archive/iccs2025/papers/159110085.pdf)
32. [math.berkeley.edu](https://math.berkeley.edu/~giventh/fields.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Number systems › Real and complex number constructions › Complex numbers

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/cube-root

English original: https://www.edgepedia.org/cube-root
