Latex
如何寫
只要在公式的前后加入$$
符號,將需要輸入的公式放到$$
中間,即 $各種公式$
就中了。
這玩意能搞出人命啊
矩陣
$$
\begin{pmatrix}
1 & a_1 & a_1^2 & \cdots & a_1^n \\
1 & a_2 & a_2^2 & \cdots & a_2^n \\
\vdots & \vdots & \vdots & \ddots & \vdots \\
1 & a_m & a_m^2 & \cdots & a_m^n \\
\end{pmatrix}
$$
函數
$y=f(x)$
$p(xy)=p(x|y)p(y)=p(y|x)p(x)$
上下標
$a^b$
$a_b$
$L^aT_eX$
E=mc^2
2^{256} - 2^{32} - 2^9 - 2^8 - 2^7 - 2^6 - 2^4 -1
化學
H~2~O
H2O
$\ce{SO4^2- + Ba^2+ -> BaSO4 v}$
分數
\frac{a}{ b}
$\frac{3+8a}{5b+6}$
開方
$\sqrt[a]{b}$
積分
\int{ }^{ }
$\int^5_1{f(x)}{\rm d}x$
正負無窮
\infty
正無窮 $+\infty$
負無窮 $-\infty$
極限
左箭頭 $\lim_{n\rightarrow+\infty} n$
關系運算符
大于等于 $\geq$
小于等于 $\leq$
包含于 $\subset$
包含 $\supset$
屬于 $\in$
二元運算符
加減 $\pm$
點乘 $\cdot$
乘 $\times$
除 $\div$
否定關系運算符
不等于 $\not=$
不小于 $\not<$
不包含 $\not\supset$
對數運算符
$\log$
$\log_2{18}$
$\ln$
三角運算符
垂直 $\bot$
角 $\angle$
30度角 $30^\circ$
正弦 $\sin$
余弦 $\cos$
正切 $\tan$
箭頭
左箭頭 $\leftarrow$
右箭頭 $\rightarrow$
長箭頭 $\longrightarrow$
上箭頭 $\uparrow$
下箭頭$\downarrow$
累加
$\sum_{ }^{ }$
$\sum{3x^n}$
$\sum_{n=1}^N{3x^n}$
累乘
\prod_{a}^{b}
累加號的上標下標的前后順序可以互換
求和號
$\prod{3x^n}$
帶范圍求乘 $\prod_{n=1}^N{3x^n}$
其他
$nP = P + P + \cdots + P$
$a \equiv r(mod\ n)$
$n P = \underbrace{P + P + \cdots + P}_{n\ \text{times}}$
參考:
https://stackoverflow.com/questions/13208286/how-to-write-latex-in-ipython-notebook
http://liuchengxu.org/blog-cn/posts/quick-latex/
http://www.lxweimin.com/p/bae90bf9e5d8
https://lixingcong.github.io/2016/04/04/LaTex-intro/
http://www.lxweimin.com/p/ffe65adb2c12