Markdown KeTeX formula Left display

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.
This link: https://blog.csdn.net/COCO56/article/details/100323467

Inline formula is the default left home, the equation between the lines centered by default.
effect:
P ( X 2 ) = P ( X = 0 ) + P ( X = 1 ) + P ( X = 2 ) = e 2 + 2 e 2 1 ! + 2 2 e 2 2 ! = 5 e 2 \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}
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}$

Guess you like

Origin blog.csdn.net/COCO56/article/details/100323467
Recommended