Results 1 to 4 of 4

Math Help - pmatrix error

  1. #1
    Member
    Joined
    Feb 2011
    Posts
    147
    Thanks
    3

    pmatrix error

    In this thread, I couldn't get the following to work.

    \begin{pmatrix}x_1\\\vdots\\x_n\end{pmatrix}=\begi n{pmatrix}\alpha\wedge x_1\\\vdots\\\alpha\wedge x_n\end{pmatrix}

    It gives
    \begin{pmatrix}x_1\\\vdots\\x_n\end{pmatrix}=\begi  n{pmatrix}\alpha\wedge  x_1\\\vdots\\\alpha\wedge x_n\end{pmatrix}

    I had to interject "[/tex][tex]" after "=". Why is that?

    PS: I have no idea where the space in the second "begin" comes from. It's not there when I edit the text.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,545
    Thanks
    780

    Re: pmatrix error

    I also noticed that spaces are sometimes inserted into LaTeX commands, which makes them invalid.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4

    Re: pmatrix error

    Quote Originally Posted by ymar View Post
    In this thread, I couldn't get the following to work.

    \begin{pmatrix}x_1\\\vdots\\x_n\end{pmatrix}=\begi n{pmatrix}\alpha\wedge x_1\\\vdots\\\alpha\wedge x_n\end{pmatrix}

    It gives
    \begin{pmatrix}x_1\\\vdots\\x_n\end{pmatrix}=\begi  n{pmatrix}\alpha\wedge  x_1\\\vdots\\\alpha\wedge x_n\end{pmatrix}

    I had to interject "[/tex][tex]" after "=". Why is that?

    PS: I have no idea where the space in the second "begin" comes from. It's not there when I edit the text.
    Seperating LaTeX special characters with spaces gives:

    \begin{pmatrix}x_1 \\ \vdots \\ x_n \end{pmatrix} = \begin{pmatrix}\alpha \wedge  x_1 \\ \vdots \\ \alpha \wedge x_n \end{pmatrix}

    [tex]\begin{pmatrix}x_1 \\ \vdots \\ x_n \end{pmatrix} = \begin{pmatrix}\alpha \wedge x_1 \\ \vdots \\ \alpha \wedge x_n \end{pmatrix}[/tex]

    instead of:

    [tex]\begin{pmatrix}x_1\\\vdots\\x_n\end{pmatrix}=\begi n{pmatrix}\alpha\wedge x_1\\\vdots\\\alpha\wedge x_n\end{pmatrix}[/tex]

    (the space in the second begin is not really there, I don't know why it renders that way)

    Obviously somewhere in there the interpreter is having difficulty in determining where one thing ends and the next starts - possibly causing a buffer overflow. Also though not all the spaces I have put in are essential to getting this to render, putting in spaces make the LaTeX more readable.

    The problem could also be due to vBulletin putting in an extra space when it needs to stop for breath in a long string without spaces. Which seems to be the case, as demonstrated with the following example with just one space inserted before the second \begin:

    [tex]\begin{pmatrix}x_1\\\vdots\\x_n\end{pmatrix} =\begin{pmatrix}\alpha\wedge x_1\\\vdots\\\alpha\wedge x_n\end{pmatrix}[/tex]

    \begin{pmatrix}x_1\\\vdots\\x_n\end{pmatrix} =\begin{pmatrix}\alpha\wedge  x_1\\\vdots\\\alpha\wedge x_n\end{pmatrix}

    CB
    Last edited by CaptainBlack; October 22nd 2011 at 11:19 PM.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor

    Joined
    Mar 2011
    From
    Tejas
    Posts
    3,401
    Thanks
    762

    Re: pmatrix error

    i have noticed that with vmatrix, bmatrix and pmatrix commands the \begin and \end parts often need an extra space in front to parse correctly (the delimiters often fail to display if i don't do this).

    also, "new row" commands within these commands (the \\ at the end of every row) often need an extra space, especially if you are using something like \greekletter as the first character of a subsequent row (i think this confuses the interpreter).
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. best fit, minimizing point-to-line error, not y error
    Posted in the Advanced Applied Math Forum
    Replies: 1
    Last Post: March 4th 2011, 05:16 AM
  2. Relative Error & Maximum Error
    Posted in the Math Topics Forum
    Replies: 1
    Last Post: March 10th 2010, 01:40 AM
  3. Replies: 1
    Last Post: December 10th 2009, 10:48 PM
  4. error and percent error
    Posted in the Algebra Forum
    Replies: 2
    Last Post: October 30th 2009, 10:27 AM
  5. Replies: 0
    Last Post: April 1st 2009, 04:22 AM

Search Tags


/mathhelpforum @mathhelpforum