LaTeX

We have added support for LaTeX formatting (backslash \ has to be escaped, so in your LaTeX code you have to replace \ with \\). There is no live preview.

Users of NoScript and similar javascript blockers may need to whitelist mathjax.org

It works like this:

$$latex syntax here$$


Some examples:

$$P(A|B)= \\frac{P(B|A)*P(A)}{P(B)}$$


$$P(A|B)= \frac{P(B|A)*P(A)}{P(B)}$$

$$\\omega_0=\\frac{1}{M}\\sum{y_i} - \\frac{\\omega_1}{M}\\sum{x_i}$$


$$\omega_0=\frac{1}{M}\sum{y_i} - \frac{\omega_1}{M}\sum{x_i}$$

$$\\omega_1=\\frac{M\\sum{{x_i}{y_i}}-\\sum{x_i}\\sum{y_i}}{M\\sum{x_i^2}-(\\sum{x_i})^2}$$


$$\omega_1=\frac{M\sum{{x_i}{y_i}}-\sum{x_i}\sum{y_i}}{M\sum{x_i^2}-(\sum{x_i})^2}$$

Available symbols and codes are here: artofproblemsolving.com

Sandbox to test and see how your code works: MathJax in Action

Gundega
7.5k1241

This is awesome.
(25 Dec '11, 20:25)
Very useful! Users of NoScript and similar javascript blockers may need to whitelist mathjax.org.
(25 Dec '11, 22:49)
Note that this apparently does not work in comments: $$P(A|B)= \frac{P(B|A)*P(A)}{P(B)}$$ I had been getting MathJax configuration messages recently, but don't seem to be today. @Gundega, was something fixed?
(25 Jan '12, 13:28)
@rseiter As you see, it does work in comments, it just doesn't work for the person who posted comment without refreshing the page (because commenting uses Ajax, and the MathJax works only onLoad, its not Live event). And no, I havent done anything with MathJax, but the javascript itself is included from the author website, so maybe they released new version ?
(25 Jan '12, 14:17)

 2 $$P(Happy\ |\ Latex) = \frac{1}{\sqrt{\pi}} \int_{-\infty}^{\infty} e^{-x^2} dx$$ answered 25 Dec '11, 21:24 sfjjhs 1.4k●12
 1 Hurray. Testing: $$P(A|B) = \dfrac{P(B|A)P(A)}{P(B)}$$ it works! answered 25 Dec '11, 20:21 Anne Paulson 4.2k●4●20
 1 $$X_{mas}=\sum{M}{er^2}{y_i}$$ answered 25 Dec '11, 21:03 EllenL 3.1k●5●22
 1 Testing... $$P(A|B) = \frac{P(B|A)P(A)}{P(B)}$$ $$\zeta = \left[\left\{\begin{array}{lccr} \alpha & \beta & \gamma & \kappa \\ a & b & c & d \\ 1 & 2 & 3 & 4 \end{array}\right\}\right]$$ answered 25 Dec '11, 22:37 Wasif Hossain 542●1●2●18 works great! (25 Dec '11, 22:50) Wasif Hossain
 0 $$RMS=\sqrt{\dfrac{\sum_{i=0}^n (x2_i - x1_i)^2 } {n} }$$ answered 25 Jan '12, 12:51 egoots 2.9k●2●20
 0 this is a test will be deleted $$\bar X$$ answered 26 Feb '12, 22:09 jimgb ♦ 5.6k●8●54 Nooo, dont delete it, write something nice! (26 Feb '12, 22:22) Gundega 1 Can I use it in comments, too? $$\theta = {\underbrace{\left(X^TX + \lambda\begin{bmatrix} 0 &&&& \\ & 1 &&& \\ && 1 &&\\ &&& \ddots & \\ &&&& 1 \end{bmatrix}\right)}_{\mathrm{invertable}}}^{-1}X^Ty$$ (28 Feb '12, 09:40) rhasarub It works in comments (despite what I said above ;-). As @Gundega noted, the person who posts the comment does not see the formatted version until they refresh. (28 Feb '12, 11:57) rseiter ♦ Oh, blind me didn't read the comments, it seems ;) (28 Feb '12, 14:51) rhasarub And what about using it $\sqrt{\mathrm{inline}}$? Doesn't work, what a pity. (08 Mar '12, 15:24) rhasarub That is odd given that the MathJax sandbox link @Gundega posted supports that syntax. Should this be considered an Aiqus bug? (08 Mar '12, 15:41) rseiter ♦ 1 @rseiter "it's not a bug, it's a feature" cough and not particularly Aiqus, but OSQA in general. Same reason you need to double escape \, OSQA engine does some fancy stuff with special characters. (08 Mar '12, 16:00) Gundega 1 What about $% E = m{c^2}$% ? @Gundega, apologies if you already know all about this, but this post looked like it might be helpful (esp. the idea about changing the default inline character to \$% http://meta.osqa.net/questions/55/can-osqa-provide-latex-support (08 Mar '12, 17:23) rseiter ♦
 toggle preview community wiki