Calculate the exact integration result using matlab

Assignment Help Mechanical Engineering
Reference no: EM13242627

The work done (in Joule) to compress the piston shown in the figure is defined as:

W= s0snP(s)Ads

Where, Pressure, P(s) = k1 s + k2
Area, A = πr2

Radius, r = 5 x 10-2 m

k1 = 5 x 105 Nm-3

k2 = 105 Nm-2

s0 = 0 m
s1 = 5 x 10-2 m

1936_Calculate the exact integration result using Matlab.png

Now answer the following questions using Matlab:

Create a function file called trap_abc123.m that (i) takes an input argument n, (ii) calculate the work done by integration using n segment trapezoidal rule and (iii) return the resulting work done.(Note: abc123 is your respective ID)

Create a source file called exam_abc123.m that calls the function for n = 1, n = 11, n = 21, n = 31, n = 41 and n = 51

Calculate the exact integration result using Matlab symbolic tools and calculate the errors in calculating work done for n = 1, n = 11, n = 21, n = 31, n = 41 and n = 51

Plot the work done versus n and error versus n

Reference no: EM13242627

Questions Cloud

State hydrochloric acid reacts with sodium carbonate : Hydrochloric acid (HCl) reacts with sodium carbonate (Na2CO3), forming sodium chloride (NaCl), water (H2O), and carbon dioxide (CO2). This equation is balanced as written
Sales is expected to be carried out without any expansion : Determine Upton's projected external capital requirement if the increase in sales is expected to be carried out without any expansion of fixed assets.
What is optimal amount for the firm to spend on advertising : The Wilson Company's marketing manager has determined that the price elasticity of demand for its product equals -2.2. According to studies he carried out, the relationship between the amount spent by the firm on advertisin
What angle does the protons velocity make with b : A proton with v = 322 m/s is moving through a region in which the magnetic field is B = 2.2 T, what angle does the protons velocity make with B
Calculate the exact integration result using matlab : Calculate the exact integration result using Matlab symbolic tools and calculate the errors in calculating work done
Between 1935 and 1943-the workers progress administration : Which of the following states was most affected by population migrations during World War II? Between 1935 and 1943, the Workers Progress Administration. The 1973 Paris Peace Accords led to the
A fund manager at a brokerage firm : You have just taken over as a fund manager at a brokerage firm.
Define what is the percent-yield of h2 : What is the percent-yield of H2 In the reaction below when an equimolar mixture of CH4 and CO2 with an initial total pressure of 20.0 atm reaches equilibrium at 1200. K, at which Kp = 3.548 x 106
Calculate the value of the marginal product for each worker : Calculate the marginal product for each additional worker Each unit of output sells for $10. Calculate the value of the marginal product for each worker. Graph the firm's demand schedule.

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