Math Tests
Math Tests#
You can do inline math: \(e^{i\pi} = -1\) and display style math:
\[a^2 + b^2 = c^2\]
\[\begin{split}\begin{equation}
f(x) = \begin{cases} x & \text{if }x < 0 \\ x + 1 & \text{if }x \ge 0 \\ \end{cases}
\end{equation}\end{split}\]
\[\begin{split}\left[\begin{array}{cc|c}
\columncolor[rgb]{0, 1, 1} 1 & 1 & -1 \\
2 & 3 & 0 \\
\end{array}\right]\end{split}\]
Here’s one option for a div with an id, but you need to typeset onload:
\begin{split}\left[\begin{array}{cc|c}
\columncolor[rgb]{0, 1, 1} 1 & 2 & 3 \\
4 & 5 & 6 \\
\end{array}\right]\end{split}
This one will be typeset on its own, and it can have an id via :name:.
\[\begin{split}\begin{split}\left[\begin{array}{cc|c}
\columncolor[rgb]{0, 1, 1} 1 & 2 & 3 \\
4 & 5 & 6 \\
\end{array}\right]\end{split}\end{split}\]
MathJax doesn’t like bordermatrix, so here’s a way of labeling:
\[\begin{split}\begin{matrix}
& \begin{matrix}A&C&G&T\end{matrix} \\\\
\begin{matrix}A\\\\C\\\\G\\\\T\end{matrix} &
\begin{pmatrix}1&2&3&4\\\\3&4&5&6\\\\3&4&5&6\\\\3&4&5&6\end{pmatrix}\\\\
\end{matrix}\end{split}\]