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)
- Q/Solve the heat equation initial-boundary-value problem:- ut = ux X u (x90) = X ux (ost) = ux (39) = 0arrow_forwardA graph G of order 12 has vertex set V(G) = {c1, c2, …, c12} for the twelve configurations inFigure 1.4. A “move” on this checkerboard corresponds to moving a single coin to anunoccupied square, where(1) the gold coin can only be moved horizontally or diagonally,(2) the silver coin can only be moved vertically or diagonally.Two vertices ci and cj (i ≠ j) are adjacent if it is possible to move ci to cj by a single move. (a) What vertices are adjacent to c1 in G?(c) Draw the subgraph of G induced by {c2, c6, c9, c11}.arrow_forwardi) Consider the set S = {−6, −3, 0, 3, 6}. Draw a graph G whose set of verti- ces be S and such that for i, j ∈ S, ij ∈ E(G) if ij are related to a rule that t'u you choose to apply to i and j. (ii) A graph G of order 12 has as a set of vertices c1, c2, . . . , c12 for the do- ce configurations of figure 1. A movement on said board corresponds to moving a coin to an unoccupied square using the following two rules: 1. the gold coin can move only horizontally or diagonally, 2. the silver coin can move only vertically or diagonally. Two vertices ci, cj, i̸ = j are adjacent if it is possible to move ci to cj in a single movement. a) What vertices are adjacent to c1 in G? b) Draw the subgraph induced by {c2, c6, c9, c11}arrow_forward
- Prove for any graph G, δ(G) ≤ d(G) ≤ ∆(G) using the definition of average degree, make a formal proofarrow_forwardRestart box ixl.com/math/grade-6/area-of-compound-figures-with-triangles ass BModules Dashboard | Khan... Grades 6-8 Life S... t Typing Lessons BDashboard f IXL My IXL Learning Assessm Sixth grade >GG.12 Area of compound figures with triangles 5V2 What is the area of this figure? 4 km 2 km 5 km 4 km 2 km Learn with an example 13 km Write your answer using decimals, if necessary. square kilometers Submit Area of compound figures Area of triangles (74) Work it out Not feeling ready yet? Thesarrow_forwardNot use ai pleasearrow_forward
- Determine the volume and the surface area of the shape obtained by rotating the area of the figure about the x-axis and the y-axis.arrow_forwardI'm getting only chatgpt answer that are wrong Plz don't use chatgpt answer will upvote .arrow_forwardFind xyz cordinates of center of gravity given z = 3.47 inarrow_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





