Results 1 to 5 of 5

Math Help - What is wrong with this code?

  1. #1
    Member
    Joined
    Jan 2008
    Posts
    154

    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.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member
    Joined
    Jan 2008
    Posts
    154
    never mind: figured it out

     \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 \}
    Last edited by heathrowjohnny; March 6th 2008 at 11:07 PM.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by heathrowjohnny View Post
    $\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 [tex] 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\}[/tex]

    produces:

     \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
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Member
    Joined
    Jan 2008
    Posts
    154
    Thanks. I was using the $ to illustrate the code.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by heathrowjohnny View Post
    Thanks. I was using the $ to illustrate the code.
    [noparse][/noparse] tags will display the LaTeX including
    tags.

    RonL
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. [SOLVED] am I wrong here or is my textbook wrong??
    Posted in the Algebra Forum
    Replies: 5
    Last Post: September 25th 2011, 06:13 PM
  2. What's wrong in this code ?
    Posted in the Math Software Forum
    Replies: 2
    Last Post: March 19th 2010, 05:00 AM
  3. Replies: 6
    Last Post: August 12th 2009, 03:15 AM
  4. wrong code at matlab - meshgrid and 3d plot
    Posted in the Math Software Forum
    Replies: 2
    Last Post: June 30th 2009, 01:17 AM
  5. Something is wrong with my code
    Posted in the Math Software Forum
    Replies: 1
    Last Post: June 27th 2009, 10:37 PM

Search Tags


/mathhelpforum @mathhelpforum