LaTex 数学之运算符

LaTex 数学之运算符

数学模式中的字符通常以斜体显示,但有时某些函数名称需要不同的格式,这可以通过使用L A T E X中定义的运算符来完成。
三角函数、对数等可以通过一些特殊命令写入文档,如下例所示:

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

在这里插入图片描述

这些命令将以直立(罗马)文本而不是斜体打印函数名称。

不同上下文中的运算符

一些运算符可以采用以特殊方式处理的参数,例如限制lim。

\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}

在这里插入图片描述

\to宏需要这个包amsmath;没有这个包,\rightarrow必须使用。

请注意限制声明如何包含下标。有关可用运算符的完整列表,请参阅参考指南。

某些语言可能会添加或更改某些命令。

定义自己的运算符

如果您需要添加个性化运算符以罗马字体而不是斜体显示,请使用\DeclareMathOperator

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

在这里插入图片描述

该命令\DeclareMathOperator有两个参数,第一个是新操作符的名称,第二个是要显示的文本。要使此命令起作用,您必须在序言中 导入包amsmath

\usepackage { amsmath }

如果您需要定义的运算符使用下标作为\lim运算符,则可以稍微修改该命令,在这种情况下使用\DeclareMathOperator*.

参考指南

数学运算符的完整列表

操作符呈现
\cos cos ⁡ {\displaystyle \cos } cos
\csc csc ⁡ {\displaystyle \csc } csc
\exp exp ⁡ {\displaystyle \exp } exp
\ker ker ⁡ {\displaystyle \ker } ker
\limsup lim sup ⁡ {\displaystyle \limsup } limsup
\min min ⁡ {\displaystyle \min } min
\sinh sinh ⁡ {\displaystyle \sinh } sinh
\arcsin arcsin ⁡ {\displaystyle \arcsin } arcsin
\cosh cosh ⁡ {\displaystyle \cosh } cosh
\deg deg ⁡ {\displaystyle \deg } deg
\gcd gcd ⁡ {\displaystyle \gcd } gcd
\lg lg ⁡ {\displaystyle \lg } lg
\ln ln ⁡ {\displaystyle \ln } ln
\Pr Pr ⁡ {\displaystyle \Pr } Pr
\supsup
\arctan arctan ⁡ {\displaystyle \arctan } arctan
\cotcot
\det det ⁡ {\displaystyle \det } det
\hom hom ⁡ {\displaystyle \hom } hom
\limlim
\log log ⁡ {\displaystyle \log } log
\secsec
\tan tan ⁡ {\displaystyle \tan } tan
\arg arg ⁡ {\displaystyle \arg } arg
\coth coth ⁡ {\displaystyle \coth } coth
\dim dim ⁡ {\displaystyle \dim } dim
\liminf lim inf ⁡ {\displaystyle \liminf } liminf
\max max ⁡ {\displaystyle \max } max
\sin sin ⁡ {\displaystyle \sin } sin
\tanh tanh ⁡ {\displaystyle \tanh } tanh
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值