Math & ScienceSummation (sigma) with 2 lines underneath

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Summation (sigma) with 2 lines underneath

Post by latexhelp1 »

I have a summation from say k = -5 to 5. I would like to add a line beneath the k = -5 that k \neq 0 (is that the correct way to express mathematically that k does not equal 0?) I do not know how to do the k not equal to 0 part. I would very much appreciate any help you can provide.

My current code for the summation of k = -5 to 5 is:

Code: Select all

\sum_{k=-5}^{5} \pi_k
Last edited by latexhelp1 on Wed Feb 01, 2012 10:55 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Summation (sigma) with 2 lines underneath

Post by Stefan Kottwitz »

With amsmath, you could use \substack:

Code: Select all

\sum_{\substack{k=-5\\k \neq 0}}^{5} \pi_k
substack.png
substack.png (2.24 KiB) Viewed 25778 times
Stefan
LaTeX.org admin
Post Reply