Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey guys, I'm having a bit of trouble with a MATLAB function and could use some help. I've attached the photo of the description below.

Hey guys, I'm having a bit of trouble with a MATLAB function and could use some help. I've attached the photo of the description below.

image text in transcribedimage text in transcribedimage text in transcribed

In this exercise, you wi use Newton's method to approximate a real zero of a given function Theory: A number x is a zero ofa function f if f(x) :0. A real zero is an x-intercept of the function. Also, the zeros ofa function f are the roots of the equation f(x)30 In this exercise, you are estimating a root of the equation f(x) 0. You will graph the function and, in part (a), you wi hoose the initial approximation xo of the specified zero of f(x). In part (b), the initial approximations will be assigned to you. The number N will represent the number of consecutive iterations for the desired root. The iterations are given by formula: he f(x (1) n 0 N. f (xn) Note: when f is close to zero at the initial point, the process does not work properly. It may converge very slow or may not converge at all. It makes Newton's method sensitive to the value of the initial approximation. You will be working with two functions (a) f (x) arctan x +x-1 and (b) (c) (x) x-1 Part (a) Approximation of the zero of f (x) arctanx+x-l **To find the initial approximation xo, you will create a 2-Dline plot interactively using the Plots tab in the MATLAB toolstrip (below is the link to the MATLAB page) httpsillwww.mathworks.com/helplmatlablcreating plots/example-choosing-a-graph- type htm "open up your diary file and type nspace(0,4,8) atan(x) x-1; Then follow the instruction specified in the link above to create a plot (use the first option under Plots in MATLAB toolstrip). It should give you an output: plot(x,y), figure (gcf Save the figure as a JPEG image and place it later in the word document, in which you copy your diary file From the graph, choose the initial approximation x of the root off the equation y 0. Input the function f and its derivative g in your diary file. Type: Syms X atan(x) (Hit: "Enter")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions