
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
Numerical Methods for Engineers
Additional Math 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)
- Grear Tire Company has produced a new tire with an estimated mean lifetime mileage of 34,500 miles. Management also believes that the standard deviation is 4,500 miles and that tire mileage is normally distributed. To promote the new tire, Grear has offered to refund a portion of the purchase price if the tire fails to reach 30,000 miles before the tire needs to be replaced. Specifically, for tires with a lifetime below 30,000 miles, Grear will refund a customer $1 per 100 miles short of 30,000. Construct a simulation model to answer the following questions. (Use at least 1,000 trials.) (a) For each tire sold, what is the average cost of the promotion (in $)? (Round your answer to two decimal places.) (b) What is the probability that Grear will refund more than $25 for a tire? (Round your answer to three decimal places.)arrow_forwardMajor League Baseball's World Series is a maximum of seven games, with the winner being the first team to win four games. Assume that the Atlanta Braves and the Minnesota Twins are playing in the World Series and that the first two games are to be played in Atlanta, the next three games at the Twins' ballpark, and the last two games, if necessary, back in Atlanta. Taking into account the projected starting pitchers for each game and the home field advantage, suppose the probabilities of Atlanta winning each game are as follows. Game 1 2 3 4 5 6 7 Probability of Win 0.61 0.54 0.47 0.46 0.47 0.56 0.49 Construct a simulation model in which whether Atlanta wins or loses each game is a random variable. Use the model to answer the following questions. (Use at least 1,000 trials.) (a) What is the average number of games played regardless of winner? (Round your answer to one decimal place.) games (b) What is the probability that the Atlanta Braves win the World Series? (Round your answer to…arrow_forward1 Brinkley 2 A B с D E F G H I J 3 Parameters 4 Selling Price 5 Procurement Cost 6 Labor Cost 7 Transportation Cost 8 9 Procurement Cost 10 Lower End of Interval Upper End of Interval Cost Probability 11 $10.00 12 $11.00 0.25 0.45 13 $12.00 0.3 14 15 Labor Cost 16 Lower End of Interval Upper End of Interval Cost Probability 17 $20.00 0.1 18 $22.00 0.25 19 $24.00 0.35 20 $25.00 0.3 21 22 Transportation Cost 23 Lower End of Interval Upper End of Interval Cost Probability 24 25 $3.00 $5.00 0.75 0.25 26 27 Model 28 Profit Per Unit 29 30 Simulation Trial Procurement Cost Labor Cost Transportation Cost Profit Per Unit Summary Statistics 31 1 Mean Profit Per Unit #DIV/0! 32 2 P(Profit <$5) #DIV/0! 83 3 34 4 35 5 36 6 37 7 38 8 39 9 40 10arrow_forward
- Model File Available: Download WeddingIMS.xlsx The wedding date for a couple is quickly approaching, and the wedding planner must provide the caterer an estimate of how many people will attend the reception so that the appropriate quantity of food is prepared for the buffet. The following table contains information on the number of RSVP guests for the 145 invitations. Unfortunately, the number of guests does not always correspond to the number of RSVPed guests. Based on her experience, the wedding planner knows it is extremely rare for guests to attend a wedding if they notified that they will not be attending. Therefore, the wedding planner will assume that no one from these 50 invitations will attend. The wedding planner estimates that the each of the 25 guests planning to come solo has a 74% chance of attending alone, a 20% chance of not attending, and a 6% chance of bringing a companion. For each of the 60 RSVPs who plan to bring a companion, there is a 90% chance that they will…arrow_forwardProve that f: f →> R 16 One-to- one.arrow_forwardUse mathematical induction to prove the following statement: For all natural numbers n, 5 divides 6^n - 1 (show every step in detail)arrow_forward
- Use mathematical induction to prove the following statement: For all natural numbers n, 5 divides 6^n - 1arrow_forwardthe set of all preimages of 2 isarrow_forwardWhich diagram(s) represent the following relationships An injective function from A to B? A surjective function from A to B? An injective function from B to A? A surjective function from B to A?arrow_forward
- Determine if each statement is true or false. If the statement is false, provide a brief explanation: a) There exists x = R such that √x2 = -x. b) Let A = {x = ZIx = 1 (mod 3)} and B = {x = ZIx is odd}. Then A and B are disjoint. c) Let A and B be subsets of a universal set U. If x = A and x/ € A - B,then x = An B.| E d) Let f : RR be defined by f (x) = 1 x + 2 1. Then f is surjective.arrow_forwardWrite the negation of the definition of an injective functionarrow_forwardLet U= {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, A = {xeU Ix is a multiple of 3}, and B = {x = UIx = 0 (mod 2)}. Use the roster method to list all elements in each of the following sets: a) A, b) B, c) A u B, d) B – A, e) A^cn Barrow_forward
- Algebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillFunctions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage Learning
- Algebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningCollege Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning





