0% found this document useful (0 votes)
44 views3 pages

Laboratory - Activity 3

1. The document describes laboratory activities using the Bisection Method and Regula Falsi Method to find the root of the function y = sin2(x) + x - 2. Students are instructed to implement the methods in Microsoft Excel using an initial interval of [1, 2]. 2. For the Bisection Method, the root at the 20th iteration rounded to three decimal places is 1.160. For the Regula Falsi Method, the root at the 10th iteration rounded to three decimal places is also 1.160. 3. Based on the activity, the Regula Falsi Method converged faster than the Bisection Method.

Uploaded by

Abby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views3 pages

Laboratory - Activity 3

1. The document describes laboratory activities using the Bisection Method and Regula Falsi Method to find the root of the function y = sin2(x) + x - 2. Students are instructed to implement the methods in Microsoft Excel using an initial interval of [1, 2]. 2. For the Bisection Method, the root at the 20th iteration rounded to three decimal places is 1.160. For the Regula Falsi Method, the root at the 10th iteration rounded to three decimal places is also 1.160. 3. Based on the activity, the Regula Falsi Method converged faster than the Bisection Method.

Uploaded by

Abby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

xLABORATORY ACITIVITY # 3

Bisection Method and Regula Falsi Method

OBJECTIVES

At the end of this laboratory activity, you should be able to:

1. Create a spreadsheet in Microsoft Excel that follows the Bisection Method and the Regula
Falsi Method.
2. Observe and describe the behavior of the resulting values from different methods.

TOOLS REQUIRED

1. Desktop computer or laptop with Microsoft Excel.

INSTRUCTIONS

Given the curve 𝑦 = 𝑠𝑖𝑛2(𝑥) + 𝑥 − 2

BISECTION METHOD

PROCEDURE:

1. Label the A to G columns as: Iteration, 𝑥𝑙, 𝑥𝑟, 𝑥𝑚, 𝑓(𝑥𝑙), 𝑓(𝑥𝑟), and 𝑓(𝑥𝑚). Then, put the
values of interval: 1 and 2 to B6 and C6 respectively and input the equation 𝑥𝑚 𝑥𝑙+𝑥𝑟
= 2
=(B6+C6)/2 to cell D6. Next, input the equation =SIN(B6)^2+B6-2 in cell E6 and then drag to
the right up to cell G6.
2. For 2nd iteration, we will find the value of 𝑥𝑙 𝑎𝑛𝑑 𝑥𝑟, using IF function. It is use to
determine whether the constructed if statement is true or false, put the equation
=IF(E6*G6>=0,D6,B6) in cell B7 and the equation =IF(F6*G6>=0,D6,C6) in cell C7, after
𝑥𝑙+𝑥𝑟
find the midpoint of cell B7 and C7 by inputting the equation 𝑥𝑚 = =(B7+C7)/2 in
2
cell D7.
3. Lastly, drag the cells E6, F6, and G6 down to the cell E7, F7, and G7. After these steps, select the
values in row 7, drag row down until it reaches the 20th iteration.

REGULA FALSI METHOD

PROCEDURE:
1. Applying the same function and interval in Bisection Method, Label the A and G columns as:
Iteration, 𝑥𝑙, 𝑥𝑟, 𝑥𝑚, 𝑓(𝑥𝑙), 𝑓(𝑥𝑟), and 𝑓(𝑥𝑚). Then, put the values of interval: 1 and 2
𝑦𝑙(𝑥𝑟−𝑥𝑙)
to B34 and C34 respectively and input the equation 𝑥𝑚 = + =B34+(E34*(C34-
𝑦𝑙−𝑦𝑟
𝑥𝑙
B34))/(E34-F34) in cell D34. Next, input the equation =SIN(B34)^2+B34-2 in cell E34 and
then drag to the right up to cell G34.
2. For 2nd iteration, we will find the value of 𝑥𝑙 𝑎𝑛𝑑 𝑥𝑟, using IF function. It is use to
determine whether the constructed if statement is true or false, put the equation
=IF(E34*G34>=0,D34,B34) in cell B35 and the equation =IF(F34*G34>=0,D34,C34) in cell
C35, after find the midpoint of cell B35 and C35 by inputting the equation 𝑥𝑚 = 𝑥𝑙 +
𝑦𝑙(𝑥𝑟−𝑥𝑙)
=B35+(E35*(C35-B35))/(E35-F35)in cell D35.
𝑦𝑙−𝑦𝑟
3. Lastly, drag the cells E34, F34, and G34 down to the cell E35, F35, and G35. After these steps,
select the values in row 35, drag row down until it reaches the 10th iteration.

SUMMARY:

1. Solve for the root using the Bisection Method through Microsoft Excel. Let the initial interval be
[1, 2]. What is the root at the 20th iteration rounded off to three decimal places?
- Using the Bisection Method, the interval was getting smaller and gradually approaching the
true value of the roots. By doing this method through Excel, the roots at the 20 th iteration is
1.160.
2. Solve for the root using the Regula Falsi Method through Microsoft Excel. Let the initial interval
be [1, 2]. What is the root at the 10th iteration rounded off to three decimal places?
- Using the Regula Falsi Method, the process is just the same as the Bisection Method
except that the formula for solving the value of middle x is 𝑥𝑚 = + 𝑦𝑙(𝑥𝑟−𝑥𝑙) . By
𝑦𝑙−𝑦𝑟
𝑥𝑙
doing this method through Excel, the roots at the 10th iteration is 1.160.
3. From the two methods, which one converged faster?
- Based on the laboratory activity using Excel that we performed, the Regula Falsi Method
converges faster compared to Bisection Method.

You might also like