Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise #2: No simple formulae exist to compute the zeros of a general function f(x) (i.e. the values of x for which f(x)=0). This includes

image text in transcribedimage text in transcribed

Exercise \#2: No simple formulae exist to compute the zeros of a general function f(x) (i.e. the values of x for which f(x)=0). This includes even polynomial functions of degree greater than 4 . Instead, numerical methods must be used to find these zeros. We have previously considered a "brute force" approach to this problem: compute f(x) on a large range of values for x, and look for the one which results in f(x) being close to zero. In addition to being inelegant, this approach requires a large amount unnecessary computation (and hence time). It is far more efficient, and elegant, to use a more sophisticated "guess and check" algorithm to "home in" on a value of x for which f(x)=0, using as few computations as possible. One common algorithm is known as Newton's method, which can be summarized as follows: Start with an (essentially arbitrary) initial guess z for one of the zeros of the function f(x). Compute f(z). If f(z)=0 then z is a zero and we are done. Of course, it is unlikely that the initial guess for z really is a zero, so generally f(z)=0. In this case, Newton's method generates a new, "improved" guess for the zero z according to the formula z=zf(z)f(z) In this formula the "old" guess for z is used on the right-hand side of the equation, and the result is used to define the new guess for z. We then check this new z to see if f(z)=0, and if not repeat the above calculation with the new z to generate yet another new z, continuing in this fashion as long as necessary until f(z)=0. 1 Of course, the finite precision of the computer means that we can't really continue the process of generating better and better guesses until f(z) is exactly zero, as this would require essentially infinite time. Rather, must settle for zeros which satisfy f(z)

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

2. Why?

Answered: 1 week ago

Question

1. Where do these biases come from?

Answered: 1 week ago