文書の過去の版を表示しています。
MathJax
概要
- LaTeX などでの数式の記述をブラウザで表示する Javascript ライブラリ。
- 単独では動かないので、ブラウザやエディタの拡張機能などが必要。
- よく利用していた「 Easy Copy MathJax」が使いづらくなったため、自分用にメモ。
数式の記法
数 (Numbe)r
- 分数 (fraction)
$\frac{ 1 }{ 2 }$
- 12
- 分数 (大) (fraction large)
$\displaystyle \frac{ 1 }{ 2 }$
- 12
- 分数と括弧 (fraction and parentheses)
$\left( - \frac{ 1 }{ 2 } \right )^2$
- (−12)2
- 連分数 (continued fraction)
$\frac{ a + b }{ c + \frac{ d }{ e } }$
- a+bc+de
- 無限連分数 (infinite continued fraction)
$ \begin{eqnarray} 1 + \frac{ 1 }{ 1 + \frac{ 1 }{ 1 + \frac{ 1 }{ 1 + \ddots } } } = \frac{ 1 }{ 2 } \left( 1 + \sqrt{ 5 } \right) \end{eqnarray} $
- 1+11+11+11+⋱=12(1+√5)
- 小数 (decimal)
$0.123$
- 0.123
- 循環小数 (repeating decimal)
$\frac{ 1 }{ 11 } = 0.\dot{ 0 } \dot{ 9 }$
- 111=0.˙0˙9
- 無限小数 (infinite decimal)
$3.14 \ldots$
- 3.14…
- 無理数サンプル (irrational number sample)
$\sqrt{ 2 } = 1.4142 \ldots$
- √2=1.4142…
- 無限大 (infinity)
$\infty$
- ∞
- 絶対値 (absolute value)
$| x |$
- |x|
- 絶対値2 (absolute value 2)
$\vert x \vert$
- |x|
- 分数と絶対値 (fraction and absolute value)
$\left| \frac{ x }{ 2 } \right|$
- |x2|
- ガウス記号 (Gauss brackets)
$[ x ]$
- [x]
- ガウス記号 (Gauss brackets 2)
$\lbrack x \rbrack$
- [x]
- 床関数 (floor function)
$\lfloor x \rfloor$
- ⌊x⌋
- 天井関数 (ceiling function)
$\lceil x \rceil$
- ⌈x⌉
四則演算 (Arithmetic Operation)
- 加算 (plus)
$1 + 2$
- 1+2
- 減算 (minus)
$3 - 1$
- 3−1
- 乗算 (times)
$2 \times 3$
- 2×3
- 割る (divide)
$6 \div 3$
- 6÷3
- プラスマイナス (plus minus)
$\pm 1$
- ±1
- マイナスプラス (minus plus)
$\mp 1$
- ∓1
- 乗算 (簡略) (times dot)
$a \cdot b = ab$
- a⋅b=ab
- 除算 (分数) (divide fraction)
$a / b = \frac{a}{b}$
- a/b=ab
- 合同式 (modular equivalence)
$a \equiv b \bmod n$
- a≡bmodn
- 合同式 (括弧付) (modular equivalence with parentheses)
$a \equiv b \pmod n$
- a≡b(modn)
- 比例 (proportional)
$x \propto y$
- x∝y
大小 (Greater or Less)
- 大なり (greater than)
$a \gt b$
- a>b
- 大なりイコール (greater than or equal)
$a \geq b$
- a≥b
- 大なりイコール2 (greater than or equal 2)
$a \geqq b$
- a≧b
- 小なり (less than)
$a \lt b$
- a<b
- 小なりイコール (less than or equal)
$a \leq b$
- a≤b
- 小なりイコール2 (less than or equal 2)
$a \leqq b$
- a≦b
- 等しい (equal)
$a = b$
- a=b
- 等しくない (not equal)
$a \neq b$
- a≠b
- ほぼ等しい (nearly equal)
$a \fallingdotseq b$
- a≒b
- ほぼ等しい2 (nearly equal 2)
$a \sim b$
- a∼b
- ほぼ等しい3 (nearly equal 3)
$a \simeq b$
- a≃b
- ほぼ等しい4 (nearly equal 4)
$a \approx b$
- a≈b
- 十分大きい (much greater than)
$a \gg b$
- a≫b
- 十分小さい (much less than)
$a \ll b$
- a≪b
- 最大 (maximum)
$\max f(x)$
- maxf(x)
- 最小 (minimum)
$\min f(x)$
- minf(x)
- 最大サンプル (max sample)
$\begin{eqnarray} \max ( a, b ) = \begin{cases} a & ( a \geqq b ) \\ b & ( a \lt b ) \end{cases} \end{eqnarray}$
- max(a,b)={a(a≧b)b(a<b)
複数行数式 (Multiple Line Equations)
- 改行 (line break)
$\begin{eqnarray} aaa \\ bbb \end{eqnarray}$
- aaabbb
- 改行 (サイズ指定) (big line break)
$\begin{eqnarray} aaa \\[ 5pt ] bbb \end{eqnarray}$
- aaabbb
- 位置合わせ (alignment)
$\begin{eqnarray} x + 2x &=& 3 \\ x &=& 1 \end{eqnarray}$
- x+2x=3x=1
- 連立方程式 (simultaneous equations)
$\begin{eqnarray} \left\{ \begin{array}{l} x + y = 10 \\ 2x + 4y = 32 \end{array} \right. \end{eqnarray}$
- {x+y=102x+4y=32
- 場合分け (case)
$\begin{eqnarray} | x | = \begin{cases} x & ( x \geqq 0 ) \\ -x & ( x \lt 0 ) -\end{cases} \end{eqnarray}$
- |x|={x(x≧0)−x(x<0)
集合 (set)
- 帰属関係 (belong to)
$x \in A$
- x∈A
- 帰属関係2 (belong to 2)
$A \ni x$
- A∋x
- 帰属していない (not belong to)
$x \notin A$
- x∉A
- 部分集合 (subset)
$A \subset B$
- A⊂B
- 部分集合2 (subset 2)
$A \subseteq B$
- A⊆B
- 部分集合3 (subset 3)
$A \subseteqq B$
- A⫅B
- 部分集合 (逆向き) (subset reverse)
$A \supset B$
- A⊃B
- 部分集合 (逆向き) 2 (subset reverse 2)
$A \supseteq B$
- A⊇B
- 部分集合 (逆向き) 3 (subset reverse 3)
$A \supseteqq B$
- A⫆B
- 部分集合でない (not subset)
$A \not \subset B$
- A⊄B
- 真の部分集合 (proper subset)
$A \subsetneqq B$
- A⫋B
- 集合の交わり; 積集合 (intersection)
$A \cap B$
- A∩B
- 集合の結び; 和集合 (union)
$A \cup B$
- A∪B
- 空集合 (empty set)
$\varnothing$
- ∅
- 補集合 (complement set)
$A^c$
- Ac
- 補集合2 (complement set 2)
$\overline{ A }$
- ¯A
- 差集合 (relative complement)
$A \setminus B$
- A∖B
- 差集合サンプル (relative complement sample)
$A \setminus B = A \cap B^c = \{ x \mid x \in A, x \notin B \}$
- A∖B=A∩Bc={x∣x∈A,x∉B}
- 自然数全体の集合 (all natural numbers)
$\mathbb{ N }$
- N
- 整数全体の集合 (all integers)
$\mathbb{ Z }$
- Z
- 有理数全体の集合 (all rational numbers)
$\mathbb{ Q }$
- Q
- 実数全体の集合 (all real numbers)
$\mathbb{ R }$
- R
- 複素数全体の集合 (all complex numbers)
$\mathbb{ C }$
- C
- 四元数全体の集合 (all quaternions)
$\mathbb{ H }$
- H
- 上限 (supremum)
$\sup A$
- supA
- 下限 (infimum)
$\inf A$
- infA
- アレフ数 (aleph number)
$\aleph$
- ℵ
- ()