Mathematica also has a notation for multiple sums and products.
Sum[f, {i, imin, imax}, {j, jmin, jmax}] represents a sum over
i and
j, which would be written in standard mathematical notation as

f. Notice that in
Mathematica notation, as in standard mathematical notation, the range of the
outermost variable is given
first.
The way the ranges of variables are specified in
Sum and
Product is an example of the rather general
iterator notation that
Mathematica uses. You will see this notation again when we discuss generating tables and lists using
Table (
"Making Tables of Values"), and when we describe
Do loops (
"Repetitive Operations").