Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB CREATE A FUNCTION FILE OF SECANT METHOD AND THEN CALL THE FUNCTION USING A SEPERATE M FILE TASK 2 [3 MARKS] Aerospace engineers sometimes
MATLAB
CREATE A FUNCTION FILE OF SECANT METHOD AND THEN CALL THE FUNCTION USING A SEPERATE M FILE
TASK 2 [3 MARKS] Aerospace engineers sometimes compute the trajectories of projectiles such as rockets. A related problem deals with the trajectory of a thrown ball. The trajectory of a ball is defined by the (x,y) coordinates as shown in the figure below. The trajectory model can be modelled as: g y =tan(O)x 2v cos? (0) -x2 + yo where is the throwing angle in degrees, v, is the initial velocity, yo is the thrower's elevation, x is the distance from the thrower to the catcher and y is the catcher's elevation, g is the gravitational acceleration (g=9.81 ms?). A. Use the secant method to find the required throwing angle given Vo =20m/s, yo=2m, to reach a catcher at point x=35m, y=1m. Use 0 = 15 and 0-1 = 60 with a precision of le-4. Use fprintf to print the initial throwing angle required and the number of iterations taken. B. Also, plot the root-finding equation against the initial throwing angles of O ses 60. Mark the estimated root with a black diamondStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started