Fundamentals of Numerical Mathematics for Physicists and Engineers. Alvaro Meseguer

Чтение книги онлайн.

Читать онлайн книгу Fundamentals of Numerical Mathematics for Physicists and Engineers - Alvaro Meseguer страница 13

Fundamentals of Numerical Mathematics for Physicists and Engineers - Alvaro Meseguer

Скачать книгу

decreases with increasing images), its convergence is guaranteed. While a convergent sequence must necessarily be of Cauchy type, the reverse statement is, in general, not true (although here it will be assumed to be). Second, the quantity images has disappeared from the convergence criteria. In other words, once images for some images and beyond, we only know that the sequence has converged (in the practical sense) to some value images, that henceforth will play the role of the numerical root within the prescribed tolerance.

Graph depicts a curve intersecting at a point at the x-axis and the root is between x1 and x0.

      (1.6)equation

      (1.7)equation

      The resulting abscissa images where images intercepts the images‐axis is the new (hopefully more accurate) estimation of the root. The process can be repeated approximating images by its Taylor expansion images at images (straight gray line below the curve) in order to obtain an even better estimation images satisfying

      (1.8)equation

      and so on, leading to the iterative formula:

      Newton's Iteration:

      (1.9)equation

      A simple implementation of Newton's method can be found in the next code, whose structure essentially differs from the one seen in the bisection in two main aspects. First, the code needs an initial guess images as starting point, instead of an interval. Second, in addition to the string name corresponding to the M‐file function fun, the code also needs the one associated with images in the argument dfun. Providing the M‐file for the exact derivative entails both analytical differentiation and its subsequent programming, both being error‐prone tasks. While this is the correct procedure, it is sometimes advisable to let the computer do the job by approximating the value of images by the ratio

Скачать книгу