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).
[Tex/LaTex] how to write tan inverse function
math-modemath-operators
Related Solutions
After spending some time looking for this, I found this post that suggested defining the new commands for the omitted inverse trig functions.
Here I've augmented that with the full suit of hyperbolic and inverse hyperbolic functions for convenience, as google doesn't turn anything up for this search, nor does the other post come up if one is searching for the inverse hyperbolic functions, specifically.
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arcsec}{arcsec}
\DeclareMathOperator{\arccot}{arcCot}
\DeclareMathOperator{\arccsc}{arcCsc}
\DeclareMathOperator{\arccosh}{arcCosh}
\DeclareMathOperator{\arcsinh}{arcsinh}
\DeclareMathOperator{\arctanh}{arctanh}
\DeclareMathOperator{\arcsech}{arcsech}
\DeclareMathOperator{\arccsch}{arcCsch}
\DeclareMathOperator{\arccoth}{arcCoth}
\begin{document}
\[
\sech x \cschx \arcsec x \arccot x \arccsc x \arccosh x \arcsinh x \arctanh x \arcsech x arccsch x \arccoth x
\]
\end{document}
With a handier syntax:
\documentclass{article}
\usepackage{geometry} % more generous width
\usepackage{amsmath}
\usepackage{xparse}
\ExplSyntaxOn
\NewDocumentCommand{\MeijerG}{smmmm}
{
\IfBooleanTF{#1}
{
\vic_meijerg:nnnnnn { #2 } { #3 } { #4 } { #5 } { small } { }
}
{
\vic_meijerg:nnnnnn { #2 } { #3 } { #4 } { #5 } { } { \; }
}
}
\seq_new:N \l__vic_meijerg_args_in_seq
\seq_new:N \l__vic_meijerg_args_out_seq
\cs_new_protected:Nn \vic_meijerg:nnnnnn
{
\seq_set_split:Nnn \l__vic_meijerg_args_in_seq { | } { #3 }
\seq_clear:N \l__vic_meijerg_args_out_seq
\seq_map_inline:Nn \l__vic_meijerg_args_in_seq
{
\seq_put_right:Nn \l__vic_meijerg_args_out_seq
{
\begin{#5matrix} ##1 \end{#5matrix}
}
}
G\sp{#1}\sb{#2}
\left(
\seq_use:Nn \l__vic_meijerg_args_out_seq { #6\middle|#6 }
#6\middle|#6
#4
\right)
}
\ExplSyntaxOff
\begin{document}
In line
$
\MeijerG*
{n,m:m_1,n_1:m_2,n_2} % superscript
{q,p:p_1,q_1:p_2,q_2} % subscript
{
1-\alpha-b_1,\ldots,1-\alpha-b_q\\
1-\alpha-a_1,\ldots,1-\alpha-a_p
|
a_{11},\ldots,a_{1p_1} \\
b_{11},\ldots,b_{1q_1}
|
a_{21},\ldots,a_{2p_1}\\
b_{21},\ldots,b_{2q_1}
}
{\frac{x}{z},\frac{y}{z}}
$
and $\MeijerG*{1,1}{1,1}{ 0 \\ 0 } { x }$. Display:
\begin{gather}
\MeijerG
{n,m:m_1,n_1:m_2,n_2} % superscript
{q,p:p_1,q_1:p_2,q_2} % subscript
{
1-\alpha-b_1,\ldots,1-\alpha-b_q\\
1-\alpha-a_1,\ldots,1-\alpha-a_p
|
a_{11},\ldots,a_{1p_1} \\
b_{11},\ldots,b_{1q_1}
|
a_{21},\ldots,a_{2p_1}\\
b_{21},\ldots,b_{2q_1}
}
{\frac{x}{z},\frac{y}{z}}
\\
\MeijerG{1,1}{1,1}{ 0 \\ 0 } { x }
\end{gather}
\end{document}
The *-version is for printing the formula inline.
Best Answer
With
amsmath
, add\DeclareMathOperator{\taninv}{tan\,inverse}
in the preamble and in the text use\taninv
.Example code:
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
or