Markdown公式(二)

參考資料https://gavin_nicholas.coding.me/archives/html

1. 如何輸入括號和分隔符

()[]| 表示本身, {} 表示 {} 。當要顯示大號的括號或分隔符時,要用 \left\right 命令。

例子:$$f(x,y,z) = 3y^2z \left( 3+\frac{7x+5}{1+y^2} \right)$$ ,顯示:
\[f(x,y,z) = 3y^2z \left( 3+\frac{7x+5}{1+y^2} \right)\]git

有時候要用\left.\right.進行匹配而不顯示自己。

例子:$$\left. \frac{ {\rm d}u}{ {\rm d}x} \right| _{x=0}$$,顯示:
\[\left. \frac{ {\rm d}u}{ {\rm d}x} \right| _{x=0}\]github

1.1 偏導

$$\frac{\partial^{2}y}{\partial x^{2}}$$
\[\frac{\partial^{2}y}{\partial x^{2}}\]markdown

2. 運算符:

關係運算符 markdown語言 集合運算符 markdown語言 對數運算符 markdown語言 戴帽符號 markdown語言
\(\pm\) $\pm$ \(\emptyset\) $\emptyset$ \(\log\) $\log$ \(\hat{y}\) $\hat{y}$
\(\times\) $\times$ \(\in\) $\in$ \(\lg\) $\lg$ \(\check{y}\) $\check{y}$
\(\div\) $\div$ \(\notin\) $\notin$ \(\ln\) $\ln$ \(\breve{y}\) $\breve{y}$
\(\mid\) $\mid$ \(\subset\) $\subset$
\(\nmid\) $\nmid$ \(\supset\) $\supset$
\(\cdot\) $\cdot$ \(\subseteq\) $\subseteq$
\(\circ\) $\circ$ \(\supseteq\) $\supseteq$
\(\ast\) $\ast$ \(\bigcap\) $\bigcap$
\(\bigodot\) $\bigodot$ \(\bigcup\) $\bigcup$
\(\bigotimes\) $\bigotimes$ \(\bigvee\) $\bigvee$
\(\bigoplus\) $\bigoplus$ \(\bigvee\) $\bigvee$
\(\leq\) $\leq$ \(\bigwedge\) $\bigwedge$
\(\geq\) $\geq$ \(\biguplus\) $\biguplus$
\(\neq\) $\neq$ \(\bigsqcup\) $\bigsqcup$
\(\approx\) $\approx$
\(\equiv\) $\equiv$ \(\ll\) $\ll$ \(\gg\) $\gg$
\(\sum\) $\sum$
\(\prod\) $\prod$ \(\sim\) $\sim$
\(\coprod\) $\coprod$ \(\backsim\) $\backsim$
\(\prec\) \(\preceq\) \(\succ\) \(\succeq\) $\prec$ $\preceq$ $\succ$ $\succeq$


三角運算符 markdown語言 微積分運算符 markdown語言 邏輯運算符 markdown語言
\(\bot\) $\bot$ \(\prime\) $\prime$ \(\because\) $\because$
\(\angle\) $\angle$ \(\int\) $\int$ \(\therefore\) $\therefore$
\(30^\circ\) $30^\circ$ \(\iint\) $\iint$ \(\forall\) $\forall$
\(\sin\) $\sin$ \(\iiint\) $\iiint$ \(\exists\) $\exists$
\(\cos\) $\cos$ \(\iiiint\) $\iiiint$ \(\not=\) $\not=$
\(\tan\) $\tan$ \(\oint\) $\oint$ \(\not>\) $\not>$
\(\cot\) $\cot$ \(\lim\) $\lim$ \(\not\subset\) $\not\subset$
\(\sec\) $\sec$ \(\infty\) $\infty$
\(\csc\) $\csc$ \(\nabla\) $\nabla$
箭頭符號 markdown語言
\(\uparrow\) $\uparrow$
\(\downarrow\) $\downarrow$
\(\Uparrow\) $\Uparrow$
\(\Downarrow\) $\Downarrow$
\(\rightarrow\) $\rightarrow$
\(\leftarrow\) $\leftarrow$
\(\Rightarrow\) $\Rightarrow$
\(\Leftarrow\) $\Leftarrow$
\(\longrightarrow\) $\longrightarrow$
\(\longleftarrow\) $\longleftarrow$
\(\Longrightarrow\) $\Longrightarrow$
\(\Longleftarrow\) $\Longleftarrow$
\(f: {\mathbf x_t} \mapsto {\mathbf y_t}\) $f: {\mathbf x_t} \mapsto {\mathbf y_t}$
\(\Longleftrightarrow\) \Longleftrightarrow

更多關於箭頭的符號見:MathJax 支持的 Latex 符號總結(各類箭頭符號)app


特殊符號

  • \(\boldsymbol{\hat y} = \boldsymbol{W} \boldsymbol{x}\) 的輸入
    代碼:
$\boldsymbol{\hat y} = \boldsymbol{W} \boldsymbol{x}$
  • \(\ell_p\) 範數: $\ell_p$

對於一些特殊的數學符號可使用 \operatorname{} 或者 \text{} 來進行轉換,如:$\text{cov}$$\operatorname{s.t.}$ 便顯示爲:\(\text{cov}\)\(\operatorname{s.t.}\)ui

還有:spa

$A \xrightarrow{f} B \; a \; \bot b \; \overset{def}{=}$

\(A \xrightarrow{f} B \; a \; \bot b \; \overset{def}{=}\).net

$$
 \underset{x\in S\subseteq X}{\operatorname{arg\,max}}\, f(x) := \{x \mid x\in S \wedge \forall y \in S : f(y) \le f(x)\}.   
$$

\[ \underset{x\in S\subseteq X}{\operatorname{arg\,max}}\, f(x) := \{x \mid x\in S \wedge \forall y \in S : f(y) \le f(x)\}. \]code

$$
\operatorname*{\arg\max}_{x\in S\subseteq X}\, f(x) := \{x \mid x\in S \wedge \forall y \in S : f(y) \le f(x)\}.   
$$

\[ \operatorname*{\arg\max}_{x \in S \subseteq X}\, f(x) := \{x \mid x\in S \wedge \forall y \in S : f(y) \le f(x)\}. \]htm

相關文章
相關標籤/搜索