Tumgik
#bigotime
kazexmoug-blog · 5 years
Photo
Tumblr media
When your average case is also your worst case and you actually know what it means.......THANKS ARRAYS LOL!!!!!! #coding #datastructuresandalgorithms #learningtocode #computerscience #sortingalgorithms #timecomplexity #bubblesort #insertionsort #selectionsort #bigotime #computerscienceisfun #learningsomethingnew #learningtoimprove #selftaughtcoder #kazexmoug #learningtech #timecomplexity #spacecomplexity #runtimes #algorithms #softawareengineering #mathisfun #computerscienceforeveryone #codingmakesmehappy #mathisnotscary #teachyourselfcode #algorithmanalysis #gettingoutofmyhead #criticalthinking #entryleveltech https://www.instagram.com/p/Bz3ONFXpZYe/?igshid=ibaa3jipzdz
0 notes
shengshampoo · 6 years
Text
藉由 MathJax使用 LaTeX語法編寫數學公式教程
藉由 MathJax使用 LaTeX語法編寫數學公式教程
致敬轉載翻閱臨摹的資料來源,內容:
MathJax使用LaTeX语法编写数学公式教程
如何插入公式
LaTeX的數學公式有兩種: 行中公式和獨立公式。 行中公式放在文中與其它文字混編, 獨立公式單獨成行。
行中公式可以用如下兩種方法表示: \(Math Formulas\)  或 $Math Formulas$ 獨立公式可以用如下兩種方法表示: \[Math Formulas\] 或 $$Math Formulas$$
例子:
語法:
$[J_\alpha(x) = \sum_{m=0}^\infty \frac{(-1)^m}{m! \Gamma (m + \alpha + 1)} {\left({ \frac{x}{2} }\right)}^{2m + \alpha}]$
數學輸出顯示:
$[J_\alpha(x) = \sum_{m=0}^\infty \frac{(-1)^m}{m! \Gamma (m + \alpha + 1)} {\left({ \frac{x}{2} }\right)}^{2m + \alpha}]$
語法:
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
數學輸出顯示:
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
如何插入公式大括號
語法 1:
$$ f(x)=\left\{ \begin{aligned} x & = & \cos(t) \\ y & = & \sin(t) \\ z & = & \frac xy \end{aligned} \right. $$
數學輸出顯示: $$ f(x)=\left{ \begin{aligned} x & = & \cos(t) \ y & = & \sin(t) \ z & = & \frac xy \end{aligned} \right. $$
語法 2:
$$ F^{HLLC}=\left\{ \begin{array}{rcl} F_L & & {0 < S_L}\\ F^*_L & & {S_L \leq 0 < S_M}\\ F^*_R & & {S_M \leq 0 < S_R}\\ F_R & & {S_R \leq 0} \end{array} \right. $$
數學輸出顯示:
$$ F^{HLLC}=\left\{ \begin{array}{rcl} F_L & & {0 < S_L}\\ F^*_L & & {S_L \leq 0 < S_M}\\ F^*_R & & {S_M \leq 0 < S_R}\\ F_R & & {S_R \leq 0} \end{array} \right. $$
如何輸入上下標
^ 表示上標, _ 表示下標。 如果上下標的內容多於一個字符, 要用 {} 把這些內容括起來當成一個整體。 上下標是可以嵌套的, 也可以同時使用。
語法:
$x^{y^z}=(1+{\rm e}^x)^{-2xy^w}$
數學輸出顯示:
$x^{y^z}=(1+{\rm e}^x)^{-2xy^w}$
如果要在左右兩邊都有上下標, 可以用\sideset命令。
語法:
$\sideset{^1_2}{^3_4}\bigotimes$
數學輸出顯示:
$\sideset{^1_2}{^3_4}\bigotimes$
語法:
$$\max_{k}$$
數學輸出顯示:
$$\max_{k}$$
語法:
$$\mathop{argmax}_{K}$$
數學輸出顯示:
$$\mathop{argmax}_{K}$$
如何輸入括號和分隔符
() 、[] 和 | 表示自己, {} 表示 {}。 當要顯示大號的括號或分隔符時, 要用 \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)$
有時候要用 \left. 或 \right.進行匹配而不顯示本身。
語法:
$\left. \frac{ {\rm d}u}{ {\rm d}x} \right| _{x=0}$
數學輸出顯示:
$\left. \frac{ {\rm d}u}{ {\rm d}x} \right| _{x=0}$
如何輸入分數
語法:
$\frac{1}{3}$
數學輸出顯示:
$\frac{1}{3}$
語法:
$1 \over 3$
數學輸出顯示:
$1 \over 3$
0 notes