0% found this document useful (0 votes)
29 views

Bolia - ENNUMA1L - LAB 6

The document discusses solving a system of linear equations using the Gauss-Seidel method. It provides the equations, initial values, iterative process, and results. The solution converges after 32 iterations with errors less than 0.01%.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Bolia - ENNUMA1L - LAB 6

The document discusses solving a system of linear equations using the Gauss-Seidel method. It provides the equations, initial values, iterative process, and results. The solution converges after 32 iterations with errors less than 0.01%.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Bolia, Andrei Joel A

BSCE211C
ENNUMA1L

A C
EQN. 3 25 -4 9 -16 5 -2
EQN. 5 0 4 0 3 0 8
EQN. 4 2 0 -5 0 3 3
EQN. 2 -0.5 6 2 -8 4 0
EQN. 1 1 -2 3 -4 5 -12

GAUSS-SEIDEL METHOD

ERROR
# A1 A2 A3 A4 A5
A1 A2
0 0 0 0 0 0
1 - 0.080000 2.000000 - 0.632000 1.347000 - 0.127200 0.080000 2.000000
2 1.355040 0.989750 - 0.134304 0.560447 - 1.746168 1.435040 1.010250
3 0.834629 1.579665 - 1.313849 - 0.068962 - 1.201920 0.520411 0.589915
4 0.841980 2.051722 - 0.984360 0.639118 - 0.645798 0.007352 0.472056
5 1.140840 1.520662 - 0.531143 0.613509 - 1.210410 0.298859 0.531060
6 0.989245 1.539868 - 0.930548 0.255231 - 1.219388 0.151594 0.019206
7 0.908602 1.808577 - 0.968192 0.447903 - 0.919052 0.080644 0.268709
8 1.028390 1.664073 - 0.740075 0.539235 - 1.064615 0.119788 0.144504
9 1.010713 1.595573 - 0.834484 0.392582 - 1.149157 0.017677 0.068500
10 0.956790 1.705564 - 0.906778 0.418100 - 1.030585 0.053923 0.109990
11 0.993032 1.686425 - 0.821139 0.482177 - 1.045612 0.036242 0.019139
12 1.003153 1.638367 - 0.826106 0.436746 - 1.100223 0.010122 0.048058
13 0.979099 1.672440 - 0.868494 0.425901 - 1.065026 0.024054 0.034073
14 0.985830 1.680574 - 0.844683 0.455132 - 1.054021 0.006731 0.008134
15 0.995067 1.658651 - 0.834386 0.446190 - 1.077970 0.009236 0.021923
16 0.986918 1.665358 - 0.852015 0.435347 - 1.071754 0.008148 0.006707
17 0.986156 1.673489 - 0.848590 0.445458 - 1.062315 0.000763 0.008132
18 0.990807 1.665907 - 0.841066 0.446080 - 1.070295 0.004651 0.007583
19 0.988879 1.665440 - 0.846625 0.440471 - 1.071248 0.001927 0.000467
20 0.987407 1.669647 - 0.847786 0.442951 - 1.066590 0.001473 0.004207
21 0.989153 1.667786 - 0.844293 0.444650 - 1.068421 0.001747 0.001860
22 0.989051 1.666513 - 0.845432 0.442500 - 1.069946 0.000102 0.001274
23 0.988187 1.668125 - 0.846693 0.442686 - 1.068223 0.000864 0.001612
24 0.988673 1.667986 - 0.845465 0.443719 - 1.068286 0.000486 0.000139
25 0.988883 1.667211 - 0.845419 0.443105 - 1.069157 0.000210 0.000775
26 0.988523 1.667671 - 0.846085 0.442871 - 1.068688 0.000360 0.000461
27 0.988593 1.667847 - 0.845776 0.443310 - 1.068466 0.000070 0.000176
28 0.988746 1.667518 - 0.845581 0.443213 - 1.068823 0.000153 0.000329
29 0.988633 1.667590 - 0.845841 0.443031 - 1.068761 0.000113 0.000073
30 0.988609 1.667726 - 0.845813 0.443173 - 1.068605 0.000024 0.000136
31 0.988681 1.667620 - 0.845691 0.443197 - 1.068716 0.000071 0.000106
32 0.988657 1.667602 - 0.845766 0.443111 - 1.068742 0.000023 0.000018
33 0.988632 1.667667 - 0.845793 0.443141 - 1.068671 0.000026 0.000065
ITERATION EQUATION SUMMARY
(2-4*A2-9*A3-16*A4-5*A5) The solution to the system of linear equation using
A1
25
(8-0*A1-0*A2-3*A4-0*A5) a1 =
A2
4 a2 =
(3-2*A1-0*A2-0*A4-3*A5) a3 =
A3
-5 a4 =
(0-(-0.5)*A1-6*A2-2*A3-4*A5) a5 =
A4
-8
(12-1*A1-2*A2-3*A3-4*A4) Terminates at the 32nd Iteration with less tha
A5
5 note: the initial value used are a1=a2=

ERROR
REMARKS
A3 A4 A5

0.632000 1.347000 0.127200 CONTINUE


0.497696 0.786554 1.618968 CONTINUE
1.179545 0.629409 0.544249 CONTINUE
0.329490 0.708080 0.556122 CONTINUE
0.453217 0.025608 0.564613 CONTINUE
0.399405 0.358278 0.008978 CONTINUE
0.037644 0.192672 0.300336 CONTINUE
0.228117 0.091333 0.145563 CONTINUE
0.094409 0.146654 0.084542 CONTINUE
0.072294 0.025518 0.118572 CONTINUE
0.085640 0.064077 0.015026 CONTINUE
0.004967 0.045431 0.054612 CONTINUE
0.042389 0.010845 0.035197 CONTINUE
0.023811 0.029231 0.011005 CONTINUE
0.010298 0.008943 0.023949 CONTINUE
0.017629 0.010842 0.006216 CONTINUE
0.003424 0.010111 0.009439 CONTINUE
0.007524 0.000623 0.007980 CONTINUE
0.005559 0.005609 0.000953 CONTINUE
0.001161 0.002480 0.004658 CONTINUE
0.003494 0.001698 0.001831 CONTINUE
0.001140 0.002149 0.001525 CONTINUE
0.001260 0.000186 0.001722 CONTINUE
0.001228 0.001033 0.000063 CONTINUE
0.000046 0.000614 0.000871 CONTINUE
0.000666 0.000234 0.000469 CONTINUE
0.000309 0.000439 0.000222 CONTINUE
0.000194 0.000097 0.000357 CONTINUE
0.000259 0.000182 0.000062 CONTINUE
0.000028 0.000142 0.000156 CONTINUE
0.000122 0.000024 0.000111 CONTINUE
0.000076 0.000086 0.000026 TERMINATE
0.000026 0.000030 0.000071 TERMINATE
SUMMARY
stem of linear equation using Gauss-Seidel Method are:

0.9889
1.6654
-0.8466
0.4405
-1.0712

32nd Iteration with less than 0.01% absolute error.


he initial value used are a1=a2=a3=a4=a5=0
Bolia, Andrei Joel A.
BSCE211C
ENNUMA1L

Femur Length (cm) Height (cm) FEMUR LENGTH HEIGHT


x^2 xy
50.1 178.5 x y
48.3 173.6 50.1 178.5 2510.01 8942.85
45.2 164.8 48.3 173.6 2332.89 8384.88
44.7 163.7 45.2 164.8 2043.04 7448.96
44.5 168.3 44.7 163.7 1998.09 7317.39
42.7 165.0 44.5 168.3 1980.25 7489.35
39.5 155.4 42.7 165.0 1823.29 7045.5
38 155.0 39.5 155.4 1560.25 6138.3
38 155.0 1444 5890
SUM 353 1324.3 15691.82 58657.23
n 8

βo= 80.681 LINEAR REGRESSION


β1= 1.923 y= 80.681 + 1.923x

Coeffecient Correlation

r= 0.965836849

since r = 0.965836849, therefore there is a stong positive relationship between the femur length and heigh

Correlation of determination

r= 0.932840818

Having r^2 = 0.965837 means that about 96.58% of the variation in dependent variable, height, is explained by
the variation of independent varibale, femur length. While the rest 3.42% is unexplain

If Jeremie was ask to predict the height when the femur length is 40 cm, what would she say?
X Y
40 157.60

If the height of that animal is 151cm, what is its femur length?


X Y
36.57 151
y^2
Data Regression Analysis
31862.25 185
30136.96 180
27159.04 175 f(x) = 1.9230952072259 x + 80.6809239811574
170 R² = 0.932840818096996
Femur Length

26797.69
165
28324.89 160
27225 155
24149.16 150
24025 145
219680 140
36 38 40 42 44 46 48 50 52
Height

LINEAR REGRESSION
y= 80.681 + 1.923x

n the femur length and height.

iable, height, is explained by


lain

at would she say?

h?

You might also like