I've added and deleted dollar signs until my eyes are blurry. Can anyone see what's wrong with this set up?
Code: Select all
$d_{H}(X,Y)=\left\{$ \begin{array}{ll} $ \left|x_{1}-y_{1}\right|$,
& $\mbox{if $x_{2}=y_{2}$} $\\ $\left|x_{1}\right|+\left|x_{2}-y_{2}\right|
+\left|y_{1}\right|$,
& $\mbox{if $x_{2} \neq y_{2}$}$ \\ $\left|x_{2}-y_{2}\right|$,
& $\mbox{if $x_{2}=y_{2}=0$}$ \end{array} $\right\}$.
It's supposed to be a piecewise function with three parts. I'm pretty sure I have too many $ in there, but TXC keeps giving me a missing $ error and I can't figure out where it is and am afraid I've added too many now, because I'm now getting a fatal error upon building. It was working and formatting and building just fine an hour ago.
Thanks in advance,
PGY