Is there any difference between
\DeclareMathOperator{\erf}{erf}
and
\def{\erfc}{\mathop{\mathrm{erfc}}}
apart of the fact that \DeclareMathOperator is defined in amsmath package?
Is there any difference between
\DeclareMathOperator{\erf}{erf}
and
\def{\erfc}{\mathop{\mathrm{erfc}}}
apart of the fact that \DeclareMathOperator is defined in amsmath package?
\mathopis a TeX primitive and does not define a new command/macro. In any case, note that\DeclareMathOperatordefines robust commands, and that it has a *-form for managing the behavior of the newly defined operator wrt. “limits”. – GuM Jan 07 '17 at 02:54