MarkDown添加数学公式
行间公式
行间公式效果:
\[在这里键入公式
\]
行间公式代码:
$$
在这里键入公式
$$
行内公式
行内公式效果:\(在这里键入公式\)
行内公式代码:$在这里键入公式$
常用公式的代码
上/下标
算式 |
Markdown |
\(x^2\) |
x^2 |
\(y_1\) |
y_1 |
分式
算式 |
Markdown |
\(1/2\) |
1/2 |
\(\frac{1}{2}\) |
\frac{1} |
省略号
省略号 |
Markdown |
\cdots |
\cdots |
开根号
算式 |
Markdown |
\(\sqrt[n]{m}\) |
\sqrt[n] |
矢量
算式 |
Markdown |
\(\vec{a}\) |
\vec |
积分
算式 |
Markdown |
\(\int{x}dx\) |
\int{x}dx |
\(\int_{1}^{2}{x}dx\) |
\int_{1}^{2}{x}dx |
极限
算式 |
Markdown |
\(\lim{a+b}\) |
\lim |
\(\lim_{n\rightarrow+\infty}\) |
\lim_ |
累加
算式 |
Markdown |
\(\sum{a}\) |
\sum |
\(\sum_{n=1}^{100}{a_n}\) |
\sum_{n=1}^{100} |
累乘
算式 |
Markdown |
\(\prod{x}\) |
\prod |
\(\prod_{n=1}^{99}{x_n}\) |
\prod_{n=1}^{99} |
希腊字母
大写 |
Markdown |
小写 |
Markdown |
\(A\) |
A |
\(\alpha\) |
\alpha |
\(B\) |
B |
\(\beta\) |
\beta |
\(\Gamma\) |
\Gamma |
\(\gamma\) |
\gamma |
\(\Delta\) |
\Delta |
\(\delta\) |
\delta |
\(E\) |
E |
\(\epsilon\) |
\epsilon |
|
|
\(\varepsilon\) |
\varepsilon |
\(Z\) |
Z |
\(\zeta\) |
\zeta |
\(H\) |
H |
\(\eta\) |
\eta |
\(\Theta\) |
\Theta |
\(\theta\) |
\theta |
\(I\) |
I |
\(\iota\) |
\iota |
\(K\) |
K |
\(\kappa\) |
\kappa |
\(\Lambda\) |
\Lambda |
\(\lambda\) |
\lambda |
\(M\) |
M |
\(\mu\) |
\mu |
\(N\) |
N |
\(\nu\) |
\nu |
\(\Xi\) |
\Xi |
\(\xi\) |
\xi |
\(O\) |
O |
\(\omicron\) |
\omicron |
\(\Pi\) |
\Pi |
\(\pi\) |
\pi |
\(P\) |
P |
\(\rho\) |
\rho |
\(\Sigma\) |
\Sigma |
\(\sigma\) |
\sigma |
\(T\) |
T |
\(\tau\) |
\tau |
\(\Upsilon\) |
\Upsilon |
\(\upsilon\) |
\upsilon |
\(\Phi\) |
\Phi |
\(\phi\) |
\phi |
|
|
\(\varphi\) |
\varphi |
\(X\) |
X |
\(\chi\) |
\chi |
\(\Psi\) |
\Psi |
\(\psi\) |
\psi |
\(\Omega\) |
\Omega |
\(\omega\) |
\omega |
三角函数
三角函数 |
Markdown |
\(\sin\) |
\sin |
对数函数
算式 |
Markdown |
\(\ln2\) |
\ln2 |
\(\log_28\) |
\log_28 |
\(\lg10\) |
\lg10 |
关系运算符
运算符 |
Markdown |
\(\pm\) |
\pm |
\(\times\) |
\times |
\(\cdot\) |
\cdot |
\(\div\) |
\div |
\(\neq\) |
\neq |
\(\equiv\) |
\equiv |
\(\leq\) |
\leq |
\(\geq\) |
\geq |
其它特殊字符
符号 |
Markdown |
\(\forall\) |
\forall |
\(\infty\) |
\infty |
\(\emptyset\) |
\emptyset |
\(\exists\) |
\exists |
\(\nabla\) |
\nabla |
\(\bot\) |
\bot |
\(\angle\) |
\angle |
\(\because\) |
\because |
\(\therefore\) |
\therefore |
\(\in\) |
\in |
\(\lfloor\rfloor\) |
\lfloor\rfloor |
\(\lceil\rceil\) |
\lceil\rceil |
花括号
\[c(u)=\begin{cases} \sqrt\frac{1}{N},u=0\\ \sqrt\frac{2}{N}, u\neq0\end{cases} \tag{1}
\]
c(u)=\begin{cases} \sqrt\frac{1}{N},u=0\\ \sqrt\frac{2}{N}, u\neq0\end{cases} \tag{1}
行列式
\[c(u)=\begin{vmatrix} \mathbf i & \mathbf j \\ \partial x & \partial \end{vmatrix} \tag{2}
\]
c(u)=\begin{vmatrix} \mathbf i & \mathbf j \\ \partial x & \partial \end{vmatrix} \tag{2}
空格/换行
\[a \quad b
\\
c
\]
a \quad b
\\
c