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: y=tan(0) x- 9 2v cos² (0) x² + yo where 8, is the throwing angle in degrees, vo 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 1e-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 0 ≤ 0 ≤ 60. Mark the estimated root with a black diamond.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

MATLAB

CREATE A FUNCTION FILE OF SECANT METHOD AND THEN CALL THE FUNCTION USING A SEPERATE M FILE

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:
y=tan(0) x-
9
2v cos² (0)
x² + yo
where 8, is the throwing angle in degrees, vo 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, y₁=2m, to reach a catcher at point
x=35m, y=1m. Use 0₁ = 15 and 0-1 = 60 with a precision of 1e-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 0 ≤ 0 ≤ 60. Mark the estimated root with
a black diamond.
Transcribed Image Text: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: y=tan(0) x- 9 2v cos² (0) x² + yo where 8, is the throwing angle in degrees, vo 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, y₁=2m, to reach a catcher at point x=35m, y=1m. Use 0₁ = 15 and 0-1 = 60 with a precision of 1e-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 0 ≤ 0 ≤ 60. Mark the estimated root with a black diamond.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY