# MathML Tests

This is my first foray into the MathML or Mathematical Markup Language...markup language.
Things will show up here from time to time documenting various tests.

### Basic overview of MathML

I am no expert. The following, however, is a good start for anyone looking to get into this.

[itex] opens up a MathML statement (it might be a good idea to also include "xmlns="http://www.w3.org/1998/Math/MathML"", just because)
<mi> represents an "identifier", which can be x, y, s, r, a, etc.
<mo> represents operators such as times, divided by, plus, minus, etc.
<mn> represents numbers
<mtext> represents text. When embedded into HTML or XHTML markup can be used within this tag.
<mrow> represents rows. This can be used to simulate formulas that involve an equation over another equation, plus other useful things. MUST BE CONTAINED WITHIN FRACTION TAGS.
<msup> and <msub> represents superscripts/subscripts. THE ELEMENT YOU ARE ATTACHING IT TO MUST BE CONTAINED WITHIN THIS TAG OR ERROR OCCURS.
<mfrac> represents fractions. Rows must be contained in this for it to work properly.
<msqrt> (<mroot>) represents roots/square roots.
<mfenced> represents fences (ie parentheses, square brackets, those kinds of things) around stuff.

### Let's get started with the simplest algebraic equation ever: the Line

$y=mx+b$

But how useful is it if it's not an actual equation?
Let's say we have two points on a line, one is (1, 1), the other is (4, 8). Let's figure out the slope, which is m.

$m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}$

Which, in turn, becomes this:

$m=\frac{4-1}{8-1}$

$m=\frac{3}{7}$

And then to figure out the rest of the equation (ie the b), sub in one of the points.

$y=\frac{3}{7}x+b$

$\mathrm{\left(1\right)}=\frac{3}{7}\mathrm{\left(1\right)}+b$

$1=\frac{3}{7}+b$

$1-\frac{3}{7}=b$

$\frac{4}{7}=b$