Second time I ask a question here, and thanks for the good respond last time.
I want to display a formula, and when I test it with LaTeX Online Equation Editor, it works, but when I try to compile it I get errors.
Don't know what it is, and I got some other equations that's work when I added
$
before and after some math symbols. Not sure when or when not to use those.This is my equation, thankful if someone could correct it and explain what I did wrong and when I need
$
sign, before and after.Code: Select all
\begin{equation}
\label{eq:dct}
F(u,v) = \left (\frac{2}{N} \right )^{\frac{1}{2}} \left ( \frac{2}{M} \right )^{\frac{1}{2}} \sum_{i=0}^{N-1}\sum_{j=0}^{M-1} \Lambda(i,j)cos\left [ \frac{\pi u}{2 N}\left ( 2i +1 \right ) \right ]cos\left [ \frac{\pi v}{2 M}\left ( 2j +1 \right ) \right ] f(i,j)
\end{equation}
\textit{where}
\begin{equation}
\Lambda(i)\left\{\begin{matrix}
\frac{1}{\sqrt{2}} & for \varepsilon = 0
\\ 1 & otherwise
\end{matrix}\right.\end{equation}