Discuss the following basic idea of the chapter
- Write the algorithms of all methods
- List the similarity and difference between all methods
(1),
(a)algorithm of bisection method
Start
Obtain a function f in the appropriate form (f(x)=0⇔x=g(x)) and assume that a root α exists. Obtain an initial approximation x0, a maximum number of iterations, and an error tolerance ϵ.
For i=1,2,... up to the maximum number of iterations prescribed:
Step 1: Obtain the successive approximations by the fixed point method with the following formula:
(1)Step 2: Check the error tolerance:
(2)If the above inequality is true, then stop. xn is a good approximation of the root α. If the inequality above is false, then continue to compute successive approximations until the maximum number of iterations is reached. If the maximum number of iterations is reached and the error tolerance ϵ is not obtained, then print out a failure message.
Obtain a function f and assume that a root α exists. Obtain an initial approximation x0 to this root. Also obtain a maximum number of iterations allowed and an error tolerance ϵ.
For i=1,2,... up to the maximum number of iterations prescribed:
Step 1: Obtain the successive approximations of the root α with the following formula:
(1)Step 2: Check the error tolerance:
(2)If the above inequality does not hold, then continue to obtain successive approximations for α. If the above inequality is true, then further verify the accuracy of xn. Check that to see whether or not:
(3)If the signs of f(xn+ϵ) and f(xn−ϵ) are opposites of each other, then the accuracy of xn is verified and stop the algorithm. xn is a good approximation to α. If the signs of f(xn+ϵ) and f(xn−ϵ) are the same, then α is not contained in the small interval [xn−ϵ,xn+ϵ]. Print out an error message.
If the maximum number of iterations is reached, then print our a failure message.
How to compare between two different numerical methods which these methods have same Big O, i.e local truncation error to show that the one numerical method producing better results in comparison to another method by theories tools
1.List all the Algorithm Method
a)bisection method
b)False position(Regular false) method
c)Fixed point iteration method
d)Newton method
e)scant method
2.similarity and Difference between the all Algorithm
1.Bisection method
@It is one of the most basic problem of numerical approximation
@its process of dividing aset continually in half to search for the solution to acertain problem
@It states if f(x) is acontious function defined on the interval (ao.bo) then there is aroot b/n p1 and p2
2.Newton Raphson method
@It is one of the well known numerical approaches for solving aroot-finding problem
@It is the shortest of all methods
3.Secant method
.This method uses asecant line joining two points that cut curves function
.The secant method is avariant of Newton's method where f(xn) is replaced by its finite difference approximation based on the evaluated function value at xn and athe previous iteration xn-1
4.False poison method
.In this technique one uses result that are known to be false to converge to the true root
.This method chooses an initial approximations p0 and p1 such that f(p0).f(p1)<0
5.Fixed point iteration method
.Fixed point: apoint say S is called affixed point if it sasifies the equation x=g(x)
.Fixed point iteration: the transcendental equation f(x)=0 can be converted