Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

'rocedure: Obtain the interval, x i and x i + 1 , containing the root. Evaluate the midpoint of the interval, x i + 1

'rocedure:
Obtain the interval, xi and xi+1, containing the root.
Evaluate the midpoint of the interval, xi+12=xi+xi+12
Check the sign of the product f(xi)*f(xi+12)
(a) If the sign of the product is positive, then the root lies in the RIGHT half of the interval. Replace xi by xi+12 and retain xi+1.
(b) If the sign of the product is negative, then the root lies in the LEFT half of the interval. Replace xi+1 by xi+12 and retain xi.
(c) If the product is zero, then the root is equal to xi+12.
Repeat steps 2 and 3 and stop when the absolute percent relative error of xi+12 is less than a given error, which is a very small number close to zero, e.g. error =110-5. The present value of xi+12 may then be considered as the root.
False Position Method - Also known as the Regula Falsi or Linear Interpolation method. Like the Bisection method, this method can be used once the interval containing the root has been determined. The method deals with joining the function at the upper and lower intervals with a line. The intersection point of the said line with the x axis is the new root value, which will replace either one of the intervals a better approximation of the root. Each iteration estimates the actual root more closely until a given stopping criterion is met.
'rocedure:
Let the interval containing the root be x1 and x2.
Compute f(x1) and f(x2).
Compute x3.
x3=x1f(x2)-x2f(x1)f(x2)-f(x1)orx3=x2-f(x2)(x2-x1)f(x2)-f(x1)
Check the sign of the product f(x1)*f(x3)
(a) If the sign of the product is positive, then the root is between x3 and x2. Replace x1 by x3 and retain x2.
(b) If the sign of the product is negative, then the root is between x1 and x2. Replace x2 by x3 and retain x1.
(c) If the product is zero, then the root is equal to x3.
Repeat steps 2 to 4 and stop when the absolute percent relative error of x3 is less than a given error, for example error =110-5. The value of x3 may then be considered as the root.
4.5 Exercises
Exercise 1
Create a program that will perform root location for the equation f(x)=x3-14x2+59x-70 using Bisection root-finding methods using [1.8 and 2.1] and stopping criterion correct up to 3 significant figures. Show in 5 columns the value for xi,xi+1,xi+12, the sign of the product f(xi)*f(xi+12), and the percent relative error.
Exercise 2
Create a program that will perform root location for the equation f(x)=x3-14x2+59x-70 using False position root-finding methods using [1.8 and 2.1] and stopping criterion correct up to 5 significant places. Show in 5 columns the value for x1,x2,x3, the sign of the product f(x1)*f(x3), and the percent relative error.
Guide Questions:
Explain the distinction of Bisection and False-position with respect to the results of the experiment.
Enumerate the strengths and weaknesses of various root finding methods used in this experiment.
image text in transcribed

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions