2013-11-22
More Math Notation Experiments

Here are some more complex uses of the MathJax notation, including chemistry, commutative diagrams, tooltips and more.

Mathematical Transformation

The solutions of $$ax^2 + by + c = 0$$ are given by \eqref{quad} below:

\begin{equation} x = \frac{ - b \pm \sqrt {b^2 - 4ac} }{2a} \label{quad} \end{equation}

Chemical Equation

Hey, check out my ability to do chemical equations and to reference them \eqref{eq:chem} inline.

\begin{equation} \ce{C6H5-CHO} \ce{$A$ ->[\ce{+H2O}] $B$} \ce{SO4^2- + Ba^2+ -> BaSO4 v} \label{eq:chem} \end{equation}

Tooltips

$$ \texttip{ \bbox[red]{x+y} }{Here is a non-math Tooltip} $$

$$ \mathtip{ \bbox[blue]{x+y} }{Here + is + a + math + Tooltip} $$

Commutative Diagrams

\begin{CD} @. * @>n-1>2> \phantom{\wedge A}A \to @. \to n \wedge A \phantom{+1}\\\\ @. @VVV @VVV \cdots @VVV \\\\ \Omega A @>n>1> * @>n-1>2> \Sigma\Omega A\to @. \to n \star \Omega A \\\\ @VVV @VVV @VVV \cdots @VVV \\\\ L_n @>n>1> * @>n-1>2> \Sigma L_n\to @. \to n \star L_n \\\\ @| @VVV @VVV \cdots @VVV \\\\ L_n @>n>1> * @>n-1>2> \phantom{\wedge A}A \to @. \to n \wedge A \phantom{+1}\\\\ @VVV @VVV @VVV \cdots @VVV \\\\ * @>n>1> A @>n-1>2> A\vee A \to @. \to (n+1)\wedge A \end{CD}

Boxes and Borders

$$ \bbox[5px,border:2px solid red]{x+y} $$

$$ \langle digit \rangle ::= $$