Operators > Calculus Operators > Example: Summation and Product Operators
Example: Summation and Product Operators
Use the summation and product operators to add or multiply a sequence of terms. You can either cast the elements to be summed or multiplied as vectors, or you can implicitly specify the elements in the range of the operator itself.
Using the Operators to Calculate the Sum or Product of a Vector or Function
1. Define a range sequence.
 m 0 n 19 i m n
2. Use the summation and product operators to find the sum and product of the elements of vector v.
 v i i v v
3. Define a function and use the operators to find the sum and product of its elements.
 f s s t f t m n i f i t f t m n i f i
The product operator returns 0 because the first element of the vector is 0. Adjust the lower and upper limits of the range sequence and reapply the product operator.
 p m 1 q n 10 r p q t f t p q r f r
Using Different Lower and Upper Range Limit Values
1. Set the lower limit=integer, upper limit=integer.
 l 1 u 5 V00 l u
The last element of the vector equals m+largest multiple of the step size and its value must be less than or equal to the upper limit of the range sequence.
Verify that the next calculated element is larger than n and thus not added to the vector:
Calculate the sum and product.
 j j l u j j l L V00 j j l u j j l L
2. Set lower limit=real and upper limit=integer.
 l 1.3 u 7 V01 l u L V01 last V01
Calculate the sum and product.
 j j l u j j l L V01 j j l u j j l L
3. Set lower limit=real and upper limit=real.
 l 1.7 u 5.9 V02 l u
Calculate the sum and product.
 j j l u j j l L V02 j j l u j j l L
Perform Combinations of Summation and Product Calculations
1. Calculate summation of summation and summation of product by cascading the two operators.
 n m n m 0 5 0 3 n m n m 0 3 0 3
2. Calculate product of summation and product of product by cascading the two operators.
 n m n m 0 6 0 2 n m n m 0 3 1 2