Starting from:

$25

ORL-Lab 1 Solved

 

Class 1 

 

1.     Write a program for Gauss Seidel algorithm.  

2.     Use this algorithm as a function and solve ๐‘š simultaneous equations with ๐‘› unknowns (๐‘š < ๐‘›) to obtain basic solutions.  

3.     Check your program for the following examples and find the basic solutions. Consider the non-negativity constraint for all. 

a.     2๐‘ฅ! + 3๐‘ฅ" − 2๐‘ฅ# − 7๐‘ฅ$ = 1, ๐‘ฅ! + ๐‘ฅ" + ๐‘ฅ# + 3๐‘ฅ$ = 6, ๐‘ฅ! − ๐‘ฅ" + ๐‘ฅ# + 5๐‘ฅ$ = 4. 

b.     2๐‘ฅ! + ๐‘ฅ" − ๐‘ฅ# = 2, 2๐‘ฅ! − ๐‘ฅ" + 5๐‘ฅ# = 6, 4๐‘ฅ! + ๐‘ฅ" + ๐‘ฅ# = 6. 

c.     ๐‘ฅ! − 3๐‘ฅ# + 3๐‘ฅ$ = 6, ๐‘ฅ" − 8๐‘ฅ# + 4๐‘ฅ$ = 4. 

d.     5๐‘ฅ! + 4๐‘ฅ" + 2๐‘ฅ# = .6, 7๐‘ฅ! + 2๐‘ฅ" + ๐‘ฅ# = .35. 

e.      !" ๐‘ฅ! + 2๐‘ฅ" + ๐‘ฅ# = 24, ๐‘ฅ! + 2๐‘ฅ" + 4๐‘ฅ# = 60. 
 

More products