tan 反函數的寫法

tan 反函數的寫法

我想在我的乳膠中編寫 tan 反函數。我需要按原樣寫 tan 逆函數而不是 arctan 函數。代碼是什麼?我需要寫一個方程式 theta = tan inverse (x/y)。

答案1

amsmath\DeclareMathOperator{\taninv}{tan\,inverse}在序言中添加並在正文中使用\taninv

範例程式碼:

\documentclass{article}
\usepackage{amsmath}

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

\begin{document}

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

\end{document}

在此輸入影像描述

我從來沒有見過這樣的記號。但是,如果您以後想堅持使用更常見的表示法,只需將該行更改為

\DeclareMathOperator{\taninv}{arctan}

或者

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

相關內容