1. 程式人生 > 其它 >常用Letex公式語法

常用Letex公式語法

技術標籤:Letexletex

以下面的公式為例:

J^{T}\cdot v=\left(\begin{array}{ccc} \frac{\partial y_{1}}{\partial x_{1}} & \cdots & \frac{\partial y_{m}}{\partial x_{1}}\\ \vdots & \ddots & \vdots\\ \frac{\partial y_{1}}{\partial x_{n}} & \cdots & \frac{\partial y_{m}}{\partial x_{n}} \end{array}\right)\left(\begin{array}{c} \frac{\partial l}{\partial y_{1}}\\ \vdots\\ \frac{\partial l}{\partial y_{m}} \end{array}\right)=\left(\begin{array}{c} \frac{\partial l}{\partial x_{1}}\\ \vdots\\ \frac{\partial l}{\partial x_{n}} \end{array}\right)

其Letex原始碼為:

J^{T} \cdot v = 
\left(\begin{array}{ccc} 
\frac{\partial y_{1}}{\partial x_{1}} & \cdots & \frac{\partial y_{m}}{\partial x_{1}}\\ 
\vdots & \ddots & \vdots\\ 
\frac{\partial y_{1}}{\partial x_{n}} & \cdots & \frac{\partial y_{m}}{\partial x_{n}} \end{array}\right)

\left(\begin{array}{c} \frac{\partial l}{\partial y_{1}}\\ 
                       \vdots\\ 
                       \frac{\partial l}{\partial y_{m}} 
      \end{array}\right) = 

\left(\begin{array}{c} \frac{\partial l}{\partial x_{1}}\\ 
                \vdots\\ 
                \frac{\partial l}{\partial x_{n}} 
                \end{array}\right)

指數:^{值}

一個點:\cdot

左括號:\left(

右括號:\right)

陣列左邊:\begin{array}{幾個c}

陣列右邊:\end{array}

{ccc}表示多少列,3個c表示3列

分數:\frac{分子}{分母}

偏微分號:\partial

水平三個點:\cdots

豎直三個點:\vdots

斜向三個點:\ddots

換行:\\

下標:值_下標

後面用到再繼續新增!