Markdown整理备忘(三)-- 函数及常见数学公式

函数

三角函数

函数说明语法效果
正弦函数$\sin\theta$ sin ⁡ θ \sin\theta sinθ
余弦函数$\cos\theta$ cos ⁡ θ \cos\theta cosθ
正切函数$\tan\theta$ tan ⁡ θ \tan\theta tanθ
-$\arcsin\frac{L}{r}$ arcsin ⁡ L r \arcsin\frac{L}{r} arcsinrL
-$\arccos\frac{T}{r}$ arccos ⁡ T r \arccos\frac{T}{r} arccosrT
-$\arctan\frac{L}{T}$ arctan ⁡ L T \arctan\frac{L}{T} arctanTL
-$\sinh g$ sinh ⁡ g \sinh g sinhg
-$\cosh h$ cosh ⁡ h \cosh h coshh
-$\tanh i$ tanh ⁡ i \tanh i tanhi

其他函数

函数说明语法效果
-$\arg x$ arg ⁡ x \arg x argx
-$\deg x$ deg ⁡ x \deg x degx
-$\det x$ det ⁡ x \det x detx
-$\dim x$ dim ⁡ x \dim x dimx
-$\exp\!t$ exp ⁡ ​ t \exp\!t expt
-$\gcd(T,U,V,W,X)$ gcd ⁡ ( T , U , V , W , X ) \gcd(T,U,V,W,X) gcd(T,U,V,W,X)
-$\hom x$ hom ⁡ x \hom x homx
-$\inf s$ inf ⁡ s \inf s infs
-$\ker x$ ker ⁡ x \ker x kerx
-$\lg X$ lg ⁡ X \lg X lgX
-$\liminf I$ lim inf ⁡ I \liminf I liminfI
-$\limsup S$ lim sup ⁡ S \limsup S limsupS
-$\lim_{t\to n}T$ lim ⁡ t → n T \lim_{t\to n}T limtnT
-$\ln X$ ln ⁡ X \ln X lnX
-$\log_\alpha X$ log ⁡ α X \log_\alpha X logαX
-$\log X$ log ⁡ X \log X logX
-$\max H$ max ⁡ H \max H maxH
-$\min L$ min ⁡ L \min L minL
-$\Pr x$ Pr ⁡ x \Pr x Prx
-$\sup t$ sup ⁡ t \sup t supt
-$\operatorname{argsh}k$ argsh ⁡ k \operatorname{argsh}k argshk
-$\operatorname{argch}l$ argch ⁡ l \operatorname{argch}l argchl
-$\operatorname{argth}m$ argth ⁡ m \operatorname{argth}m argthm
-$\operatorname{sh}j$ sh ⁡ j \operatorname{sh}j shj
-$\operatorname{ch}h$ ch ⁡ h \operatorname{ch}h chh
-$\operatorname{th}i$ th ⁡ i \operatorname{th}i thi

说明

也许你会注意到很多函数名称,LaTex语法不能直接转义得到,此时可以使用\operatorname{}的方法。
这里总结两种思路

  1. 使用\operatorname{函数名称},这种比较简单
  2. 使用两个支持的函数名称拼接起来,比如 arg ⁡ max ⁡ \arg\max argmax, 其LaxTex代码为 $\arg\max$ ,
    当然也可使用$\operatorname{argmax}$,这两种具体的区别可以参见下表
Latex代码效果说明
$\operatorname{argmax}$ argmax ⁡ \operatorname{argmax} argmax连接紧密中间无空隙
$\arg\max$ arg ⁡ max ⁡ \arg\max argmax中间有点空隙
$\arg\!\max$ arg ⁡ ​ max ⁡ \arg\!\max argmax可以使用锁紧空格的方式消除空格

数学公式

上下标

  • $\sum_{i=1}^{n}$ ,行内公式 显示为: ∑ i = 1 n \sum_{i=1}^{n} i=1n
  • $$\sum_{i=1}^{n}$$ ,行间公式 显示为: ∑ i = 1 n \sum_{i=1}^{n} i=1n
  • $\sum_\limits{i=1}^{n}$ ,行内公式强制显示多行: ∑ i = 1 n \sum\limits_{i=1}^{n} i=1n
  • $$\sum_\nolimits{i=1}^{n}$$ ,行间公式强制显示一行: ∑ i = 1 n \sum\nolimits_{i=1}^{n} i=1n
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值