Develop a well-structured function to compute v as a function of t. Then use this function to generate a table of v versus t for
To calculate: Create a function for the velocity of rocket v that takes t as parameters and test the function on the below piecewise function of velocity from
Answer to Problem 18P
Solution:
The value of v for t is:
Explanation of Solution
time velocity
-5.000000 0.000000
-4.500000 0.000000
-4.000000 0.000000
-3.500000 0.000000
-3.000000 0.000000
-2.500000 0.000000
-2.000000 0.000000
-1.500000 0.000000
-1.000000 0.000000
-0.500000 0.000000
0.000000 0.000000
0.500000 0.250000
1.000000 6.000000
1.500000 17.250000
2.000000 34.000000
2.500000 56.250000
3.000000 84.000000
3.500000 117.250000
4.000000 156.000000
4.500000 200.250000
5.000000 250.000000
5.500000 305.250000
6.000000 366.000000
6.500000 432.250000
7.000000 504.000000
7.500000 581.250000
8.000000 664.000000
8.500000 752.250000
9.000000 846.000000
9.500000 945.250000
10.000000 1050.000000
10.500000 1047.500000
11.000000 1045.000000
11.500000 1042.500000
12.000000 1040.000000
12.500000 1037.500000
13.000000 1035.000000
13.500000 1032.500000
14.000000 1030.000000
14.500000 1027.500000
15.000000 1025.000000
15.500000 1022.500000
16.000000 1020.000000
16.500000 1017.500000
17.000000 1015.000000
17.500000 1012.500000
18.000000 1010.000000
18.500000 1007.500000
19.000000 1005.000000
19.500000 1002.500000
20.000000 1000.000000
20.500000 1025.500000
21.000000 1052.000000
21.500000 1079.500000
22.000000 1108.000000
22.500000 1137.500000
23.000000 1168.000000
23.500000 1199.500000
24.000000 1232.000000
24.500000 1265.500000
25.000000 1300.000000
25.500000 1335.500000
26.000000 1372.000000
26.500000 1409.500000
27.000000 1448.000000
27.500000 1487.500000
28.000000 1528.000000
28.500000 1569.500000
29.000000 1612.000000
29.500000 1655.500000
30.000000 1520.000000
30.500000 1375.352875
31.000000 1244.470745
31.500000 1126.043695
32.000000 1018.886470
32.500000 921.926603
33.000000 834.193687
33.500000 754.809662
34.000000 682.980025
34.500000 617.985883
35.000000 559.176751
35.500000 505.964047
36.000000 457.815202
36.500000 414.248325
37.000000 374.827385
37.500000 339.157843
38.000000 306.882707
38.500000 277.678957
39.000000 251.254310
39.500000 227.344301
40.000000 205.709631
40.500000 186.133771
41.000000 168.420801
41.500000 152.393442
42.000000 137.891289
42.500000 124.769198
43.000000 112.895839
43.500000 102.152379
44.000000 92.431295
44.500000 83.635294
45.000000 75.676344
45.500000 68.474788
46.000000 61.958550
46.500000 56.062414
47.000000 50.727370
47.500000 45.900023
48.000000 41.532058
48.500000 37.579760
49.000000 34.003573
49.500000 30.767705
50.000000 27.839771
Given Information:
The piecewise function of velocity is given below on which the function will be executed from
Calculation:
Code:
function
if
elseif
elseif
elseif
else
end
TestFile.m:
for
end
Output:
Press F5 to run the program.
Want to see more full solutions like this?
Chapter 2 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
Additional Engineering Textbook Solutions
Basic Technical Mathematics
Advanced Engineering Mathematics
Fundamentals of Differential Equations (9th Edition)
Fundamentals of Statistics (5th Edition)
- Based on your equations for the above problem, solve for the extension of the spring (in meters) when the variables have values as follows: angle A is 74.79 degrees angle B is 44.36 degrees spring constant k is 123.77 N/m mass m2 is 2.52 kgarrow_forwardFor the model defined in Question 1, is the closed loop system with the negative feedback control law? 0 0 0 ;]* X 0 u=-Kx= O a. O b. O c. unstable 0 1 0 asymptotically stable not unstable O d. not asymptotically stablearrow_forward1. A spring mass system serving as a shock absorber under a car's suspension, supports the M 1000 kg mass of the car. For this shock absorber, k = 1 × 10°N /m and c = 2 × 10° N s/m. The car drives over a corrugated road with force %3| F = 2× 10° sin(@t) N . Use your notes to model the second order differential equation suited to this application. Simplify the equation with the coefficient of x'" as one. Solve x (the general solution) in terms of w using the complimentary and particular solution method. In determining the coefficients of your particular solution, it will be required that you assume w – 1z w or 1 – o z -w. Do not use Matlab as its solution will not be identifiable in the solution entry. Do not determine the value of w. You must indicate in your solution: 1. The simplified differential equation in terms of the displacement x you will be solving 2. The m equation and complimentary solution xe 3. The choice for the particular solution and the actual particular solution x,…arrow_forward
- The following table lists temperatures and specific volumes of water vapor at two pressures: p = 1.5 MPa v(m³/kg) p = 1.0 MPa T ("C) v(m³/kg) T ("C) 200 0.2060 200 0.1325 240 280 0.2275 0.2480 240 280 0.1483 0.1627 Data encountered in solving problems often do not fall exactly on the grid of values provided by property tables, and linear interpolation between adjacent table entries becomes necessary. Using the data provided here, estimate i. the specific volume at T= 240 °Č, p = 1.25 MPa, in m/kg ii. the temperature at p = 1.5 MPa, v = 0.1555 m/kg, in °C ii. the specific volume at T = 220 °C, p = 1.4 MPa, in m'/kgarrow_forwardThermodynamics is extensively used in engineering field. The following polynomial can be used to relate the zero-pressure specific heat of dry air c, kl/(kg K) to temperature (K) c, = 0.99403 + 1.671 x 104T +9.7215 x 10-872-9.5838 x 10-"T³ + 1.9520 x 10-4T Which of the following(s) is/are the correct method to determine the temperature that corresponds to a specific heat of 1.1 kl/(kg K). (Choose all that applyl) O A) Gauss-Seidel Method O B) Lagrange Interpolation O C) Newton-Divided Difference O 0) Bisection Method Newton Methodarrow_forwardAn object is shot upward from the ground with an initial velocity of 640 ft/sec, and experiencés a constant deceleration of 32 ft/sec² due to gravity as well as a deceleration of (v(t) / 10) ft/sec due to air resistance, where v(t) is the object's velocity in ft/sec. (a) Set up and solve an initial-value problem to determine the object's velocity v(t) at time t. (b) At what time does the object reach its highest point?arrow_forward
- In the Fig. 2 below, let Ki = K2 = K and ti = t=t. %3D T -T X Fig. 2 (a) Let T= 0 °C and T= 200 °C. Solve for T: and unknown rates of heat flow in term of k and t. MEC_AMO_TEM_035_02 Page 2 of 11 Finite Element Analysis (MECH 0016.1) – Spring - 2021 -Assignment 2-QP (b) Let T- 400 °C and let fs have the prescribed value f. What are the unknowns? Solve for them in term of K, t, and f.arrow_forwardThe relative displacement u(t) of a single-storey shear building subjected to an earthquake ground motion is represented by the following second-order linear ordinary differential equation: d?u dt2 du + c + ku = a, (t) m dt where m, c, and k are the mass (kg), damping constant (Ns/m), and stiffness of the structure (N/m), respectively. Meanwhile, a,(t) is the function of earthquake ground acceleration. Suppose the building with a mass of 2000 kg and supported by columns of combined stiffness of 32 x 103 N/m is subjected to earthquake with ground acceleration given by the following function: ag(t) = 36000 cos 2t Find the equation of the displacement, u(t), given the damping is not installed to the building. Then, find how much the building is displaced from t =30 seconds to t =60 seconds of earthquake.arrow_forward62. •A 5-kg object is constrained to move along a straight line. Its initial speed is 12 m/s in one direction, and its final speed is 8 m/s in the opposite Complete the graph of force versus time with direction. F (N) (s) appropriate values for both variables (Figure 7-26). Several answers are correct, just be sure that your answer is internally consistent. Figure 7-26 Problem 62arrow_forward
- 4. If all variables of choose the a stream are correct answer dependent of time it is said to be in: (a) Steady flow (b) Unsteady flow (c) Uniform flow (d) Closed flow (e) Constant flow 5. In an irreversible process, there is a: (a) loss of heat (b) No O loss of heat (c) Gain of heat (d) No gain of heatarrow_forwardQ2 Consider a conical receiver shown in Figure 2. The inlet and outlet liquid volumetric flow rates are Fl and F2, respectiveily. ccorresponding radius in r) Figure 2 Conicul tank Develop the model equation with necessary assumption(s) with respect to the liquid height h. ii. What type of mathematical model is this? 1 R %3D Hint: Model: = F, – Fz, where the volume V=r h=nh, since = substitute V and Fz expressions and get the final form. %3D %3D %3D dt H.arrow_forwardDo not actually solve the problem numerically or algebraically, just pick the one equation and define the relevant knowns and single unknown. Don’t forget to include direction when called for by a vector variable 12) The air conditioner removes 2.7 kJ of heat from inside a house with 450 m3 of air in it. At a typical air density of 1.3 kg/m3 that means 585 kg of air. If the specific heat of air is 1.01 kJ/(kg oC), by how much would this cool the house if no heat got in through the rest of the house during that time?arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY