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

  Define kinetics of particles -newton''s second law

Kinetics of Particles : Newton's Second Law, Determine the maximum theoretical speed that may be achieved over a distance of 50 m by a car starting from rest

  Explain mean effective pressure of a diesel engine

Volumetric Compression Ration and Mean Effective Pressure of a Diesel Engine, A diesel engine has air before compression at 280 K and 85 Kpa. The highest temperature is 2219 K and the highest pressure is 6 MPa.

  Determine the radius of curvature of the trajectory

Coal is discharged from the tailgate of a dump truck with an initial velocity vA = 2 m/s A 50°. Determine the radius of curvature of the trajectory described by the coal.

  Determine how much ice has melted to bring the temperature

(a) determine how much ice has melted to bring the temperature of the beverage to equilibrium with the ice/water. (b) Determine the final equilibrium temperature

  Determine the value of force when the rod begins to yield

A 20-mm diameter rod made of a ductile material with a yield strength of 350 MPa is subjected to torque of 100 N.m and a bending moment of 150 N.m. An axial force is then gradually applied. Determine the value of force when the rod begins to yield..

  Calculate the output speed of the driven sheave

A 5v belt drive system operates an input speed of 1250 RPM at the small sheave. The driving sheave has a pitch diameter of 6.000 in, and the driven sheave has a pitch diameter of 19.000 in. If an optimum center distance of 47 in is specified.

  What dielectric constant must the material between the plate

A simple plate capacitor can store 6.5x10^-5 C at a potential of 10000 V. what dielectric constant must the material between the plates have if their area is 6.0x10^-5 m2 and they are 0.16 mm apart?

  What is the percentage error

One side of a right triangle is known to be 45 cm long and the opposite angle is measured as 30?, with a possible error of 1?.

  Explain midrange and amplitude components

Midrange and amplitude components, A shaft is subjected to a completely reversed bending stress such that Xmax=40kpsi and Xmin=-40kpsi

  Determine the magnitudes of fa and fb

The total force Fa + Fb exerted on the shelter is in the direction parallel to the line L and it's magnitude is 400 lb. Graphically determine the magnitudes of Fa and Fb.

  Define shearing stress

Two bars, one having a circular section of radius b, the other an elliptic section with semiaxes a,b. For equal angles of twist, which bar experiences the larger shearing stress?

  Determine the volume after all the ice is melted

100 kg of liquid water at 25C and 50 kg of ice at 0C are placed in an isolated container. (a) (b) (c) Find the initial volume of the liquid-ice mixture, in m3. Determine the volume after all the ice is melted, in m3. Will the temperature of the li..

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