跳到主要内容

Operators

数学模式下的字符通常以斜体显示,但有时某些函数名称需要不同的格式,这可以通过使用LATEX中定义的运算符来完成。

三角函数、对数等可以通过一些特殊的命令写在文件中,如下例所示:

Examples of mathematical operators:
\[
\sin(a + b) = \sin a \cos b + \cos b \sin a
.\]

编译结果如下:

不同环境下的运算符:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
Testing notation for limits
\[
\lim_{h \to 0 } \frac{f(x+h)-f(x)}{h}
.\]
This operator changes when used alongside
text \( \lim_{h \to 0} (x-h) \).
\end{document}

编译结果如下:

自定义运算符:

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\arctg}{arctg}
\begin{document}
User-defined operator for arctangent:
\[
\arctg \frac{\pi}{3} = \sqrt{3}
.\]
\end{document}

编译结果如下:

速查表:

\cos \csc \exp \ker \limsup \min \sinh \arcsin \cosh \deg \gcd \lg

\ln \Pr \sup \arctan \cot \det \hom \lim \log \sec \tan \arg \coth \dim \liminf \max \sin \tanh