# 加法

**加法**是基本算术运算之一：它把两个称为加数的量合并成一个称为和的量，记作 \( a + b \)<sup>[1](https://encyclopediaofmath.org/wiki/Addition)</sup>。它与减法、乘法、除法一起构成算术的基础，而且历史上其他运算正是建立在它之上：古埃及数学把加法视为基本运算，并通过反复相加来实现乘法和除法<sup>[2](https://encyclopediaofmath.org/wiki/Number)</sup><sup> • </sup><sup>[3](https://mathshistory.st-andrews.ac.uk/HistTopics/Egyptian_mathematics/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 将两个加数 \( a \) 与 \( b \) 合并为一个和 \( a + b \)；逆运算为减法<sup>[1](https://encyclopediaofmath.org/wiki/Addition)</sup> |
| 代数定律 | 交换律 \( a + b = b + a \)，结合律 \( (a+b)+c = a+(b+c) \)<sup>[1](https://encyclopediaofmath.org/wiki/Addition)</sup> |
| 抽象用法 | 在加法记法下，用以称呼阿贝尔群的运算；也用以称呼环的运算，环中元素在该运算下构成阿贝尔群<sup>[1](https://encyclopediaofmath.org/wiki/Addition)</sup> |
| 古代实践 | 在埃及，加法是基本运算；书吏通过加倍和相加来做乘法，例如 80 × 14 被计算为 800 + 320 = 1120<sup>[2](https://encyclopediaofmath.org/wiki/Number)</sup><sup> • </sup><sup>[4](https://www.open.edu/openlearn/science-maths-technology/mathematics-statistics/egyptian-mathematics/content-section-1.1.2)</sup> |
| 印刷符号 | + 和 − 号首次印行于约翰内斯·维德曼 1489 年的莱比锡算术书中，起初用来标记商业问题中的盈余和亏空<sup>[5](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)</sup> |
| 硬件 | 全加器把两个数据位和一个进位输入合并成一个和位与一个进位输出；将 N 个全加器级联便得到行波进位加法器<sup>[6](https://users.ece.utexas.edu/~valvano/Volume1/E-Book/C4_DigitalLogic.htm)</sup> |
| 快速电路 | 超前进位加法器以树形结构计算进位，使深度随位数从线性降至 \( O(\log n) \)<sup>[7](https://arxiv.org/abs/quant-ph/0406142)</sup> |

## 性质

数字的加法满足交换律 \( a + b = b + a \) 和结合律 \( (a+b)+c = a+(b+c) \)<sup>[1](https://encyclopediaofmath.org/wiki/Addition)</sup>。这两条定律让一长列数字可以按任意分组或顺序求和，这也是书写算术中先加十位列再加个位列等实用技巧的基础。加法的逆运算是减法<sup>[1](https://encyclopediaofmath.org/wiki/Addition)</sup>。

这个词并不限于普通数。在抽象代数中，加法是阿贝尔群在加法记法下所用运算的名称，也是环的二元运算的名称——环中元素在该运算下构成阿贝尔群；在这些情形中，加法仍是结合且交换的。偶尔，非交换的群运算也被称为加法，例如在多算子群中<sup>[1](https://encyclopediaofmath.org/wiki/Addition)</sup>。在自然数系 \( (\mathbf{N}, +, \times, 1) \) 中，加法与乘法都满足结合律和交换律，并满足分配律，尽管自然数对加法没有中性元<sup>[8](https://encyclopediaofmath.org/wiki/Natural_number)</sup>。

## 古代的加法

早期国家中，行政、税收和贸易需要记录与计算，于是产生了计数的需要；文字和数字符号发展起来以记录交易<sup>[3](https://mathshistory.st-andrews.ac.uk/HistTopics/Egyptian_mathematics/)</sup>。埃及象形文字数字约在公元前 3000 年已在使用，对加减法并不造成困难，因为这一体系只需收集十的各个幂的符号<sup>[9](https://files.eric.ed.gov/fulltext/ED035549.pdf)</sup>。同样的便利并未延伸到其他运算：与罗马数字一样，埃及体系使直接的乘法和除法不切实际，因此埃及数学家设计出把那些运算化归为加法的方法<sup>[3](https://mathshistory.st-andrews.ac.uk/HistTopics/Egyptian_mathematics/)</sup>。

**加倍与相加。** 要相乘，书吏只需要一个整数的两倍或一半，实际上就是二倍表<sup>[10](https://math.buffalo.edu/mad/Ancient-Africa/mad_ancient_egypt_arith.html)</sup>。莱因德纸草书（Rhind Papyrus）中保存的一个例子计算八十乘十四：书吏把 14 看作十和四，用 80 分别乘这两部分，再把结果相加得到 1120。用 4 乘 80 是通过把 80 加倍两次完成的，而在象形文字中乘以 10，相当于把每个符号改成表示更高一个十的幂的下一个符号<sup>[4](https://www.open.edu/openlearn/science-maths-technology/mathematics-statistics/egyptian-mathematics/content-section-1.1.2)</sup>。除法以相反方向运行同一过程：要用 80 除 1120，书吏向下查看选定的 80 的倍数，看哪些加起来等于 1120，得到 10 和 4，也就是 14<sup>[4](https://www.open.edu/openlearn/science-maths-technology/mathematics-statistics/egyptian-mathematics/content-section-1.1.2)</sup>。

莱因德纸草书是一卷长约 6 米的卷轴，约公元前 1650 年由书吏阿赫摩斯（Ahmes）抄写一份约早 200 年的文献而成，包含八十七道基于这些技巧的题目<sup>[3](https://mathshistory.st-andrews.ac.uk/HistTopics/Egyptian_mathematics/)</sup>。把部分结果相加的作法也支配着埃及分数；埃及分数只使用 1/2、1/3、1/4 这样的单位分数，外加 2/3。书吏计算 19 ÷ 8 时，把答案写成 2、1/4 与 1/8 之和，而不是把这些分数合并起来<sup>[4](https://www.open.edu/openlearn/science-maths-technology/mathematics-statistics/egyptian-mathematics/content-section-1.1.2)</sup>。

## 记号

加号有可考的印刷史。尼科尔·奥雷姆（Nicole d'Oresme，1323—1382）可能曾在《比例算法》（Algorismus proportionum）中使用一个类似加号的符号，作为拉丁语 *et*（意为“和”）的缩写；该书据信写于 1356 年至 1361 年间<sup>[5](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)</sup>。＋号和－号首次印行于约翰内斯·维德曼（Johannes Widmann）的算术书《敏捷而美观的各类商业计算》（Behende und hüpsche Rechenung auff allen Kauffmanschafft）中，该书 1489 年在莱比锡（Leipzig）出版<sup>[5](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)</sup>。在这本德国第一部印行的商业算术书中，这些符号指的不是运算，而是商业问题中的盈余和亏空<sup>[11](https://philarchive.org/archive/FLOSOM)</sup>。维德曼的＋号带有更宽泛的“et”或“和”的含义，而他的文本中没有出现“plus”一词<sup>[12](https://www.hlevkin.com/hlevkin/90MathPhysBioBooks/mathHistory/AHistoryofMathematics_10463423.pdf)</sup>。这些符号重新出现在海因里希·格拉马特乌斯（Henricus Grammateus）1518 年的算术著作中，他在技术意义上用＋和－表示加法和减法<sup>[5](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)</sup>。

## 书写算法

用美国国家研究委员会（National Research Council）报告《加起来》（Adding It Up）的话说，算法是“一套精确定义的规则序列，说明如何在有限步数内从给定输入信息产生指定输出信息”；更简单地说，是计算的配方<sup>[13](https://www.nationalacademies.org/read/9822/chapter/5)</sup>。大多数人知道四种算术运算的纸笔算法，而十进位值制允许每种运算有许多不同算法<sup>[13](https://www.nationalacademies.org/read/9822/chapter/5)</sup>。

带进位的标准美国加法算法并不是唯一程序。芝加哥大学（University of Chicago）开发的《每日数学》（Everyday Mathematics）课程教授替代加法算法，包括部分和法与列加法，并为其他运算教授替代算法<sup>[14](https://everydaymath.uchicago.edu/teaching-topics/computation/)</sup>。在部分和法中，268 + 483 的计算是分别加百位（600）、十位（140）和个位（11），再把部分和相加得到 751<sup>[15](https://everydaymath.uchicago.edu/parents/understanding-em/alternative-algorithms/)</sup>。据该项目引用的研究，标准美国算法的教学使许多孩子落后，而替代方法往往更简单，儿童更容易理解和掌握。<sup>[15](https://everydaymath.uchicago.edu/parents/understanding-em/alternative-algorithms/)</sup>

算法在透明性、效率、通用性和精确性上各不相同。按计算器按钮被《加起来》描述为不透明算法的典型，然而却是高效算法<sup>[13](https://www.nationalacademies.org/read/9822/chapter/5)</sup>。

## 硬件中的加法

数字计算机以二进制相加。基本电路是全加器，它接收两个数据位 A 和 B 以及进位输入 \( C_{\mathrm{in}} \)，产生一个和位 \( S_{\mathrm{out}} \) 和进位输出 \( C_{\mathrm{out}} \)。三个输入相加为 0、1、2 或 3；当和为 2 或 3 时进位输出为真，当和为 1 或 3 时和位为真<sup>[6](https://users.ece.utexas.edu/~valvano/Volume1/E-Book/C4_DigitalLogic.htm)</sup>。全加器可以由两个半加器构成，而一个 N 位加法器是把全加器复制 N 次，并将每个进位输出连接到下一个进位输入。这种安排就是行波进位加法器，得名于进位沿链传播的方式；它模仿手工加法，但随着位数增加，传播需要相对较长的时间<sup>[16](https://comp.anu.edu.au/courses/comp3710-uarch/labs/02-alu/)</sup>。

**更快的进位处理。** 超前进位加法器利用关于输入进位的部分信息，避免线性的行波计算，以树形结构计算进位位，从而得到对数深度的电路；这一理论可追溯到 1949 年关于继电器计算器的工作<sup>[7](https://arxiv.org/abs/quant-ph/0406142)</sup>。由于完整的前瞻电路对于宽操作数变得昂贵，实际设计采用两层结构，例如由顶层前瞻逻辑连接的一组 4 位加法器阵列<sup>[17](https://www.cise.ufl.edu/~mssz/CompOrg/CDA-arith.html)</sup>。对在 32/28 nm CMOS 工艺中综合的 32 位加法器所作比较发现，在最低有效位部分带有行波进位段的混合超前进位设计在速度、功耗-延迟积和能量-延迟积方面更可取，而使用标准单元全加器的普通行波进位加法器在功耗-延迟-面积积方面更可取<sup>[18](https://arxiv.org/abs/1810.01115)</sup>。

加法电路也用于减法。在二进制补码算术中，\( a - b = a + (-b) \)：将减数的各位取反，加 1，而进入第一位的进位提供这个额外的 1，因此同一个加法器执行两种运算<sup>[16](https://comp.anu.edu.au/courses/comp3710-uarch/labs/02-alu/)</sup>。溢出，即结果无法用所用表示法容纳而丢失，在两个操作数符号不同时不会在加法中发生；在 n 位算术中检测溢出需要 n+1 位<sup>[17](https://www.cise.ufl.edu/~mssz/CompOrg/CDA-arith.html)</sup>。

同样的设计问题也延伸到量子计算。量子超前进位（QCLA）加法器以 \( O(\log n) \) 深度、使用 \( O(n) \) 个辅助量子比特相加两个 n 位数，改进了此前使用的线性深度行波进位电路，并能大幅缩短 Shor 算法（Shor's algorithm）内部算术的运行时间<sup>[7](https://arxiv.org/abs/quant-ph/0406142)</sup>。

## References

1. [Addition, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Addition)
2. [Number, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Number)
3. [Egyptian mathematics, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Egyptian_mathematics/)
4. [Egyptian calculation, OpenLearn, The Open University](https://www.open.edu/openlearn/science-maths-technology/mathematics-statistics/egyptian-mathematics/content-section-1.1.2)
5. [Earliest Uses of Symbols of Operation, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)
6. [Chapter 4: Digital Logic, Jonathan W. Valvano, University of Texas at Austin](https://users.ece.utexas.edu/~valvano/Volume1/E-Book/C4_DigitalLogic.htm)
7. [Draper, Kutin, Rains, Svore (2004). A logarithmic-depth quantum carry-lookahead adder. arXiv](https://arxiv.org/abs/quant-ph/0406142)
8. [Natural number, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Natural_number)
9. [The Number Story (ERIC document ED035549)](https://files.eric.ed.gov/fulltext/ED035549.pdf)
10. [Egyptian Arithmetic, Mathematicians of the African Diaspora, University at Buffalo](https://math.buffalo.edu/mad/Ancient-Africa/mad_ancient_egypt_arith.html)
11. [On the Nature and Origin of Algebraic Symbolism (PhilArchive)](https://philarchive.org/archive/FLOSOM)
12. [Florian Cajori. A History of Mathematics](https://www.hlevkin.com/hlevkin/90MathPhysBioBooks/mathHistory/AHistoryofMathematics_10463423.pdf)
13. [Adding It Up: Helping Children Learn Mathematics, National Research Council (2001), National Academies Press](https://www.nationalacademies.org/read/9822/chapter/5)
14. [Algorithms, Everyday Mathematics, University of Chicago](https://everydaymath.uchicago.edu/teaching-topics/computation/)
15. [Alternative Algorithms, Everyday Mathematics, University of Chicago](https://everydaymath.uchicago.edu/parents/understanding-em/alternative-algorithms/)
16. [Lab 2: Arithmetic and Logic Unit, Computer Microarchitecture, Australian National University](https://comp.anu.edu.au/courses/comp3710-uarch/labs/02-alu/)
17. [Organization of Computer Systems: Computer Arithmetic, University of Florida](https://www.cise.ufl.edu/~mssz/CompOrg/CDA-arith.html)
18. [Performance Comparison of some Synchronous Adders. arXiv](https://arxiv.org/abs/1810.01115)

---
*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/addition

English original: https://www.edgepedia.org/addition
