Latex里面分段函数的输入:
\begin{equation}
P_{r-j}=
\begin{cases}
0&\mbox{if $r-j$ is odd}\\
r!\,(-1)^{(r-j)/2}&\mbox{if $r-j$ is even}
\end{cases}
\end{equation}
结果:
from: http://blog.sina.com.cn/s/blog_85dd2a2f01019yse.html