I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Products » LaTeX Equation Editor »

how to align equal signs?

richie.cruz\′s Photo
3 Jan 12, 6:54PM
(2 replies)
how to align equal signs?
Hi I would really appreciate if anybody would inform me how to align equal signs in the editor

so far I have

\begin{eqnarray}
 a^2+b^2&=&c^2\\
19^2+b^2&=&27^2\\
27^2-19^2&=&b^2\\
720-361&=&b^2\\
\sqrt{368}&=&\sqrt{b}\\
b&=&19.183
\end{eqnarray}
apparently the eqn array is suppose to line them up but it doesnt!
CodeCogs\′s Photo
3 Jan 12, 7:32PM
Try,

\begin{array}{rcl}
 a^2+b^2&=&c^2\\
19^2+b^2&=&27^2\\
27^2-19^2&=&b^2\\
720-361&=&b^2\\
\sqrt{368}&=&\sqrt{b}\\
b&=&19.183
\end{array}

You can change the {rcl} in the first line to get alternative alignments. 'r'=right; 'c'=center, 'l'=left If you use {r|c|l} the you get vertical lines between columns. Equally you can add horizontal lines between rows with \hline

Hope this helps
richie.cruz\′s Photo
4 Jan 12, 12:21AM
wow, thank you very much for the quick response!
Currently you need to be logged in to leave a message.