Chapter 11: Lists 271
sum(, prod(
sum(, prod(sum(, prod(
sum(, prod(
sum( (summation) returns the sum of the elements in list. start and end are optional; they
specify a range of elements. list elements can be real or complex numbers.
prod( returns the product of all elements of list. start and end elements are optional; they
specify a range of list elements. list elements can be real or complex numbers.
Sums and Products of Numeric Sequences
Sums and Products of Numeric SequencesSums and Products of Numeric Sequences
Sums and Products of Numeric Sequences
You can combine sum( or prod( with seq( to obtain:
To evaluate G 2(Nā€“1) from N=1 to 4:
sum(list[,start,end])prod(list[,start,end])
upper
G expression(x)
x=lower
upper

āˆ expression(x)

x=lower