Math & ScienceDouble Sum with additional Condition

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
pajacek
Posts: 2
Joined: Sun Feb 19, 2012 2:32 pm

Double Sum with additional Condition

Post by pajacek »

Hey, I have no idea how to type something like that

Code: Select all

\displaystyle\sum^k_{i=1}\displaystyle\\sum^k_{\substack{j=1 \\ i<j}}q_i q_j
but with additional condition i<j under/between both sum symbols to get it finer.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Double Sum with additional Condition

Post by localghost »

Try something like this.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}

\begin{document}
  \[
    \underset{i<j}{\sum^k_{i=1}\sum^k_{j=1}}\,q_i q_j
  \]
\end{document}

Best regards and welcome to the board
Thorsten
pajacek
Posts: 2
Joined: Sun Feb 19, 2012 2:32 pm

Re: Double Sum with additional Condition

Post by pajacek »

Great, this is exactly I need! Thank you for your help and welcome.
Post Reply