在MarkDown中可以插入数学公式,但是在博客园和有道云笔记之中的数学公式插入方式略有不同(博客园需要先在后台选项中开启插入数学公式选项):
代码 | 行内公式 | 整行公式 |
---|---|---|
博客园 | $数学公式$ |
$$数学公式$$ |
有道云笔记 | ` $ 数学公式 $ ` |
``` math 数学公式 ```` |
二元运算符及一般数学符号
示例 | 代码 | 示例 | 代码 |
---|---|---|---|
\(\frac{a}{b}\) | \frac{a}{b} | \(\cdot\) | \cdot |
\(\pm\) | \pm | \(\mp\) | \mp |
\(\times\) | \times | \(\div\) | \div |
\(\star\) | \star | \(\ast\) | \ast |
\(\cup\) | \cup | \(\cap\) | \cap |
\(\vee\) | \vee or \lor | \(\wedge\) | \wedge or \land |
\(\oplus\) | \oplus | \(\otimes\) | \otimes |
\(\circ\) | \circ | \(\bullet\) | \bullet |
\(\bigtriangleup\) | \bigtriangleup | \(\bigtriangledown\) | bigtriangledown |
\(\nabla\) | \nabla | \(\exists\) | \exists |
\(\partial\) | \partial | \(\infty\) | \infty |
\(\forall\) | \forall | \(\surd\) | \surd |
\(\angle\) | \angle | \(\bot\) | \bot |
希腊字母
示例 | 代码 | 示例 | 代码 |
---|---|---|---|
\(\alpha\) | \alpha | \(\theta\) | \theta |
\(\beta\) | \beta | \(\upsilon\) | \upsilon |
\(\pi\) | \pi | \(\phi\) | \phi |
\(\gamma\) | \gamma | \(\varphi\) | \varphi |
\(\rho\) | \rho | \(\delta\) | \delta |
\(\lambda\) | \lambda | \(\epsilon\) | \epsion |
\(\mu\) | \mu | \(\psi\) | \psi |
\(\sigma\) | \sigma | \(\omega\) | \omega |
\(\chi\) | \chi | \(\kappa\) | \kappa |
\(\xi\) | \xi | \(\eta\) | \eta |
\(\Lambda\) | \Lambda | \(\Gamma\) | \Gamma |
\(\Omega\) | \Omega | \(\Psi\) | \Psi |
“大”运算符
示例 | 代码 | 示例 | 代码 |
---|---|---|---|
\(\sum^{n}_{i}\) | \sum^{n}_{i} | \(\bigcup\) | \bigcup |
\(\bigvee\) | \bigvee | \(\bigwedge\) | \bigwedge |
\(\prod\) | \prod | \(\coprod\) | \coprod |
\(\int\) | \int | \(\oint\) | \oint |
\(\bigoplus\) | \bigoplus | \(\bigotimes\) | \bigotimes |
二元关系
示例 | 代码 | 示例 | 代码 |
---|---|---|---|
\(\leq\) | \leq or \le | \(\geq\) | \geq or \ge |
\(\equiv\) | \equiv | \(\approx\) | \approx |
\(\lll\) | \lll | \(\ggg\) | \ggg |
\(\simeq\) | \simeq | \(\sim\) | \sim |
\(\subset\) | \subset | \(\supset\) | \supset |
\(\subseteq\) | \subseteq | \(\supseteq\) | \supseteq |
\(\in\) | \in | \(\owns\) | \ni or \owns |
\(\notin\) | \notin | \(\ne\) | \neq or \ne |
\(\cong\) | \cong | \(\propto\) | \propto |
\(\mid\) | \mid | \(\parallel\) | \parallel |
\(\varsubsetneqq\) | \varsubsetneqq | \(\varsupsetneqq\) | \varsupsetneqq |
\(\Rrightarrow\) | \Rrightarrow | \(\Lleftarrow\) | \Lleftarrow |
\(\upharpoonright\) | \upharpoonright | \(\downharpoonright\) | \downharpoonright |
大定界符
示例 | 代码 | 示例 | 代码 |
---|---|---|---|
\(\lgroup\) | \lgroup | \(\rgroup\) | \rgroup |
\(\lmoustache\) | \lmoustache | \(\rmoustache\) | \rmoustache |
\(\Arrowvert\) | \Arrowvert | \(\bracevert\) | \bracevert |
分段函数
示例 :
\[函数名=\begin{cases}
公式1 & 条件1 \\
公式2 & 条件2 \\
公式3 & 条件3
\end{cases}\]
公式1 & 条件1 \\
公式2 & 条件2 \\
公式3 & 条件3
\end{cases}\]
代码:
函数名=\begin{cases}
公式1 & 条件1 \\
公式2 & 条件2 \\
公式3 & 条件3
\end{cases}
&
表示对齐,\\
用来表示换行, \qquad
可以表示空格