# 平方根

一个数 x 的平方根是满足 \( r^{2} = x \) 的数 r。每个正实数都有两个平方根，一正一负；其中非负的那个称为主平方根，记作 \( \sqrt{x} \) 或 \( x^{1/2} \)。除非另有说明，“一个数的平方根”指的是这个主值。平方根是 \( n = 2 \) 时的 n 次方根，符号 \( \sqrt{\;} \) 称为根号，其下的量称为被开方数。<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup><sup> • </sup><sup>[2](https://encyclopediaofmath.org/index.php?title=Radical)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 当 \( r^{2} = x \) 时，r 是 x 的一个平方根；正实数有两个根，\( +\sqrt{x} \) 和 \( -\sqrt{x} \)<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup> |
| 主值 | 每个非负实数 x 都有唯一的非负平方根；\( \sqrt{x} \) 是 \( f(x) = x^{2} \) 在 \( x \ge 0 \) 上的反函数<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup> |
| 复数情形 | 任何非零复数也有两个平方根，例如 -9 的平方根是 \( \pm 3i \)；主分支沿负实轴有割线<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup> |
| 符号历史 | 根号最早出现在克里斯托夫·鲁道夫（Christoph Rudolff）1525年的代数教科书《Coss》中，由拉丁语 radix（根）的缩写演变而来<sup>[3](https://squarerootsymbol.org/square-root-symbol-history/)</sup> |
| 最古老的计算 | 古巴比伦泥板 YBC 7289（约公元前1900—1600年）以六十进制记录 \( \sqrt{2} \) 为 1;24,51,10 = 1.41421296，而现代值为 1.41421356...<sup>[4](https://cdli.earth/artifacts/255048)</sup> |
| 标准算法 | 牛顿迭代（Newton's iteration）\( x_{k+1} = \tfrac{1}{2}\left(x_{k} + n/x_{k}\right) \)，从 \( x_{0} = 1 \) 开始<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup> |
| 硬件要求 | IEEE-754 浮点运算要求平方根结果在所选舍入模式下正确舍入<sup>[5](https://arxiv.org/abs/2404.00387)</sup> |

## 实数上的性质

对于任何非负实数 x，恰好有一个非负平方根，主平方根函数 \( \sqrt{x} \) 是 \( f(x) = x^{2} \) 限制在 \( x \ge 0 \) 上的反函数。例如，9 的平方根是 +3 和 −3，因为 \( (+3)^{2} = (-3)^{2} = 9 \)，而主根是 \( \sqrt{9} = 3 \)。<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup>

大多数平方根是无理数，即它们不能写成整数之比。最著名的例子是 \( \sqrt{2} \approx 1.41421356 \)，有时称为毕达哥拉斯常数（Pythagoras's constant），其连分数是周期序列 [1, 2, 2, 2, 2, ...]。3 的平方根 \( \sqrt{3} \approx 1.73205081 \) 称为泰奥多罗斯常数（Theodorus's constant），其连分数为周期序列 [1, 1, 2, 1, 2, 1, 2, ...]。一般来说，所有正整数的平方根的连分数都是周期的。<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup>

有些嵌套根式可以化简：形如 \( \sqrt{a \pm b\sqrt{c}} \) 的表达式有时可以改写为简单平方根的和或差，例如 \( \sqrt{5 + 2\sqrt{6}} = \sqrt{2} + \sqrt{3} \)。判断这种化简何时存在，称为根式去嵌套，一般来说是一个困难的问题。<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup>

## 复数的平方根

任何非零复数 z 也恰好有两个平方根。利用虚数单位 i，−9 的两个平方根是 \( \pm 3i \)。对于 \( z = x + iy \)，其平方根由下式给出

\[ \sqrt{x+iy} = \pm (x^{2}+y^{2})^{1/4}\left[\cos\!\left(\tfrac{1}{2}\tan^{-1}(x,y)\right) + i\,\sin\!\left(\tfrac{1}{2}\tan^{-1}(x,y)\right)\right]. \]

与实数情形不同，无论选择哪个根，都不能使 \( \sqrt{z} \) 在整个复平面上成为连续函数。标准约定选取主平方根，并接受沿负实轴的分支割线，函数在该处不连续；C++ 标准库的复数平方根函数也采用同样的约定。<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup><sup> • </sup><sup>[6](https://en.cppreference.com/w/cpp/numeric/complex/sqrt.html)</sup> 一个相关的常用恒等式失效现象在此出现：\( \sqrt{z}\,\sqrt{1/z} \) 一般等于 1，但在负实轴上等于 −1，且在 \( z = 0 \) 处无定义。<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup>

## 古代计算：YBC 7289

现存最古老的高精度平方根出现在一块小型古巴比伦泥板 YBC 7289 上，该泥板制于约公元前1900—1600年，藏于耶鲁巴比伦收藏（Yale Babylonian Collection）。正面显示一个带对角线的正方形，一边标为 30，另有两个六十进制记法的数：沿对角线标出的系数为 1;24,51,10，其下为 42;25,35，即前者乘以 30。数值 1;24,51,10 等于 \( 1 + 24/60 + 51/3600 + 10/216000 = 1.41421296 \)，是 \( \sqrt{2} \) 的近似值，精确到现代值 1.41421356... 的六位小数；乘以 30 即得边长为 30 的正方形的对角线。<sup>[4](https://cdli.earth/artifacts/255048)</sup><sup> • </sup><sup>[7](https://artwaste.land/strata/the-diagonal-they-already-knew/)</sup>

这块泥板是一块学校练习泥板，该数值很可能是从常数表中抄录的，而非当场计算。<sup>[8](https://oamonitor.ireland.openaire.eu/rpo/rcsi/search/publication?pid=10.1006%2Fhmat.1998.2209)</sup> 它于1909年作为金融家 J·皮尔庞特·摩根（J. Pierpont Morgan）所收集藏品的一部分来到耶鲁，其数学意义最早由科学史学家奥托·诺伊格鲍尔（Otto Neugebauer）和亚伯拉罕·萨克斯（Abraham Sachs）在1945年的著作《数学楔形文字文献》（Mathematical Cuneiform Texts）中识别。<sup>[9](https://news.yale.edu/2016/04/11/3800-year-journey-classroom-classroom)</sup> 这类巴比伦平方根数值背后的方法已为人熟知；历史学家约兰·弗里贝里（Jöran Friberg）称之为方边法则，它本质上就是如今所称的海伦法（Heron's method）。<sup>[10](https://doi.org/10.1016/j.hm.2017.08.001)</sup>

## 计算平方根

由于大多数平方根是无理数，数值计算意味着近似，误差可按需小到任意程度。一种简单的区间套法是二分法：要以误差至多 \( \varepsilon \) 计算 \( a > 1 \) 的 \( \sqrt{a} \)，从区间 \( [1, a] \) 开始，反复取中点 \( x = (x_{0} + x_{1})/2 \)，比较 \( x^{2} \) 与 \( a \) 以决定哪一半保留根，当 \( x_{1} - x_{0} \le 2\varepsilon \) 时停止。每一步将区间减半，因此更高的精度按比例花费更多算术运算。<sup>[11](https://www.sciencedirect.com/book/9780125535601/theory-and-applications-of-numerical-analysis)</sup>

更快的方法是迭代法。最简单的是牛顿迭代（等价于海伦法），它通过将猜测值 \( x_k \) 与 \( n/x_k \) 取平均来改进：

\[ x_{k+1} = \frac{1}{2}\left(x_{k} + \frac{n}{x_{k}}\right), \qquad x_{0} = 1. \]

该方法二次收敛，每步大约使正确数字的位数翻倍，这就是它及其变体主导现代实现的原因。<sup>[1](https://mathworld.wolfram.com/SquareRoot.html)</sup><sup> • </sup><sup>[12](https://link.springer.com/article/10.1007/s11075-024-01932-7)</sup> 现代软件和硬件采用一系列方法：低精度用查找表，线性收敛的数字递推和 CORDIC 方法，以及基于乘法的方法，如牛顿–拉弗森法（Newton–Raphson）、戈德施密特法（Goldschmidt）和快速平方根倒数变体，后者从种子估计（通常用固定的“魔数”产生）开始并加以改进。带除法的海伦公式仍在商业中使用，例如用于 STM32 微控制器的 CMSIS DSP 库，近期工作继续针对微控制器、FPGA、CPU 和 GPU 调优这些算法。<sup>[12](https://link.springer.com/article/10.1007/s11075-024-01932-7)</sup>

正确性有精确的规定。IEEE-754 浮点标准要求平方根运算的最终结果按照用户选择的舍入模式正确舍入，硬件实现即为满足这一保证而构建；例如，Java 的 Math.sqrt 规定返回 double 值的正确舍入的正平方根。<sup>[5](https://arxiv.org/abs/2404.00387)</sup><sup> • </sup><sup>[13](https://docs.oracle.com/en/java/javase/26/docs/api/java.base/java/lang/Math.html)</sup>

## 用途

平方根出现在任何需要将平方量转换回其自然尺度的场合。在统计学中，标准差定义为方差的平方根，\( s = \sqrt{\sum_{i=1}^{N}(Y_{i} - \bar{Y})^{2}/(N-1)} \)；开根号恢复了原始数据的单位，而方差将其平方。<sup>[14](https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm)</sup> 同样的模式在测量不确定度中反复出现，其中标准不确定度分量通过方和根法合成。<sup>[15](https://www.nist.gov/document/tn1297spdf)</sup>

## 符号的历史

在符号出现之前，中世纪阿拉伯数学家使用 jidhr（根）一词完整写出这一概念。12世纪阿拉伯文本被译成拉丁文时，译者选择了 radix，欧洲数学家在手稿中将其缩写为 R 或 r。现代根号最早出现在德国数学家克里斯托夫·鲁道夫1525年出版的代数教科书《Coss》中，他写了一个去掉顶部弯曲的风格化小写 r；同一著作还引入了立方根和四次方根的符号。<sup>[3](https://squarerootsymbol.org/square-root-symbol-history/)</sup> 一种更古老的点记法，在被开方数前放一个点表示平方根，两个点表示四次方根，三个点表示立方根，可追溯到约1480年与尼古拉·舒凯（Nicolas Chuquet）相关的工作。<sup>[16](https://academic.oup.com/princeton-scholarship-online/book/15483/chapter-abstract/170145042)</sup> 这一符号是逐渐被采用的：16世纪的改革者米夏埃尔·施蒂费尔（Michael Stifel）使用符号 √ 表示平方根，而帕乔利（Pacioli）、卡尔达诺（Cardano）等人仍写字母 R。<sup>[17](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Algebra)</sup>

## References

1. [Square Root, Wolfram MathWorld](https://mathworld.wolfram.com/SquareRoot.html)
2. [Radical, Encyclopedia of Mathematics](https://encyclopediaofmath.org/index.php?title=Radical)
3. [History of the Square Root Symbol — Origins & Timeline](https://squarerootsymbol.org/square-root-symbol-history/)
4. [MCT 042 YBC 07289 (P255048), Cuneiform Digital Library Initiative](https://cdli.earth/artifacts/255048)
5. [Inexactness and Correction of Floating-Point Reciprocal, Division and Square Root, arXiv:2404.00387](https://arxiv.org/abs/2404.00387)
6. [std::sqrt(std::complex), cppreference.com](https://en.cppreference.com/w/cpp/numeric/complex/sqrt.html)
7. [YBC 7289: the square root of 2 in Babylonian base sixty](https://artwaste.land/strata/the-diagonal-they-already-knew/)
8. [Square Root Approximations in Old Babylonian Mathematics: YBC 7289 in Context, Historia Mathematica](https://oamonitor.ireland.openaire.eu/rpo/rcsi/search/publication?pid=10.1006%2Fhmat.1998.2209)
9. [A 3,800-year journey from classroom to classroom, Yale News](https://news.yale.edu/2016/04/11/3800-year-journey-classroom-classroom)
10. [Plimpton 322 is Babylonian exact sexagesimal trigonometry, Historia Mathematica](https://doi.org/10.1016/j.hm.2017.08.001)
11. [Theory and Applications of Numerical Analysis, ScienceDirect](https://www.sciencedirect.com/book/9780125535601/theory-and-applications-of-numerical-analysis)
12. [Fast and accurate approximation algorithms for computing floating point square root, Numerical Algorithms](https://link.springer.com/article/10.1007/s11075-024-01932-7)
13. [Math (Java SE 26 & JDK 26), Oracle documentation](https://docs.oracle.com/en/java/javase/26/docs/api/java.base/java/lang/Math.html)
14. [1.3.5.6. Measures of Scale, NIST/SEMATECH Engineering Statistics Handbook](https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm)
15. [Guidelines for Evaluating and Expressing the Uncertainty of NIST Measurement Results, NIST TN 1297](https://www.nist.gov/document/tn1297spdf)
16. [The Timid Symbol, Enlightening Symbols (Princeton Scholarship Online)](https://academic.oup.com/princeton-scholarship-online/book/15483/chapter-abstract/170145042)
17. [1911 Encyclopædia Britannica: Algebra, Wikisource](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Algebra)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Elementary and formal arithmetic › Elementary arithmetic operations

Copyright 2026 Edgepedia

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

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

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