What is wrong with this code?

• Mar 6th 2008, 09:41 PM
heathrowjohnny
What is wrong with this code?
$\displaystyle E(S^{2}) = \frac{1}{n-1} \left{\sum E(X_{i}^{2}) - \frac{1}{n} E \left[ \left(\sum X_{i}\right)^{2}\right] \right}$
Its not parsing.
• Mar 6th 2008, 09:49 PM
heathrowjohnny
never mind: figured it out

$\displaystyle \displaystyle E(S^{2}) = \frac{1}{n-1} \left \{\sum E(X_{i}^{2}) - \frac{1}{n} E \left[ \left(\sum X_{i}\right)^{2}\right] \right \}$
• Mar 6th 2008, 10:13 PM
CaptainBlack
Quote:

Originally Posted by heathrowjohnny
$\displaystyle E(S^{2}) = \frac{1}{n-1} \left{\sum E(X_{i}^{2}) - \frac{1}{n} E \left[ \left(\sum X_{i}\right)^{2}\right] \right}$
Its not parsing.

1. you need $$tags rather than ""s 2. as {} are meta grouping delimiters used by LaTeX if you want to uses them as parentheses you have to preceed them with "\" [tex] \displaystyle E(S^{2}) = \frac{1}{n-1} \left\{\sum E(X_{i}^{2}) - \frac{1}{n} E \left[ \left(\sum X_{i}\right)^{2}\right] \right\}$$

produces:

$\displaystyle \displaystyle E(S^{2}) = \frac{1}{n-1} \left\{\sum E(X_{i}^{2}) - \frac{1}{n} E \left[ \left(\sum X_{i}\right)^{2}\right] \right\}$

3. As far as I am aware the \displaystyle is redundant in the LaTeX implemented here.

RonL
• Mar 6th 2008, 10:17 PM
heathrowjohnny
Thanks. I was using the $to illustrate the code. • Mar 7th 2008, 02:54 AM CaptainBlack Quote: Originally Posted by heathrowjohnny Thanks. I was using the$ to illustrate the code.

[noparse][/noparse] tags will display the LaTeX including
tags.

RonL