$25
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.