Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-06-22 18:58:01 -0600

Typeset input is entered into AskBot using LaTeX snippets which is then rendering using a JavaScript program called MathJax. For example, to input the integral mentioned in the question and indicate it's value is $\sqrt{\pi}$, you could input the following:

$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$

This is then rendered as follows:

$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$

Note that the double dollar signs ($$) are used to delimit the LaTeX input; everything between the double dollar signs are the LaTeX command that lead to the typeset expression. Use of double dollar signs indicate that the expression should be set on it's own line in display mode. You can use single dollar signs to include a simple math expression inline. For example, $\sqrt{\pi}$ by itself is input as

$\sqrt{\pi}$

LaTeX itself is a huge system that can be used to create large documents - but you need only use small snippets for this site. This is actually a gentle way to get started with this valuable tool, anyway! There is plenty of information on LaTeX available online. A great tutorial for using the MathJax version of LaTeX is available here.