# 公式

公式是用数学或逻辑符号写成的表达式，用以陈述一个事实、规则或原理，最常见的是常量、变量和运算符等量之间的关系。<sup>[1](https://mathworld.wolfram.com/Formula.html)</sup> 在数理逻辑中，这个词的含义更为严格：它是形式化语言中语法正确的表达式，建立在签名（定义逻辑语言的形式化列表，包括类别、函数符号和谓词符号）、一组变量以及一种逻辑之上，所表示的是真值而非普通的值。<sup>[2](https://encyclopediaofmath.org/wiki/Formula)</sup> 在日常数学实践中，这个术语的用法则较为宽松。公式通常采取带有等号或不等号的代数陈述形式，其中包含常量、数学运算符，以及用字母书写的变量或参数。<sup>[3](https://www.treccani.it/enciclopedia/formula_(Enciclopedia-della-Matematica)/)</sup>

| 关键事实 | 详情 |
|---|---|
| 一般含义 | 用数学符号陈述的事实、规则或原理；例子包括方程、等式、恒等式、不等式和渐近表达式<sup>[1](https://mathworld.wolfram.com/Formula.html)</sup> |
| 逻辑含义 | 形式化语言在签名、变量和一种逻辑之上的合式表达式，表示真值<sup>[2](https://encyclopediaofmath.org/wiki/Formula)</sup> |
| 典型组成部分 | 常量、运算符、变量和参数；等号左边单独列出的变量称为主元<sup>[3](https://www.treccani.it/enciclopedia/formula_(Enciclopedia-della-Matematica)/)</sup><sup> • </sup><sup>[4](https://www.amsi.org.au/teacher_modules/Formulas.html)</sup> |
| 最早的系统性代数记号 | 弗朗索瓦·韦达（François Viète），《分析术引论》（*In artem analyticam isagoge*，图尔，1591年），元音表示未知量，辅音表示已知量<sup>[5](https://mathshistory.st-andrews.ac.uk//Biographies/Viete/)</sup> |
| 现代字母惯例 | 笛卡尔（Descartes），《几何学》（*La Géométrie*，1637年）：字母表后部的字母表示未知量，前部的字母表示已知量；等号可追溯至雷科德（Recorde），1557年<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/History_overview/)</sup> |
| 物理约束 | 每个表达物理定律的方程都必须在量纲上一致：所有项具有相同的量纲，函数自变量无量纲<sup>[7](https://pressbooks.online.ucf.edu/osuniversityphysics/chapter/1-4-dimensional-analysis/)</sup> |
| 机器验证 | 美国国家标准与技术研究院（NIST）的LaCASt翻译器将DLMF公式转换为Maple和Mathematica格式以进行自动检查；一个测试子集涵盖4,078条语义LaTeX公式<sup>[8](https://www.nist.gov/publications/comparative-verification-validation-digital-mathematical-libraries-and-computer-algebra)</sup> |

## 逻辑中的公式

在形式逻辑中，公式仅由其语法定义。给定签名 \( \Sigma = (S, F) \) 以及一个谓词符号集合 \( P \)（其值域为底层逻辑的真值集合 \( \mathbb{B} \)），公式是由这些要素归纳生成的表达式。它们类似于指称类别值的项，但由于谓词符号和逻辑符号进入了其定义，公式所表示的乃是真值。<sup>[2](https://encyclopediaofmath.org/wiki/Formula)</sup>

这一归纳定义在谓词演算中是明确的。任何原子公式都是公式；若 \( A \) 和 \( B \) 是公式，\( y \) 是个体变量，则 \( (\neg A) \)、\( (A \mathbin\& B) \)、\( (A \lor B) \)、\( (A \supset B) \)、\( (\forall y\ A) \) 和 \( (\exists y\ A) \) 都是公式。<sup>[9](https://encyclopediaofmath.org/wiki/Logical_formula)</sup> 确切定义因形式化语言而异；《数学百科全书》指出，公理化集合论、形式算术、谓词演算和类型论都是对该概念加以精确界定的语境。<sup>[2](https://encyclopediaofmath.org/wiki/Formula)</sup>

## 数学实践中的公式

在逻辑之外，这个词涵盖若干相关的符号陈述类型。MathWorld将公式定义为用数学符号陈述的事实、规则或原理，以方程、等式、恒等式、不等式和渐近表达式为例。<sup>[1](https://mathworld.wolfram.com/Formula.html)</sup> 这些类型之间的区别在于陈述在代换下的表现。对其变量的所有值都成立的方程是恒等式，例如 \( (a+b)^{2} = a^{2} + 2ab + b^{2} \)；仅对特定值成立的方程是待求解的方程，例如 \( 3x + 1 = 4 \)，其解为 \( x = 1 \)。<sup>[10](https://www.math.utah.edu/online/1010/algebra/)</sup>

**公式的主元。** 学校数学和应用数学通常将公式呈现为等号左边只有一个变量，称为主元。在 \( E = mc^{2} \) 中，主元是 \( E \)；在 \( A = \pi r^{2} \) 中，主元是 \( A \)。给定其他所有变量的值，主元的值可通过代换得出。欧拉公式 \( V - E + F = 2 \) 联系凸多面体的顶点、棱和面，按原样书写时没有主元，但通过移项可将三个变量中的任何一个变为主元；对于立方体，\( E = 12 \)、\( V = 8 \)、\( F = 6 \)。<sup>[4](https://www.amsi.org.au/teacher_modules/Formulas.html)</sup>

公式有两个实际用途：从其他量计算某一量，以及展示某一量随其他量变化的方式。在 \( A = \pi r^{2} \) 中，面积随半径的平方增长；而在牛顿定律 \( F = G\, m_{1} m_{2} / r^{2} \) 中，力随距离增大而减小，这是平方反比定律。<sup>[4](https://www.amsi.org.au/teacher_modules/Formulas.html)</sup>

## 公式记号是如何发展的

代数书写经历了三个阶段：文字阶段，问题完全用文字陈述；缩略阶段，在文字之外使用简写缩写；以及符号阶段。代数本身约始于公元前1700年的巴比伦和埃及，希腊数学家丢番图（Diophantus）是缩略阶段的先驱，印度数学家则独立发展出了一种缩略记号。<sup>[11](https://onlinelibrary.wiley.com/doi/10.1111/j.1949-8594.2000.tb17262.x)</sup> 印度学者还引入了表示若干未知量、平方、平方根和减数的符号；婆罗摩笈多（Brahmagupta）七世纪的记号将 \( 3x^{2} + 10x - 8 = x^{2} + 1 \) 写成与今天完全不同的形式。<sup>[12](https://encyclopediaofmath.org/wiki/Mathematical_symbols)</sup>

**韦达与笛卡尔。** 最早的系统性代数记号出现在弗朗索瓦·韦达的《分析术引论》中，该书于1591年在图尔出版。韦达用字母作为量的符号，无论已知还是未知，以元音表示未知量，辅音表示已知量。他仍受维度齐性条件的束缚：诸如 \( x^{3} + x = 1 \) 这样的方程在他看来没有几何意义，因为立方不能与线段相加，因此他写成 \( A^{3} + B^{2}A = B^{2}Z \) 这样的方程，其中每一项的维度都是三。<sup>[5](https://mathshistory.st-andrews.ac.uk//Biographies/Viete/)</sup> 现代惯例——字母表后部的字母表示未知量，前部的字母表示已知量——由勒内·笛卡尔（René Descartes）在1637年的《几何学》中引入；韦达的惯例随之弃用。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/History_overview/)</sup> 公式记号的其他熟悉要素是逐步到位的：等号来自罗伯特·雷科德（Robert Recorde），1557年；乘积的并置写法 \( ax \) 以及现代指数来自笛卡尔，1637年，而詹姆斯·休姆（James Hume）1636年版的韦达著作将罗马数字上标指数置于近乎现代的位置。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/History_overview/)</sup><sup> • </sup><sup>[13](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)</sup> 求和符号 \( \Sigma \) 最早由莱昂哈德·欧拉（Leonhard Euler）于1755年在《微分学原理》（*Institutiones calculi differentialis*）中使用。<sup>[13](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)</sup>

到十六世纪末，随着韦达的工作，尤其是在十七世纪上半叶随着哈里奥特（Harriot）、费马（Fermat）和笛卡尔的工作，数学家开始以符号方式处理代数；在十七和十八世纪，他们越来越多地使用公式来表示各门科学中的定量动态关系。<sup>[14](https://old.maa.org/press/maa-reviews/taming-the-unknown-a-history-of-algebra-from-antiquity-to-the-early-twentieth-century)</sup>

## 科学中的公式与量纲一致性

表达物理关系的公式必须满足代数之外的结构约束。方程中的每一项必须与其他项具有相同的量纲，且其中出现的任何标准数学函数的自变量必须无量纲。这一性质——量纲一致性——对每个表达物理定律或原理的方程都成立，它提供了一个实用工具：可以检验记忆中的或推导出的公式是否可能正确，甚至在所涉量已知时提示合理的公式形式。<sup>[7](https://pressbooks.online.ucf.edu/osuniversityphysics/chapter/1-4-dimensional-analysis/)</sup>

检验逐项进行。对于 \( s = vt + 0.5at^{2} \)，其中 \( [v] = \mathrm{LT}^{-1} \)、\( [a] = \mathrm{LT}^{-2} \)，右边两项都归结为长度 \( \mathrm{L} \)，与 \( [s] \) 相符，因此方程是一致的。对于 \( s = vt^{2} + 0.5at \)，各项分别为 \( \mathrm{LT} \) 和 \( \mathrm{LT}^{-1} \)，既互不相符，也不与 \( [s] \) 相符。<sup>[7](https://pressbooks.online.ucf.edu/osuniversityphysics/chapter/1-4-dimensional-analysis/)</sup> 量纲分析有其局限：诸如 \( x = at + bt^{2} \) 这样的方程逐项通过检验，但分析无法确定系数，也无法区分具有相同量纲的项，因此不能先验地猜出完整公式。<sup>[15](https://physics.suparnpatra.com/classes/xi/ch02-units-and-measurements/limitations-of-dimensions)</sup> 在建模中，量纲齐性还有一个进一步的结果：量纲齐次的方程与所使用的测量单位无关。<sup>[16](https://ku.ac.bd/discipline/uploads/offered-course-material/%5BDym_C.L.%5D_Principles_of_mathematical_modeling.pdf)</sup>

## 验证与数字公式库

大型参考汇编以机器可读的形式收集公式。NIST数字数学函数库（DLMF）是《NIST数学函数手册》的网络配套资源，为应用数学、物理科学和工程领域中遇到特殊函数的研究人员提供参考工具。<sup>[17](https://dlmf.nist.gov/front/introduction)</sup> 由于一个排版错误就可能使已发表的公式失效，正确性被视为一种可度量的属性。NIST的LaCASt翻译器将以语义LaTeX书写的DLMF公式转换为计算机代数系统Maple和Mathematica的语言，从而实现公式的自动验证和计算；一个测试数据子集包含4,078条语义LaTeX格式的DLMF公式。<sup>[8](https://www.nist.gov/publications/comparative-verification-validation-digital-mathematical-libraries-and-computer-algebra)</sup><sup> • </sup><sup>[18](https://arxiv.org/abs/2109.08899)</sup> 这项工作将数字数学库和计算机代数系统的正确性、精确性和可靠性视为现代研究的关键属性，而现代研究依赖于两者。<sup>[8](https://www.nist.gov/publications/comparative-verification-validation-digital-mathematical-libraries-and-computer-algebra)</sup>

formula的拉丁语复数形式是*formulae*，不过英语化形式*formulas*在当代英语用法中更为常见。<sup>[1](https://mathworld.wolfram.com/Formula.html)</sup>

## References

1. [Formula, Wolfram MathWorld](https://mathworld.wolfram.com/Formula.html)
2. [Formula, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Formula)
3. [Formula, Enciclopedia della Matematica, Treccani](https://www.treccani.it/enciclopedia/formula_(Enciclopedia-della-Matematica)/)
4. [Formulas, The Improving Mathematics Education in Schools (TIMES) Project, AMSI](https://www.amsi.org.au/teacher_modules/Formulas.html)
5. [François Viète (1540–1603), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Biographies/Viete/)
6. [History overview, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/History_overview/)
7. [1.4 Dimensional Analysis, University Physics Volume 1, OpenStax](https://pressbooks.online.ucf.edu/osuniversityphysics/chapter/1-4-dimensional-analysis/)
8. [Comparative Verification & Validation of Digital Mathematical Libraries and Computer Algebra Systems, NIST](https://www.nist.gov/publications/comparative-verification-validation-digital-mathematical-libraries-and-computer-algebra)
9. [Logical formula, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Logical_formula)
10. [What is Algebra, Math 1010 Online, University of Utah](https://www.math.utah.edu/online/1010/algebra/)
11. [Lynn Stallings (2000), A Brief History of Algebraic Notation, School Science and Mathematics 100: 230–235](https://onlinelibrary.wiley.com/doi/10.1111/j.1949-8594.2000.tb17262.x)
12. [Mathematical symbols, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Mathematical_symbols)
13. [Earliest Uses of Symbols of Operation, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/operation/)
14. [Taming the Unknown: A History of Algebra from Antiquity to the Early Twentieth Century, MAA Reviews](https://old.maa.org/press/maa-reviews/taming-the-unknown-a-history-of-algebra-from-antiquity-to-the-early-twentieth-century)
15. [Limitations of Dimensional Analysis, Physics Lab](https://physics.suparnpatra.com/classes/xi/ch02-units-and-measurements/limitations-of-dimensions)
16. [C. L. Dym, Principles of Mathematical Modeling](https://ku.ac.bd/discipline/uploads/offered-course-material/%5BDym_C.L.%5D_Principles_of_mathematical_modeling.pdf)
17. [DLMF: Mathematical Introduction, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/front/introduction)
18. [Automated Symbolic and Numerical Testing of DLMF Formulae using Computer Algebra Systems, arXiv:2109.08899](https://arxiv.org/abs/2109.08899)

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

Topic: 物质世界与数学 › 数学与统计学

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/formula

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