0% found this document useful (0 votes)
38 views2 pages

Input Output Practical-1.3

jhfjhfg

Uploaded by

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

Input Output Practical-1.3

jhfjhfg

Uploaded by

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

Enter the total number of variables= 5

Enter your roll no= 128

Enter the entries of the coefficient matrix

a_11-89

a_12-7

a_13--6

a_14-5

a_15-1

a_21-6

a_22-216

a_23-2

a_24-8

a_25-2

a_31--1

a_32--11

a_33-66

a_34-0

a_35-0

a_41-0

a_42-2

a_43-5

a_44-39

a_45--1

a_51-11

a_52-9

a_53-2

a_54--7

a_55-88

Enter the coordinates of b-

b_1-313

b_2-229

b_3-6

b_4--157

b_5-88
Enter the initial approximation

x0_1= 0

x0_2= 0

x0_3= 0

x0_4= 0

x0_5= 0

Enter the value of w= 1.3

Enter error tolerance E= 0.001

Iterations x1 x2 x3 x4 x5 maxerror

1 4.571910 1.213144 0.468861 -5.392353 -0.175699 5.392353

2 3.513777 1.143514 0.293031 -3.746557 0.233600 1.645795

3 3.696750 1.075743 0.335437 -4.229201 0.038925 0.482644

4 3.690597 1.121368 0.331983 -4.093364 0.106410 0.135838

5 3.676569 1.100876 0.328526 -4.129924 0.087490 0.036560

6 3.685515 1.108730 0.331355 -4.120581 0.091550 0.009343

7 3.681535 1.105985 0.329863 -4.122817 0.091157 0.003980

8 3.683049 1.106884 0.330526 -4.122330 0.090940 0.001514

9 3.682528 1.106605 0.330259 -4.122420 0.091126 0.000521

--------------------------------

Process exited after 130.3 seconds with return value 0

You might also like