[Tex/LaTex] Undefined control sequence in align

alignmath-operators

\begin{align}
\label{eq:x}
x = \sign{a} \cdotp \sign{b} \cdotp \min(\lvert a \rvert,\lvert b \rvert)
\end{align}

Above gives me Undefined control sequence. Any ideas would be helpful.

Best Answer

Taking a hint from egreg, add

\newcommand*{\sign}{\mathop{\mathrm{sign}}\nolimits}

to your document preamble which would provide a sign operator. However, since you're loading amsmath,

\DeclareMathOperator{\sign}{sign}

would be more robust.

Related Question