Professional Documents
Culture Documents
NM Laboratory 2 Roots Non Linear Function Bracketing Methods
NM Laboratory 2 Roots Non Linear Function Bracketing Methods
NM Laboratory 2 Roots Non Linear Function Bracketing Methods
FINAL GRADE
Name of Student:
Date of Performance:
Date of Submission:
Name of Instructor:
Signature of Instructor:
MATERIALS/EQUIPMENT REQUIRED:
Quantity Materials/Equipment
INTRODUCTION:
There are two types of closed-point system: the bisection method and the regula-falsi
method. The bisection method in mathematics is a root-finding method that repeatedly bisects an
interval and then selects a subinterval in which a root must lie for further processing. It is a very
simple and robust method, but it is also relatively law. It is a very simple and robust method, but it
is also relatively slow. Because of this, it is often used to obtain rough approximation to a solution
which is then used as a starting point for more rapidly converging methods. The method is also
called interval halving method. This method is applicable for numerically solving the equation f(x)
= 0 for the real variable x, where f is a continuous function defined on an interval {a,b} and where
f(a) and f(b) are said to be bracket a root since, by the intermediate value theorem, the continuous
function f must have at least one root in the interval (a,b)
To refine the bisection method, we can choose a ‘false-position method’ instead of the midpoint.
The false position is defined as the x-position where a line connecting the two boundary points
crosses the axis.
DISCUSSION:
INTERVAL HALVING (BISECTION) METHOD
x0 + x 1 x 1−x 0
x 2= or x 2=x 0 + (midpoint formula)
2 2
After solving for a new root estimate x 2, substitute x 2 to the given function f(x) to obtain
f(x 2) .
If f(x 2) >0, then replace “+” function limit of x with x 2 but if f(x 2) <0, then replace “-“
function limit value of x with x 2. The process is repeated until the terminating condition is satisfied.
After solving for a root estimate x 2, substitute x 2to the given function of f ( x ) to obtain
f (x ¿¿ 2)¿.
If f (x ¿¿ 2)¿.>0, then replace “+” function limit value of x with x 2 but if f (x ¿¿ 2)¿<0, then
replace “-“ function limit value of x with x 2. The process is repeated until the terminating condition
is satisfied.
PROCEDURES:
1.) Turn on and log in to your computer terminals.
2.) Click on MS Excel and prepare 2 excel worksheets for (a) Interval Halving (Bisection)
Method and (b) Regula-Falsi Method on the same file.
3.) Rename the worksheets by right clicking the lower left hand tab flap “sheet 1” to
“Bisection” and “sheet 2” to Regula-Falsi”.
4.) Obtain the roots of the given polynomial function (a) and transcendental function (b) with
its terminating criteria provided by your instructor using the worksheet for Bisection
Method.
5.) Provide a column devoted for the initial/previous values x 0 and x 1, the computed root
estimate x 2, along with their respective functions f (x ¿¿ 0)¿ , f (x ¿¿ 1)¿ and f (x ¿¿ 2)¿
respectively, and a remarks column.
6.) Program the excel worksheet to automatically compute for the new root estimate x 2 from
the given values x 0 and x 1 along with its respective functions f (x ¿¿ 0)¿ , f (x ¿¿ 1)¿ and
f (x ¿¿ 2)¿. The remarks column should be programmed automatically display if the
iterative process needs to continue (“continue”) or stop (“terminate”).
7.) Copy the program to repeat the process until the remarks column displays “terminate”.
8.) Fill the Bisection table provided in the data sheet (table 2.1) with the last 10 iterations
made.
9.) Obtain the roots of the given polynomial function (a) and transcendental function (b) with
its terminating criteria provided by your instructor using the worksheet for the Regula-Falsi
Method.
10.) Provide a column devoted for the initial/previous values x 0 and x 1, the computed root
estimate x 2, along with their respective functions f (x ¿¿ 0)¿ , f (x ¿¿ 1)¿ and f (x ¿¿ 2)¿
respectively, and a remarks column.
11.) Program the excel worksheet to automatically compute for the new root estimate x 2, from
the given values x 0 and x 1 along with its respective functions f (x ¿¿ 0)¿ , f (x ¿¿ 1)¿ and
f (x ¿¿ 2)¿. The remarks column should be programmed automatically display if the iterative
process needs to continue (“continue”) or stop (“terminate”).
12.) Copy the program to repeat the process until the remarks column display “terminate”.
13.) Fill in the Regula-Falsi table provided in the data sheet (table 2.2) with last 10 iterations
made.
14.) Save your work using a specified file name given by your instructor on your “my
documents”.
DATA SHEET
Given functions:
a. Polynomial Function: f ( x )=x 10−1
b. Transcendental Function: f ( x )=e x −2
Terminating Conditions:
a. 10 iterations
b. f ( x 2 ) ≤ 0.01
Approved by:
Instructor
GRAPH:
DISCUSSION OF RESULTS:
CONCLUSION:
PROBLEMS/EXERCISES:
1.) What function command did you use for the remarks? Show its syntax format.
2.) What function command is used for determining the succeeding iterative initial values
for x 0 and x 1? Show its syntax format.
3.) Evaluate 2 Chapter problems from the book Numerical Methods for Engineers (By Chapra
and Canale) involving Bisection Method (Chapter 5) using your excel Bisection Method
worksheet.
4.) Evaluate 2 Chapter problems from the book Numerical Methods for Engineers (By Chapra
and Canale) involving Regula-Falsi Method (Chapter 5) using your excel Bisection Method
worksheet.