latex code for summation code code example
Example: latex sum
Inside text: $\sum_{n=1}^{\infty} 2^{-n} = 1$
On its own line: $$\sum_{n=1}^{\infty} 2^{-n} = 1$$
Inside text: $\sum_{n=1}^{\infty} 2^{-n} = 1$
On its own line: $$\sum_{n=1}^{\infty} 2^{-n} = 1$$