Latex Math 数学公式 符号
Latex Math
目录
直接符号
直接从键盘访问的符号:
数学表达式
\pm \mp
根
\sqrt{\frac{a}{b}}
\sqrt [ a ] {b} \quad
积分
\int_0^\infty \mathrm{e}^{-x}\,\mathrm{d}x
\int\limits_a^b \iint\limits_a^b
和
\sum_{i=1}^{10} t_i 或者 \displaystyle\sum_{i=1}^{10} t_i
\sqrt[n]{1+x+x^2+x^3+\dots+x^n}
指数
k_{n+1} = n^2 + k_n^2 - k_{n-1}
f(n) = n^5 + 4n^2 + 2 |_{n=17}
分数
\frac { n! }{ k!(nk)! } = \binom { n }{ k }
\frac { \frac { 1 } { x } + \frac { 1 } { y }} { y-z }
^3/_7
连分数
\begin{equation}
x = a_0 + \cfrac{1}{a_1
+ \cfrac{1}{a_2
+ \cfrac{1}{a_3 + \cfrac{1}{a_4} } } }
\end{equation}
数的乘法
\begin{equation}
\frac{
\begin{array}[b]{r}
\left( x_1 x_2 \right)\\
\times \left( x'_1 x'_2 \right)
\end{array}
}{
\left( y_1y_2y_3y_4 \right)
}
\end{equation}
矩阵和数组
基本矩阵
\begin{matrix}
a & b & c \\
d & e & f \\
g & h & i
\end{matrix}
要指定表格中列的对齐方式,请使用带*
的版本
\begin{matrix}
-1 & 3 \\
2 & -4
\end{matrix}
=
\begin{matrix*}[r]
-1 & 3 \\
2 & -4
\end{matrix*}
通常使用水平、垂直和对角三组点(称为椭圆(ellipses))来填充某些列和行。这些可以分别使用\cdots
,\vdots
和指定\ddots
:
A_{m,n} =
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix}
数组环境
\begin{array}{c|c}
1 & 2 \\
\hline
3 & 4
\end{array}
M = \begin{bmatrix}
\frac{5}{6} & \frac{1}{6} & 0 \\[0.3em]
\frac{5}{6} & 0 & \frac{1}{6} \\[0.3em]
0 & \frac{5}{6} & \frac{1}{6}
\end{bmatrix}
运算符
运算符是一个用单词表示的函数
如三角函数(sin, cos, tan),对数和/指数(log, exp),极限(lim),以及迹和行列式(tr, det)
符号 | Script | 符号 | Script | 符号 | Script | 符号 | Script |
---|---|---|---|---|---|---|---|
\times |
\div |
\csc |
\sec |
||||
\exp |
\ker |
\limsup |
\sup |
||||
\max |
\min |
\arcsin |
\arccos |
||||
\cos |
\cosh |
\deg |
\gcd |
||||
\lg |
\ln |
\Pr |
\liminf |
||||
\det |
\hom |
\lim |
\log |
||||
\arg |
\coth |
\dim |
\inf |
||||
\sin |
\sinh |
\cot |
\arctan |
||||
\tan |
\tanh |
\mod |
\pmod |
||||
\equiv |
\bmod |
\cos (2 \theta )= \cos ^ 2 \theta- \ sin ^ 2 \theta
\lim\limits _{ x \to \infty } \exp (-x) = 0
格式部分
控制水平间距
命令 | 描述 | 尺寸 | |
---|---|---|---|
\, |
小空间 | 四边形的 3/18 | |
\: |
中等空间 | 四边形的 4/18 | |
\; |
大空间 | 四边形的 5/18 | |
\! |
负空间 | 四边形的-3/18 |
f(n) =
\begin{cases}
n/2 & \quad \text{if } n \text{ is even}\\
-(n+1)/2 & \quad \text{if } n \text{ is odd}
\end{cases}
点
代码 | 输出 | 评论 |
---|---|---|
\dots |
通用点(省略号),用于文本(公式之外)。它根据上下文自动管理自身前后的空格,这是一个更高级别的命令。 | |
\ldots |
输出与上一个类似,但没有自动空白管理;它在较低级别上工作。 | |
\cdots |
这些点相对于字母的高度居中。还有\cdot 下面提到的二元乘法运算符 。 |
|
\vdots |
垂直点 | |
\ddots |
对角点 | |
\iddots |
反向对角点(需要mathdots包) | |
\hdotsfor{n} |
要在矩阵中使用,它会创建一行跨越n列的点。 |
向方程添加文本
50 \text{ apples} \times 100 \text{ apples}
= \text{lots of apples}^2
颜色
在Colors中描述的包xcolor允许我们为方程添加颜色。
black, blue, brown, cyan, darkgray, gray, green, lightgray, lime, magenta, olive, orange, pink, purple, red, teal, violet, white, yellow.
k = {\color{red}x} \mathbin{\color{blue}-} 2
\color{red} C^2 \\
\color{yellow} A = \color{blue}{B} \mathbin{\color{red}{-}} \color{green}{C}
\color{yellow} A \color{magenta}=
\color{blue}{B}
\mathbin{\color{red}-}% shorter than \mathbin{\color{red}{-}}
\color{green}{C}
\color{cyan}+
D
数学符号列表
常用
\sum |
\prod |
\coprod |
\bigoplus |
||||
\bigotimes |
\bigodot |
\bigcup |
\bigcap |
||||
\biguplus |
\bigsqcup |
\bigvee |
\bigwedge |
||||
\int |
\oint |
\iint |
\iiint |
||||
\iiiint |
\idotsint |
格式化数学符号
\mathnormal{…}
默认数学字体
\mathrm{…}
这是默认或普通字体,单位化,计量单位,一字功能
\mathit{…}
斜体字体
\mathbf{…}
粗体,矢量图
\mathsf{…}
无衬线字体
\mathtt{…}
等宽
\mathbb{…}
黑板粗体,用于表示特殊集合(例如实数)
\mathcal{…}
书法(仅限大写),通常用于轮/方案和类别,用于表示密码学概念
\mathscr{…}
\mathfrak{…}
关系符号
符号 | Script | 符号 | Script | 符号 | Script | 符号 | Script |
---|---|---|---|---|---|---|---|
. |
< |
> |
= |
||||
\parallel |
\nparallel |
\leq |
\geq |
||||
\doteq |
\asymp |
\bowtie |
\ll |
||||
\gg |
\equiv |
\vdash |
\dashv |
||||
\subset |
\supset |
\approx |
\in |
||||
\ni |
\subseteq |
\supseteq |
\cong |
||||
\smile |
\frown |
\nsubseteq |
\nsupseteq |
||||
\simeq |
\models |
\notin |
\sqsubset |
||||
\sqsupset |
\sim |
\perp |
\mid |
||||
\sqsubseteq |
\sqsupseteq |
\propto |
\prec |
||||
\succ |
\preceq |
\succeq |
\neq |
||||
\sphericalangle |
\measuredangle |
\therefore |
\because |
||||
\thicksim |
\backsim |
二元操作
符号 | Script | 符号 | Script | 符号 | Script | 符号 | Script |
---|---|---|---|---|---|---|---|
\pm |
\cap |
\diamond |
\oplus |
||||
\mp |
\cup |
\bigtriangleup |
\ominus |
||||
\times |
\uplus |
\bigtriangledown |
\otimes |
||||
\div |
\sqcap |
\triangleleft |
\oslash |
||||
\ast |
\sqcup |
\triangleright |
\odot |
||||
\star |
\vee |
\bigcirc |
\circ |
||||
\dagger |
\wedge |
\bullet |
\setminus |
||||
\ddagger |
\cdot |
\wr |
\amalg |
集合和/或逻辑符号
符号 | Script | 符号 | Script | 符号 | Script | 符号 | Script |
---|---|---|---|---|---|---|---|
\exists |
\rightarrow 或\to |
\nexists |
\leftarrow 或\gets |
||||
\forall |
\mapsto |
\neg |
\implies |
||||
\cap |
\cup |
\subset |
\impliedby |
||||
\supset |
\Rightarrow |
\in |
\leftrightarrow |
||||
\notin |
\iff |
\ni |
\Leftrightarrow |
||||
\land |
\top |
\lor |
\bot |
||||
\angle |
\emptyset |
\varnothing |
\rightleftharpoons |
重音符
符号 | Script | 符号 | Script | 符号 | Script | 符号 | Script |
---|---|---|---|---|---|---|---|
\hat{a} |
\check{a} |
\tilde{a} |
\acute{a} |
||||
\grave{a} |
\dot{a} |
\ddot{a} |
\breve{a} |
||||
\bar{a} |
\vec{a} |
\widehat{A} |
\widetilde{A} |
希腊字母
符号 | Script | 符号 | Script |
---|---|---|---|
and | A \alpha |
and | N \nu |
and | B \beta |
and | \Xi \xi |
and | \Gamma \gamma |
and | O o |
and | \Delta \delta |
,and | \Pi ,\pi \varpi |
,and | E \epsilon \varepsilon |
,and | P ,\rho \varrho |
and | Z \zeta |
,and | \Sigma \sigma \varsigma |
and | H \eta |
and | T \tau |
,and | \Theta \theta \vartheta |
,and | \Phi \phi \varphi |
and | \Upsilon \upsilon |
and | I \iota |
,and | K ,\kappa \varkappa |
and | \Omega \omega |
and | X \chi |
and | \Lambda \lambda |
and | \Psi \psi |
and | M \mu |
奇奇怪怪的字符
符号 | Script | 符号 | Script | 符号 | Script | 符号 | Script |
---|---|---|---|---|---|---|---|
\partial |
\imath |
\Re |
\nabla |
||||
\aleph |
\eth |
\jmath |
\Im |
||||
\Box |
\beth |
\hbar |
\ell |
||||
\wp |
\infty |
\gimel |
\heartsuit |
||||
\sharp |
\natural |
\clubsuit |
\spadesuit |
分隔符
符号 | Script | 符号 | Script | 符号 | Script | 符号 | Script |
---|---|---|---|---|---|---|---|
或 | ` | 或 \mid(间距不同)` |
| |
/ |
|||
\{ |
\} |
\langle |
\rangle |
||||
\uparrow |
\Uparrow |
\lceil |
\rceil |
||||
\downarrow |
\Downarrow |
\lfloor |
\rfloor |
||||
\lmoustache |
\lmoustache |
分类:
数学