[Tex/LaTex] how to write tan inverse function

math-modemath-operators

I want to write tan inverse function in my latex. I need to write tan inverse as it is and not as arctan. what is the code for that? I need to write an equation theta = tan inverse (x/y).

Best Answer

With amsmath, add \DeclareMathOperator{\taninv}{tan\,inverse} in the preamble and in the text use \taninv.

Example code:

\documentclass{article}
\usepackage{amsmath}

\DeclareMathOperator{\taninv}{tan\,inverse}

\begin{document}

\begin{equation*}
\theta=\taninv\frac{x}{y}
\end{equation*}

\end{document}

enter image description here

I've never seen such a notation. However, if you later want to stick to more common notation, it's sufficient you change the line into

\DeclareMathOperator{\taninv}{arctan}

or

\newcommand{\taninv}{\tan^{-1}}
Related Question