如果各个方程需要在某个字符处对齐(如等号对齐),只需在所有要对齐的字符前加上 &
符号。
A . 1 B . 2 C . 3 D . 4 \begin{aligned} &A.\ 1&B.\ 2\\ &C.\ 3&D.\ 4 \end{aligned} A. 1C. 3B. 2D. 4
$$\begin{aligned}
&A.\ 1&B.\ 2\\
&C.\ 3&D.\ 4
\end{aligned}$$
P ( B ∣ A ) = P ( A B ) P ( A ) P ( B ‾ ∣ A ) = 1 − P ( B ∣ A ) = 1 − P ( A B ) P ( A ) \begin{aligned} P(B|A)&=\frac{P(AB)}{P(A)}\\ P(\overline{B}|A)&=1-P(B|A)=1-\frac{P(AB)}{P(A)} \end{aligned} P(B∣A)P(B∣A)=P(A)P(AB)=1−P(B∣A)=1−P(A)P(AB)
$$
\begin{aligned}
P(B|A)&=\frac{P(AB)}{P(A)}\\
P(\overline{B}|A)&=1-P(B|A)=1-\frac{P(AB)}{P(A)}
\end{aligned}
$$
令
A
1
=
{
取
到
的
零
件
来
自
甲
机
床
}
A
2
=
{
取
到
的
零
件
来
自
乙
机
床
}
B
=
{
取
到
的
零
件
是
废
品
}
\begin{aligned} 令A_1&=\lbrace 取到的零件来自甲机床\rbrace\\ A_2&=\lbrace取到的零件来自乙机床\rbrace\\ B&=\lbrace取到的零件是废品\rbrace \end{aligned}
令A1A2B={取到的零件来自甲机床}={取到的零件来自乙机床}={取到的零件是废品}
代码:
$\begin{aligned}
令A_1&=\lbrace 取到的零件来自甲机床\rbrace\\
A_2&=\lbrace取到的零件来自乙机床\rbrace\\
B&=\lbrace取到的零件是废品\rbrace
\end{aligned}$
m a x = 2 ∗ x 1 + 3 ∗ x 2 ; x 1 + 2 ∗ x 2 < = 8 ; 4 ∗ x 1 < = 16 ; s 4 ∗ x 2 < = 12 ; \begin{aligned} &max=2*x1+3*x2;\\ &x1+2*x2<=8;\\ &4*x1<=16;\\ &s4*x2<=12; \end{aligned} max=2∗x1+3∗x2;x1+2∗x2<=8;4∗x1<=16;s4∗x2<=12;
$$
\begin{aligned}
&max=2*x1+3*x2;\\
&x1+2*x2<=8;\\
&4*x1<=16;\\
&s4*x2<=12;
\end{aligned}
$$