Sunday, August 07, 2005

equation with seperated lines

(1)

\begin{eqnarray}

ab &=& x^2 \nonumber \\

&=& y^2 \nonumber \\

&=& 3

\end{eqnarray}

(2)

\usepackage{amsmath}

\begin{align}

ab &=x^2 \nonumber\\

&=y^2 \nonumber\\

&=3

\end{align}

The second looks better even the fist one is recommended by the text book.