I have an equation which I intend to break into two lines, in a two column environment.
\begin{equation}
f(x, y) = G_{min} + { \floor*{
\left(
\frac{D(x, y) - D_{min}}{D_{th} - D_{min}} \times \eta
\right) + 0.5}
\\
\times \floor*{
\frac{G_{max} - G_{min}}{\eta}
}
}
\label{eqn_1}
\end{equation}
The above equation mixes into the right column from the left, which is understandable. To break the equation into multiple lines, I thus use multline:
\begin{multline}
f(x, y) = G_{min} + { \floor*{
\left(
\frac{D(x, y) - D_{min}}{D_{th} - D_{min}} \times \eta
\right) + 0.5}
\\
\times \floor*{
\frac{G_{max} - G_{min}}{\eta}
}
}
\label{eqn_1}
\end{multline}
While this looks fine and is what I wanted, Overleaf shows me the two following errors:
Missing } inserted.
Extra }, or forgotten $.
Not quite sure how to resolve these two errors, as I can't insert $ inside multline, and nor can I find any unclosed { brackets.
What am I missing?
\min
(or\mathrm{min}
) and similarly for max. Don't use the default math italic for multi-letter identifiers.}
in the first row and an extra}
in the second.