24. The harmonic mean H of a set of n positive numbers is defined by: Write a...

Question:

24. The harmonic mean H of a set of n positive numbers is defined by:

Write a user-defined function that calculates the harmonic mean of a set of numbers. For function name and arguments use G=Harmean(x), where the input argux ment x is a vector of numbers (any length) and the output argument H is their harmonic mean. In electrical engineering the equivalent resistance of resistors connected in parallel is equal to the harmonic mean of the values of the resistors divided by the number of the resistors. Use the user-defined function Harmean to calculate the equivalent resistance of the resistors shown in the figure.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

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