Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Inline formula is the default left home, the equation between the lines centered by default.
effect:
Code:
$\begin{aligned}P(X\le2)&=P(X=0)+P(X=1)+P(X=2)\\
&=e^{-2}+\frac{2\cdot e^{-2}}{1!}+\frac{2^2\cdot e^{-2}}{2!}=5e^{-2}\end{aligned}$