I'm trying to write hyperbolic functions like sech, csch, etc,
Since amsmath doesn't recognize them in the form \sech
, \csch
, …
I wrote a preamble like \DeclareMathOperator{\sech}{sech}
but I get this error:
! LaTex Error: Command \tanh already defined.
Or name \end... illegal, see p. 192 of the manual.
how should I write the hyperbolic functions?
Best Answer
not all the hyperbolic functions are defined in
amsmath
(actually, inamsopn.sty
). only\sinh
,\cosh
,\tanh
and\coth
are defined there.you can define the others exactly like you've shown for
\sech
, and can check inamsopn.sty
if you encounter any other conflicts.amsopn.sty
was never meant to be exhaustive. it covers only the operator names found most frequently in ams publications as of the time it was compiled. there are surely many other possibilities.