Results 1 to 2 of 2
Like Tree2Thanks
  • 2 Post By sbhatnagar

Math Help - Matrices in Latex

  1. #1
    Super Member Bernhard's Avatar
    Joined
    Jan 2010
    From
    Hobart, Tasmania, Australia
    Posts
    558
    Thanks
    2

    Matrices in Latex

    In the advanced algebra post I recently tried to use latex to express mathis using 3 x 3 matrices and had problems

    Here was my attempt to write the 3 x 3 identity matrix - I put the following code in between  and


    \left(\begin{array}{ccc}1&0&0\\0&1&0\\0&0&1\end{ar ray}\right)

    Can someone please tell me my error here?

    Further, does anyone know of a brief and easy to use document describing how to present matrices in latex?

    Peter
    Last edited by Bernhard; March 17th 2012 at 08:07 PM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member sbhatnagar's Avatar
    Joined
    Sep 2011
    From
    New Delhi, India
    Posts
    200
    Thanks
    17

    Re: Matrices in Latex

    Your TeX code is unbalanced.

    \left(\begin{array}{ccc}1&0&0\\0&1&0\\0&0&1\end{ar ray}\right)

    You left a space between "ar" and "ray". If you replace "ar ray" with "array", your code will work fine. Here's a more better way of creating matrices:

    1.
    \begin{pmatrix} a & b &c \\ d & e & f \\ g & h & i \end{pmatrix}

    \begin{pmatrix} a & b &c \\ d & e & f \\ g & h & i\end{pmatrix}

    2.

    \begin{bmatrix} a & b &c \\ d & e & f \\ g & h & i \end{bmatrix}

    \begin{bmatrix} a & b &c \\ d & e & f \\ g & h & i\end{bmatrix}

    3.
    \begin{vmatrix} a & b &c \\ d & e & f \\ g & h & i \end{vmatrix}

    \begin{vmatrix} a & b &c \\ d & e & f \\ g & h & i\end{vmatrix}

    4.
    \begin{Bmatrix} a & b &c \\ d & e & f \\ g & h & i \end{Bmatrix}

    \begin{Bmatrix} a & b &c \\ d & e & f \\ g & h & i\end{Bmatrix}
    Last edited by sbhatnagar; March 18th 2012 at 12:32 AM.
    Thanks from princeps and Bernhard
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: December 10th 2011, 06:40 PM
  2. Replies: 2
    Last Post: November 25th 2010, 06:34 PM
  3. Total matrices and Commutative matrices in GL(r,Zn)
    Posted in the Advanced Algebra Forum
    Replies: 8
    Last Post: August 16th 2010, 02:11 AM
  4. LaTex inside of LaTex
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: November 12th 2009, 11:07 AM
  5. Matrices represented by Symmetric/Skew Symmetric Matrices
    Posted in the Advanced Algebra Forum
    Replies: 7
    Last Post: October 25th 2008, 05:06 PM

Search Tags


/mathhelpforum @mathhelpforum