Question: User Defiined Newton's Method to be modified: (Running MATLAB 2018b) function Xs = NewtonRoot(Fun,FunDer,Xest,Err,imax) % ABOVE: Don't foget to rename the function and to include

 User Defiined Newton's Method to be modified: (Running MATLAB 2018b) function

User Defiined Newton's Method to be modified: (Running MATLAB 2018b)

function Xs = NewtonRoot(Fun,FunDer,Xest,Err,imax) % ABOVE: Don't foget to rename the function and to include an additional required input % NewtonRoot finds the root of Fun = 0 near the point Xest using Newton's method. % Input variables: % Fun Handle of a user-defined function that calculates Fun for a given x. % FunDir Handle of a user-defined function that calculates the derivative % of Fun for a given x. % Xest Initial estimate of the solution. % Err Maximum error. % imax Maximum number of iterations % Output variable: % Xs Solution for i = 1:imax Xi = Xest - Fun(Xest)/FunDer(Xest); %Newton's Root Iteration if abs((Xi - Xest)/Xest)

Modify the user-defined Newton's Method code given to you, an rename the function Halleys and save the file as Halleys.m Replace Newton's method iteration formula with the aforementionediteration formula. Newton's Method uses a function and it's derivative, while Halley's method uses those and an additional second derivative. You will need to modify the input to include, FunDer2. Correct any other code noted by comments. Use the Halley's user-defined function to solve the following problem. The quarterback at the university football team passes to his wide reciver running a route. The quarterback releases the ball a a height of ba 6.5 feet with a velocity of 50 ft/s. the wide receiver (hg- 7ft) catches it x 60 feet down field for a touchdown! Y xtan(0) Where g 32.2 ft/s (acceleration due to gravity) and y Vo* sin (8) is the vertical distance. Find the angle at which the quarterback launched the ball for this victory. Verify the solution found with the user defined function Halley's with the built-in fzero function Modify the user-defined Newton's Method code given to you, an rename the function Halleys and save the file as Halleys.m Replace Newton's method iteration formula with the aforementionediteration formula. Newton's Method uses a function and it's derivative, while Halley's method uses those and an additional second derivative. You will need to modify the input to include, FunDer2. Correct any other code noted by comments. Use the Halley's user-defined function to solve the following problem. The quarterback at the university football team passes to his wide reciver running a route. The quarterback releases the ball a a height of ba 6.5 feet with a velocity of 50 ft/s. the wide receiver (hg- 7ft) catches it x 60 feet down field for a touchdown! Y xtan(0) Where g 32.2 ft/s (acceleration due to gravity) and y Vo* sin (8) is the vertical distance. Find the angle at which the quarterback launched the ball for this victory. Verify the solution found with the user defined function Halley's with the built-in fzero function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!