Calculating the average and geometric mean of the four

Assignment Help Mechanical Engineering
Reference no: EM131102166

Using Matlab perform the following:

The geometric mean of a set of numbers x1 through xn is defined as the nth root of the product of numbers:
Geometric mean = (x1*x2A????1xn)1/n

Write a function file that will accept an arbitrary number of positive input values and calculate the average and the geometric mean of the numbers. Use a while loop to get the input values and terminate the input if the user inputs a negative number. Test your program by calculating the average and geometric mean of the four numbers 2,3,4 and 5.

Reference no: EM131102166

Questions Cloud

Centralized private sector planning : What does the CPSP (Centralized Private Sector Planning) thesis say about the difference between the modern industrial economy and Adam Smith s economy?
Description of implementation logistics : Description of current problem, issue, or deficit requiring a change - Description of implementation logistics
Creating sustainable and effective supply and demand network : Economists argue that successful business depends on creating sustainable and effective supply and demand networks. If you own (manage) a business, how do you create effective demand and effective supply to maximize profit?
What is absolute advantage : What is absolute advantage? What is comparative advantage? How do differences in geography influence the differences in absolute advantages? Can a nation’s comparative advantage change over time? What factors would make it change?
Calculating the average and geometric mean of the four : The geometric mean of a set of numbers x1 through xn is defined as the nth root of the product of numbers:Geometric mean = (x1*x2A????1xn)1/n
How trade barriers save jobs in protected industries : Explain how a subsidy on agricultural goods like sugar adversely affects the income of foreign producers of imported sugar. Explain how trade barriers save jobs in protected industries, but only by costing jobs in other industries.
Calculate the work done by the steam : Calculate the heat supplied and change of entropy and show the process on a T-s diagram, indicating the area which represents the heat flow.
Define marginal product of factors : Define marginal product of factors K and L in the production function Y = F (K, L).
Application of concept of income elasticity of demand : Give a clear answer to this question; Define and give an example of application of concept of income elasticity of demand: of cross price elasticity of demand.

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd