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

Lab 2.docx Buto Ni Peter

Uploaded by

24-223aguilando
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)
16 views3 pages

Lab 2.docx Buto Ni Peter

Uploaded by

24-223aguilando
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

LABORATORY ACTIVITY #2

Jacobi and Gauss-Seidel Method


OBJECTIVES
At the end of this laboratory activity, you should be able to:
1. Create a spreadsheet in Microsoft Excel that follows the Jacobi and Gauss-
Seidel Method
2. Solve for unknown values in a system of linear equations using Microsoft
Excel
TOOLS REQUIRED
1. Desktop computer or laptop with Microsoft Excel
INSTRUCTIONS
1. Using the Jacobi Method and the Gauss-Seidel Method, perform the iterations through
Microsoft Excel.
6a – 3b + c = 1
a – 4b + 3c = -11
a + 5b – 12c = 10
PROCEDURES:
General:
1. Input the equation on the spreadsheet, then assign the constants of each variable (a,b,c)
on individual cells.

2. Isolate each variable which have the diagonal numbers as coefficient


a. “a”
1+ 3b−c
a=
6
b. “b”
a+3 c +11
b=
4

c. “c”
a+ 5b−10
c=
12
Jacobi method:
1. Assign a starting value for the iterations (“0”)
2. Use the equations shown for each variable
a. “a”

b. “b”

c. “c”

3. Drag to the right until repetition occurs


Gauss- Seidel method:
1. Assign a starting value for the iterations (“0”)
2. Use the equations shown for each variable
a. “a”

b. “b”

c. “c”

3. Drag to the right until repetition occurs

Questions & Answers:


a. What are the values of the variables from each method at the 10th iteration?
- Jacobi=(a=1.98168,b=3.93482,c=0.97029) Gauss Seidel=
(a=1.99866,b=3.99849,c=0.99926)
b. Which method converges faster? Gauss Seidel Method, since in its 18th iteration it
already converged to whole number
c. Do the values converge to whole numbers? What do you think should be the solutions
for the unknown variables?
- Yes, 2,4,1 respectively
-

You might also like