讲解:EG-264、MATLAB、Simpsons Rule、MATLABPython|Haskell

EG-264 CAE MATLAB Assignment 2019/2020Page 2 of 3Question 1:Figure 1 shows the speed (mph) against time(s) graph of a vehicle accelerating from a standing start. Over 8seconds the car accelerates to nearly 150mph.Figure 1: Speed (mph) vs. Time(s) graph of a vehicle in motion.Equation (1) reproduces the speed from time inputs as in figure 1.Speed(t) = 0.0041(t6) – 0.1383(t5) + 1.6963(t4) – 8.915(t3) +13.961 (t2) + 40.96(t) (Eqn. 1)To determine the distance travelled by the vehicle, numerical integration can be used on the reproduced speedvs. time data, calculating the area under the curve.Any of the three methods of numerical integration taught during the module (Composite Mid-Point,Trapezoidal or Simpsons Rule) can be used to determine the distance travelled of the vehicle represented inFigure 1/ Equation 1. Clearly state whichever method you are using, but you must obtain an approximationof the distance travelled by the vehicle in SI units, with a relative error of less than 0.00002%.During the numerical integration calculations, if the relative error is not reached, double the number ofseparations used over the timespan in the calculations for the following calculation.(i) In the command window, display the integral value calculated for distance, the number ofsections used in the numerical integration, and the relative error produced for each loopedcalculation using ‘fprintf’ and associated commands.(ii) Produce a single figure with two subplots, (1) showing the speed (m/s) vs. time (t) of the speedequation in one plot at a reasonable accuracy, and (2) a cumulative distance (m) graph of thevehicle over time(s) in EG-264代做、代写MATLAB语言、代做Simpsonsthe second subplot.(iii) Produce a figure showing the total distance calculated against the number of separations used ineach numerical integration calculation; use a logarithmic x-axis scale on the resulting plot.[25 Marks]EG-264 CAE MATLAB Assignment 2019/2020Page 3 of 3Question 2:An underdamped system is excited, with an initial velocity 0, which produces a vibration of the system. Thedisplacement of the system over time (x(t)) can be calculated using Equation 4, when combined withequations 2, 3 and the parameter values detailed in Table 1.Table 1: Parameter definitions, values and units of measureDefinition Parameter Value UnitsStiffness 997.584 N/mMass 10.692 kgInitial Displacement 0 0.026844 mInitial Velocity 0 Unknown m/sTime 0.735 sDisplacement 0.0852 mDamping coefficient c 36.84 kg/sNatural Frequency = √Damped Natural Frequency = √1 − 2 rad/sCritical Damping Coefficient = 2√ ∗ kg/sDamping Ratio = / -The initial velocity 0 however is unknown.(i) Use the bisection method to determine an approximation of the value of 0, with anabsolute error of less than 1 ∗ 10−6; when the displacement x = 0.0852m, at time t =0.735s, limiting the useable values of 0 between: 0 display the resulting value of 0, and the absolute error obtained.(ii) Produce a plot of the displacement x(t), between 0 0 calculated in part (i), and highlight the vibration displacement (x(t)), at the time (s)stated in table 1.[25 MARKS]转自:http://www.3daixie.com/contents/11/3444.html

你可能感兴趣的:(讲解:EG-264、MATLAB、Simpsons Rule、MATLABPython|Haskell)