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_2

Step: 3

blur-text-image_3

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

What are the functions of the prefrontal cortex?

Answered: 1 week ago

Question

Describe the Indian constitution and political system.

Answered: 1 week ago

Question

Explain in detail the developing and developed economy of India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = X 52+7 - 1)(x+2) dx

Answered: 1 week ago

Question

What is gravity?

Answered: 1 week ago

Question

What is the Big Bang Theory?

Answered: 1 week ago

Question

=+ For what reasons can and do unions go on strike?

Answered: 1 week ago

Question

=+ Is secondary industrial action common and/or legal?

Answered: 1 week ago

Question

=+What sanctions are available to employers

Answered: 1 week ago