KaTeX and MathJax on the same page
Processed with KaTeX
Some inline math: $ c = \pm \sqrt{a^2 + b^2} $
Display math:
$$ 3 + 4i = 5(\cos \theta + i \sin \theta) $$
{align} - automatic numbering:
\begin{align}
a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2
\end{align}
{alignat} - automatic numbering:
\begin{alignat}{2}
&A &&= b-c\\
&B &&= a+d
\end{alignat}
Processed with MathJax
Some inline math: $ c = \pm \sqrt{a^2 + b^2} $
Display math:
$$ 3 + 4i = 5(\cos \theta + i \sin \theta) $$
{align} - automatic numbering:
\begin{align}
a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2
\end{align}
{alignat} - automatic numbering:
\begin{alignat}{2}
&A &&= b-c\\
&B &&= a+d
\end{alignat}
Processed with KaTeX
$$ Y_k = 1 \text{ if } G = k \text{ else } 0. $$
$$ Y = \begin{bmatrix} 1 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 \\ & & \vdots & & \\ 0 & 0 & 0 & 0 & 1 \end{bmatrix} $$
\begin{equation} \hat{G}(x) = \arg\max_{k\in\mathcal{G}} \hat{f}_k(x). \end{equation}
Processed with MathJax
$$ Y_k = 1 \text{ if } G = k \text{ else } 0. $$
$$ Y = \begin{bmatrix} 1 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 \\ & & \vdots & & \\ 0 & 0 & 0 & 0 & 1 \end{bmatrix} $$
\begin{equation} \hat{G}(x) = \arg\max_{k\in\mathcal{G}} \hat{f}_k(x). \end{equation}