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.