怎么把两个公式放在一行里?

转自: http://bbs.ctex.org/forum.php?mod=viewthread&tid=42505


这是两个公式,但因为每个公式长度比较小,我想把这两个公式放在一行里,不知道应该怎么做,公式编号可以不考虑

我试过简单的把两个array放在一个equation环境中,好像是不成功的

怎么把两个公式放在一行里?_第1张图片 


两个公式的分开的代码如下:

\begin{equation}
T_{srl}=\left\{\begin{array}{l@{\hspace{1cm}}l}
S_{r}+1&\tau_{acc}<0\\
S_{r}&\text{其它}\\
\end{array}\right.

\end{equation}
\begin{equation}
T_{srr}=\left\{\begin{array}{l@{\hspace{1cm}}l}
S_{r}+1&\tau_{acc}>0\\
S_{r}&\text{其它}\\
\end{array}\right.

\end{equation}




改为

  1. $
  2. T_{srl}=\left\{\begin{array}{l@{\hspace{1cm}}l}
  3. S_{r}+1&\tau_{acc}<0\\
  4. S_{r}&\text{其它}\\
  5. \end{array}\right.$
  6. and $
  7. T_{srr}=\left\{\begin{array}{l@{\hspace{1cm}}l}
  8. S_{r}+1&\tau_{acc}>0\\
  9. S_{r}&\text{其它}\\
  10. \end{array}\right.
  11. $
或者


  1. \begin{equation}\label{eq:array}
  2. T_{srl}\left\{
  3. \begin{array}{ll}
  4. S_{r}+1&\tau_{acc}<0\\
  5. S_{r}&\text{其它}\\
  6. \end{array}
  7. \right.
  8. \hspace{1em}
  9. T_{srr}=\left\{\begin{array}{ll}
  10. S_{r}+1&\tau_{acc}>0\\
  11. S_{r}&\text{其它}\\
  12. \end{array}\right.
  13. \end{equation}


你可能感兴趣的:(公式,latex)