The geometric mean GM of a set of n positive numbers x1, x2, ... , xn is

Question:

The geometric mean GM of a set of n positive numbers x1, x2, ... , xn is defined by:
GM =
(x1. X2 . ... . xn)1/n
Write a user-defined function that calculates the geometric mean of a set of numbers. For function name and arguments use GM=Geomean (x) , where the input argument xis a vector of numbers (any length) and the output argument GM is their geometric mean. The geometric mean is useful for calculating the average of rates. The following table gives the inflation rates in the United States from 1978 to 1987 (inflation of 7.6% means 1.076). Use the user-defined function Geomean to calculate the average inflation for the ten-year period.
The geometric mean GM of a set of n positive
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: