Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

The documentation for Sum says that it is possible to replace Sum by EscsumEsc. The limits ($i_\max$ and $i_\min$) should be entered as underscript $i=i_\min$ below $\sum$ and overscript $i_\max$ over $\sum$

Following the aforementioned rules, I entered the formula as:

   OverscriptBox["\[Sum]", "10"], "q"}], 
  RowBox[{"q", "=", "1"}]]], "Input",
 CellChangeTimes->{{3.572528196734789*^9, 3.572528215609144*^9}},

which gives an error

Syntax::sntxi: Incomplete expression; more input is needed .

How do I fix this?

share|improve this question
add comment

3 Answers 3

up vote 8 down vote accepted

The easiest way to enter sums with limits is to use the keyboard shortcut EscsumtEsc (see the Advanced Math Assistant palette). Then you get a template that can be filled by tabbing between the placeholders.

share|improve this answer
add comment

You probably entered Ctrl$, followed by Ctrl& to create the under and over scripts individually. You can see in your code that this is what happened, because of the presence of UnderscriptBox and OverscriptBox.

Instead, what you need is UnderoverscriptBox, which is obtained by Ctrl$ (or Ctrl&), followed by Ctrl%. This automatically creates the opposite script and associates it as a single UnderoverscriptBox instead of separate under/over scripts.

share|improve this answer
add comment

You appear to be entering the lower and upper limits incorrectly.

From the documentation for Sum:

Mathematica graphics

share|improve this answer
documentation specified overscript as [Ctrl]+7. Replacing with Ctrl+% works. Thanks –  ipy Mar 17 '13 at 18:09
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.