Latex公式总结——持续更新

目录

  • 说明
    • 空格
    • 省略号
  • 常用希腊字母
  • 常用公式
    • 分式
    • 偏导
    • 上下标
    • 矩阵
  • 常用函数
    • 求和

说明

$$......$$表示居中
$.........$ 加入公式(不居中)

空格

类型代码
a b a\qquad b ab$a\qquad b$
a b a\quad b ab$a\quad b$
a b a\ b a b$a\ b$
a b a\;b ab$a\;b$
a b a\,b ab$a\,b$
a b ab ab$ab$
a ⁣ b a\!b ab$a\!b$

省略号

效果公式
θ 0 , ⋯ , θ n \theta_0,\cdots,\theta_n θ0,,θn$\theta_0,\cdots,\theta_n$
⋮ \vdots $\vdots$
⋱ \ddots $\ddots$
θ 0 , … , θ n \theta_0,\ldots,\theta_n θ0,,θn$\theta_0,\ldots,\theta_n$

常用希腊字母

$$\alpha、\beta、\gamma、\mu、\lambda、\sigma、\theta、\omega$$

α 、 β 、 γ 、 μ 、 λ 、 σ 、 θ 、 ω \alpha、\beta、\gamma、\mu、\lambda、\sigma、\theta、\omega αβγμλσθω

$$\Alpha、\Beta、\Gamma、\Mu、\Lambda、\Sigma、\Theta、\Omega$$

A 、 B 、 Γ 、 M 、 Λ 、 Σ 、 Θ 、 Ω \Alpha、\Beta、\Gamma、\Mu、\Lambda、\Sigma、\Theta、\Omega ABΓMΛΣΘΩ

常用公式

分式

$${\frac{x}{y}}$$

x y {\frac{x}{y}} yx

偏导

$$\frac{\partial J}{\partial \theta}$$

∂ J ∂ θ \frac{\partial J}{\partial \theta} θJ

上下标

#下标:$$x_{1}$$  
#或者:$$x_1$$

x 1 x_{1} x1

#上标:$$x_1$$
#或者:$$x_{1}$$

x 1 x^{1} x1

矩阵

#\\qquad为大空格,&的个数表示两个元素间距大小,\vdots表示竖向的省略号。
$$\Theta={\left[ \begin{array}{c}
\theta_0 \\
\theta_1 \\
\vdots \\
\theta_n
\end{array} 
\right ]} 
\qquad 
{X={\left[ \begin{array}{c}
x_{11} & x_{12} & x_{13} \\ 
x_{21} & x_{22} & x_{23}\\
\vdots & \vdots  &\vdots\\
x_{n1 } & x_{n2}  & x_{n3}
\end{array} 
\right ]} }$$

Θ = [ θ 0 θ 1 ⋮ θ n ] X = [ x 11 x 12 x 13 x 21 x 22 x 23 ⋮ ⋮ ⋮ x n 1 x n 2 x n 3 ] \Theta={\left[ \begin{array}{c} \theta_0 \\ \theta_1 \\ \vdots \\ \theta_n \end{array} \right ]} \qquad {X={\left[ \begin{array}{c} x_{11} & x_{12} & x_{13} \\ x_{21} & x_{22} & x_{23}\\ \vdots & \vdots &\vdots\\ x_{n1 } & x_{n2} & x_{n3} \end{array} \right ]} } Θ=θ0θ1θnX=x11x21xn1x12x22xn2x13x23xn3

常用函数

求和

$$\sum_{i=1}^{n}i$$

∑ i = 1 n i \sum_{i=1}^{n}i i=1ni


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部