latex 公式

note:
latex 只用\begin{equation}\end{equation}表示公式, markdown使用$$表示公式。

数学

  1. 基础数学运算
运算符号备注
乘法\times × \times ×
除法\div ÷ \div ÷
克罗内克积\otimes ⊗ \otimes
分数\frac{x}{y} x y \frac{x}{y} yx
不等于\neq ≠ \neq =
向下取整\lfloor x \rfloor ⌊ x ⌋ \lfloor x \rfloor x
向上取整\lceil x \rceil ⌈ x ⌉ \lceil x \rceil x
求和\sum_{i=1}^{l-1}k_{i}+1 ∑ i = 1 l − 1 k i + 1 \sum_{i=1}^{l-1}k_{i}+1 i=1l1ki+1
求和limits\sum\limits_{i=1}^{l-1}k_{i}+1 ∑ i = 1 l − 1 k i + 1 \sum\limits_{i=1}^{l-1}k_{i}+1 i=1l1ki+1
  1. 希腊字母
字母符号
α \alpha α\alpha
β \beta β\beta
θ \theta θ\theta
η \eta η\eta
  1. 期望
$\mathbb{E} \left \{ A \right \}$

E { A } \mathbb{E} \left \{ A \right \} E{A}

  1. 分布
$\textbf{s}_{n,k} \sim \mathcal{CN}(0,1) $

$\textbf{s}_{n,k} \sim \mathcal{CN}(0,1) $

多行

split, array, aligned

split

\begin{equation}
 \begin{split}
   \textbf{y}&=\textbf{B} \textbf{s}_{\rho} + \textbf{z}\\
    &=\left[ \textbf{P}_1 \otimes \textbf{h}_1, \quad \textbf{P}_2 \otimes \textbf{h}_2, \quad \cdots  ,\quad \right.\\
    &\left. \quad \textbf{P}_N \otimes \textbf{h}_N \right] [\sqrt{\rho_1}\textbf{s}_1^T,  \sqrt{\rho_2}\textbf{s}_2^T,  \cdots,  \sqrt{\rho_N}\textbf{s}_N^T]^T
      + \textbf{z}\\
      &=\left[ \textbf{P}_1 \otimes \frac{\textbf{h}_1}{\|\textbf{h}_1\|_2}, \quad \textbf{P}_2 \otimes \frac{\textbf{h}_2}{\|\textbf{h}_2\|_2},  \quad  \cdots \right.\\
      &\left. \quad \textbf{P}_N \otimes \frac{\textbf{h}_N}{\|\textbf{h}_N\|_2} \right]
       \left[
            \begin{array}{c}
                  \sqrt{\rho}_1 \textbf{s}_1^T \|\textbf{h}_1\|_2 \\
                  \vdots                           \\
                  \sqrt{\rho}_2 \textbf{s}_2^T \|\textbf{h}_2\|_2  \\
                  \vdots \\
                  \sqrt{\rho}_N \textbf{s}_N^T \|\textbf{h}_N\|_2
            \end{array}
      \right]
      + \textbf{z} \\
      & = \tilde{\textbf{B}} \tilde{\textbf{s}} + \textbf{z}
 \end{split}
\end{equation}

\begin{equation}
\begin{split}
\textbf{y}&=\textbf{B} \textbf{s}_{\rho} + \textbf{z}\
&=\left[ \textbf{P}_1 \otimes \textbf{h}_1, \quad \textbf{P}_2 \otimes \textbf{h}_2, \quad \cdots ,\quad \right.\
&\left. \quad \textbf{P}_N \otimes \textbf{h}_N \right] [\sqrt{\rho_1}\textbf{s}_1^T, \sqrt{\rho_2}\textbf{s}_2^T, \cdots, \sqrt{\rho_N}\textbf{s}_NT]T
+ \textbf{z}\
&=\left[ \textbf{P}_1 \otimes \frac{\textbf{h}_1}{|\textbf{h}_1|_2}, \quad \textbf{P}_2 \otimes \frac{\textbf{h}_2}{|\textbf{h}_2|_2}, \quad \cdots \right.\
&\left. \quad \textbf{P}_N \otimes \frac{\textbf{h}_N}{|\textbf{h}_N|_2} \right]
\left[
\begin{array}{c}
\sqrt{\rho}_1 \textbf{s}_1^T |\textbf{h}_1|_2 \
\vdots \
\sqrt{\rho}_2 \textbf{s}_2^T |\textbf{h}_2|_2 \
\vdots \
\sqrt{\rho}_N \textbf{s}_N^T |\textbf{h}_N|_2
\end{array}
\right]
+ \textbf{z} \
& = \tilde{\textbf{B}} \tilde{\textbf{s}} + \textbf{z}
\end{split}
\end{equation}
##array

\left[
            \begin{array}{c}
                  \sqrt{\rho}_1 \textbf{s}_1^T \|\textbf{h}_1\|_2 \\
                  \vdots                           \\
                  \sqrt{\rho}_2 \textbf{s}_2^T \|\textbf{h}_2\|_2  \\
                  \vdots \\
                  \sqrt{\rho}_N \textbf{s}_N^T \|\textbf{h}_N\|_2
            \end{array}
      \right]


$
\left[
\begin{array}{c}
\sqrt{\rho}_1 \textbf{s}_1^T |\textbf{h}_1|_2 \
\vdots \
\sqrt{\rho}_2 \textbf{s}_2^T |\textbf{h}_2|_2 \
\vdots \
\sqrt{\rho}_N \textbf{s}_N^T |\textbf{h}_N|_2
\end{array}
\right]
$

相同的,以单边花括弧开始的多行公式可以表示为:

$
\left \{ 
\begin{array}{lr}
    h_nx_{\tau n} = \overrightarrow{0}, \quad if \; n \in \text{I} &\\
    h_nx_{\tau n} \not= \overrightarrow{0}, \quad if \; n \not\in \text{I}&
\end{array}
\right.
$

\begin{equation}
\left {
\begin{array}{lr}
h_nx_{\tau n} = \overrightarrow{0}, \quad if ; n \in \text{I} &\
h_nx_{\tau n} \not= \overrightarrow{0}, \quad if ; n \not\in \text{I}&
\end{array}
\right.
\end{equation}

aligned

\begin{equation}
 \begin{aligned}
    \text{SINR}_n &= \frac { \frac{(MT-N_sd)} {MT} {\rho}_n \textbf{h}_n^H\textbf{h}_n  } {\frac{d}{MT}\sum\limits_{j=n+1}^{N_a}{ {\rho}_j \textbf{h}_j^H\textbf{h}_j  } + 1} \\
                  & = hhdhdh
 \end{aligned}
\end{equation}

\begin{equation}
\begin{aligned}
\text{SINR}_n &= \frac { \frac{(MT-N_sd)} {MT} {\rho}_n \textbf{h}_n^H\textbf{h}n } {\frac{d}{MT}\sum\limits{j=n+1}^{N_a}{ {\rho}_j \textbf{h}_j^H\textbf{h}_j } + 1} \
& = hhdhdh
\end{aligned}
\end{equation}

算法

\begin{algorithm*}
\caption{\small Title}
\begin{algorithmic}[1]
\REQUIRE $[\text{split}]=[0,F^{-1}(\frac{1}{l}),\cdots,F^{-1}(\frac{l-1}{l}),\infty], f_{\sigma^2=1/2,2M}(x) $
 \STATE {Initialization: $P_l = 0, l \in [1,L]$ };
\FOR {$l \in [1, L]$}
    \IF {$max(\text{split}[l],\text{split}^J[l]) < min(\text{split}[l+1],\text{split}^J[l+1])$}
        \STATE $P_l=\int_{0,\text{split}^J[l])}^{min(0,8)}f_{\sigma=1/2,2M}(x)dx$
    \ENDIF
\ENDFOR
\ENSURE $P = XXXX $
\end{algorithmic}
\end{algorithm*}
  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值