1. Latex设置公式对齐

\begin{aligned}
h(a,b,c,n)&=h(a\ mod\ c,\ b\ mod\ c,\ c,\ n)
\\&+2\left\lfloor\frac{b}{c}\right\rfloor f(a\ mod\ c,\ b\ mod\ c,\ c,\ n)+2\left\lfloor\frac{a}{c}\right\rfloor g(a\ mod\ c,\ b\ mod\ c,\ c,\ n)
\\&+\left\lfloor\frac{a}{c}\right\rfloor^2\frac{n(n+1)(2n+1)}{6}+\left\lfloor\frac{b}{c}\right\rfloor^2(n+1)+\left\lfloor\frac{a}{c}\right\rfloor\left\lfloor\frac{b}{c}\right\rfloor n(n+1)
\end{aligned}

使用\begin{aligned}\end{aligned},并在换行对齐的位置加上&符号。

效果: 0

results matching ""

    No results matching ""