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

  Determine the time required and the distance traveled

An elevator descends from rest with an acceleration of 5 ft>s2 until it achieves a velocity of 15 ft>s. Determine the time required and the distance traveled.

  How much heat is required to raise the temperature

How much heat is required to raise the temperature of 10 pounds of water from 50 degrees fahrenheit to 70 degrees fahrenheit?

  Find the average velocity of flow at section b

find the average velocity of flow at section B, and the pressure difference between sections A and B.

  Devise and evaluate the exergetic efficiency for cycle

Consider a cold air-standard Diesel cycle. Operating data at principal states in the cycle are given in the table below.For k=1.4 Cv=0.718kJ/(kg*k), and Cp= 1.005 kJ/(kg*K)

  What is the mass flow rate of oxygen

What is the mass flow rate of oxygen in lbm/s? Note that the inside diameter of a nominal 2 inch schedule 40 steel pipe is 2.067inches. Assume ideal gas principles apply.

  Evaluate the reduction in pump bhp

Evaluate the reduction in pump BHP required by heating the oil from 50° F to 100° F. Suppose efficiency of 80% (HP)

  Calculate the speed at which the ball leaves the spring

A small steel ball bearing with a mass of 13 g is on a short compressed spring. When aimed vertically and suddenly released, the spring sends the bearing to a height of 1.35 m. Calculate the speed at which the ball leaves the spring.

  Sketch the cycle on p-v coordinates

One kilogram of air as an ideal gas executes a Carnot power cycle having a thermal efficiency 50%. The heat transfer to the air during isothermal expansion is 50 kJ. At the end of the isothermal expansion, the pressure is 574 kPa and the volume is..

  Compute the force required to punch out a rectangular

Calculate the force required to punch out a rectangular hole 100m x 50mm in a 2mm thick aluminium sheet. The ultimate strength in shear is 125 MN/m^2.

  What is the specific volume

what is the specific volume, internal energy (kj/kg) and enthalpy (kj/kg) for water at 1.8 mpa and 120 Degrees C? Locate the state on p-v diagram and document assumptions.

  Determine heat flow heat flow through a uniform wall

Determine heat flow, Heat flow through a uniform wall will: a) increase as the thermal resistance increases b) increase as the thickness of the wall increases

  Calculate the largest semicircular surface flaw oriented

calculate the largest semicircular surface flaw oriented along the axis of the bores that could withstand a fluid pressure of 50MPa.

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