Next: Exercise 3. Up: Exercises Previous: Exercise 1.

Exercise 2.

Write a Maple procedure called variance that computes the variance of a list of numbers. I.e. variance(x) computes

where is the number of elements of the list and is the average of the numbers in list . Your routine should print an error if the list is empty.


bondaren@thsun1.jinr.ru