115
Chapter 7: List Features
4 median(
median(
list [, frequency list])
Returns the median value of items in the specified list.
Example
• Calculate the median value of the list
L2.
5 sum(
sum(
list [, start number, end number])
Returns the sum of items in the specified list.
Example
• Calculated the sum of the list items of
L1.
* You can specify the range of items in
the list to sum.
sum(L1,1,2)
means sum the 1st
to 2nd items of the list L1.
sum(L1,2)
means sum all items from the second to the last
of the list L1.
6 prod(
prod(
list [, start number, end number])
Returns the multiplication of items in the specified list.
Example
• Calculate the multiplication of items
in the list L1.
* You can specify the range of items in
the list to multiply.
prod(L1,1,2)
means multiply the
1st to 2nd items of the list L1.
prod(L1,2)
means multiplication of all items from the
second to the last of the list L1.
3 mean(
mean(
list [, frequency list])
Returns the mean value of items in the specified list.
Example
• Calculate the mean value of list L1.