# [texhax] Problem with eqnarray

Morten Høgholm morten.hoegholm at latex-project.org
Fri Apr 8 09:42:02 CEST 2005

On Fri, 08 Apr 2005 02:30:49 -0500 (CDT), Modhurita Mitra
<mmitra at astro.uiuc.edu> wrote:

> Hi,
>  	I am having trouble compiling my file which contains an eqnarray. At
> the third line in the following expression (the one beginning with -
> \cos, I get an error.
>
> \begin{eqnarray}
>   f(x,y,z) & = & P \times \\
>   \exp \left \[ -\left( \frac{ \cos \theta \cos \phi (x - \mu_x) \\
>                             + \sin \theta (y - \mu_y) \\
>                    - \cos \theta \sin \phi (z - \mu_z)}{A_x} \right)^2 \\

\left and \right can only be used in the same line so you need to use