Ded Hour

Fall 2012
course
navigation

math

Here is some LaTex math using http://www.mathjax.org/ .

\[ \alpha = \frac{1}{\beta} \]

\[ \int_0^\infty \! f(x) \, \mathrm{d}x \]
And here's some inline \( y = sin\left( \frac{1}{x}\right) \) sort of stuff.
The two-dollar-sign invocation also works.
$$ \frac{-b \pm \sqrt{b^2 - 4 a c}}{2} $$
The single-dollar-sign doesn't work by default, since it's too commonly used for other reasons. So $ \left(-b \pm \sqrt{b^2 - 4 a c} \right) /2 $ does not work, but \( \left(-b \pm \sqrt{b^2 - 4 a c} \right) /2 \) does.

Matt's equation, which now works.
\[ f(x) = \left\{ \begin{array}{ll} x^2 & {\rm if} \ \ x \leq c \\ 2x & {\rm if} \ \ x > c \\ \end{array} \right. \]
Aside: As of 2012-10-3, I've edited my wikiacademia system a smidge to make this work as expected. My wiki engine was treating a \ at the end of the line as a "line continuation" character, and that was happening before mathjax. Now \\ at the end of a line is left unchanged (as it should be, with the first backslash escaping the second). Note that lines ending with one \ are still modified by sticking the next line on the end. (There were workarounds for the old behavior, namely "\\ " or "\cr" at the end of the line, but now they're not ended.) I guess I could also allow spaces at the start of the line with the latex blocks ... but haven't implemented that yet.
Noah's example, which also works now that \\ behaves as expected. (Note however that the indentation at the front of the line has been removed; the wikiacademia software treats that in a special way.)
\[ f(x) = \begin{cases} x^2 & x \leq c \ \\ 2x & x > c \\ \end{cases} \]

You can suppress all this sort of stuff with "code" tags.
\[ f(x) = \begin{cases} x^2 & x \leq c \ \\ 2x & x > c \\ \end{cases} \]
http://cs.marlboro.edu/ courses/ fall2012/dedhour/ wiki/ math
last modified Wednesday October 3 2012 10:45 pm EDT