I am writing a paper and have been stuck on a certain cased equation within it for a few hours. Here's what I'm trying to write. Disregard that "mod6" and all the "primes" and stuff. Here's what I've written.
Code: Select all
\begin{equation}
H=
\begin{cases}
60^\circ\times\frac{G-B}{\Delta} & \quad \text{if $Max(R,G,B)=R$} \\
60^\circ\times\frac{B-R}{\Delta}+ 2 & \quad \text{if $Max(R,G,B)=G$} \\
60^\circ\times\frac{R-G}{\Delta}+ 4 & \quad \text{if $Max(R,G,B)=B$}
\end{cases}
\end{equation}
\quad
and \text
enters. When I remove all the cases and just write the equations alone, they work fine. Can someone please help me fix this. Thanks in advance.