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
College Algebra (7th Edition)
Intro Stats, Books a la Carte Edition (5th Edition)
Elementary Algebra For College Students (10th Edition)
Elementary Statistics: Picturing the World (7th Edition)
University Calculus: Early Transcendentals (4th Edition)
Algebra and Trigonometry (6th Edition)
- bThe average rate of change of the linear function f(x)=3x+5 between any two points is ________.arrow_forwardA path of a toy rocket thrown upward from the ground at a rate of 208 ft/sec is modeled by the quadratic function of. h(x)=16t2+208t. When will the rocket reach its maximum height? What will be the maximum height?arrow_forwardAn outpatient operating room charges each patient a fixed amount per surgery plus an amount per minute for use. One patient was charged 250 for a 30-minute surgery and another patient was charged 450 for a 90-minute surgery. Determine the linear function that would be used to compute the charges. Use the function to determine the charge when a patient has a 45-minute surgery.arrow_forward
- Find the intercepts of the parabola whose function is f(x)=x2+2x8.arrow_forwardSuppose the cuyahoga river is polluted with 285 parts per million (ppm) of a toxic substance, and local Cleveland environmental group claim they can reduce the pollution by 15ppm per year. Write an equation that represents the amount of pollution, P as a function of time, t. A) P(t)= 15 + 285t B) P(t)= 15 - 285t C) P(t)= .385- .15t D) P(t)= 285 - 15t E) P(t)= 285 - .15tarrow_forwardNewborn blue whales are approximately 24 feet long and weigh 3 tons. Young whales are nursed for 7 months, and by the time of weaning they often are 58 feet long and weigh 19 tons. Let L and W denote the length (in feet) and the weight (in tons), respectively, of a whale that is t months of age. (a) If L and t are linearly related, express L in terms of t. (b) What is the daily increase in the length of a young whale? (Use 1 month = 30 days. Round your answer to three decimal places.) ________ ft/day (c)If W and t are linearly related, express W in terms of t. (d) What is the daily increase in the weight of a young whale? (Round your answer to three decimal places.) __________tons/dayarrow_forward
- Amol and Nikhil are both going to Spartan Stadium for the football game. Amol lives 7 miles away and is riding his bike from home towards the stadium 1 at a pace of miles/minute. Nikhil lives 3 miles away along the same route but is walking from home towards the stadium at a rate of 4 24 miles/minute. Assume that they both started their journey at the same time t = 0. a. (4/10) Find two linear functions, A(t) and N(t), that can be used to find the distance that Amol and Nikhil are from the stadium after t minutes. A(t) = N(t) = Part 2/4. 7-1/4t b. (2/10) Find the time is takes for the first person to arrive at the stadium. Part 3/4. 3-1/24t Lowest time: Part 4/4. c. (2/10) How long will they have been traveling when their paths cross? Time of Crossing: d. (2/10) How far are they from the stadium when their paths cross? Distance to the Stadium: M M Σ minutes Σ minutes Σ milesarrow_forward3. Determine if the equation y-(2x+1) = 1 3D1 is a function.arrow_forwardHeller Manufacturing has two production facilities that manufacture baseball gloves. Production costs at the two facilities differ because of varying labor rates, local property taxes, type of equipment, capacity, and so on. The Dayton plant has weekly costs that can be expressed as a function of the number of gloves produced TCD(X) = X² X + 3 where X is the weekly production volume in thousands of units and TCD(X) is the cost in thousands of dollars. The Hamilton plant's weekly production costs are given by TCH(Y) y² + 2Y + 9 where Y is the weekly production volume in thousands of units and TCH(Y) is the cost in thousands of dollars. Heller Manufacturing would like to produce 5,000 gloves per week at the lowest possible cost. (a) Formulate a mathematical model that can be used to determine the optimal number of gloves to produce each week at each facility. min s.t. = X, Y Z 0 = 5 (b) Use Excel Solver or LINGO to find the solution to your mathematical model to determine the optimal…arrow_forward
- Intermediate AlgebraAlgebraISBN:9781285195728Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningAlgebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningCollege AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage