Solving systems of Linear equations using Iteration:
You are required to write a Python program which will solve system of linear equations with 3 unknowns
(to be entered by the user).
Your program should display a menu which will allow the user to choose whether he wants to (1)
coefficients (2) check whether the linear system can be solved using iteration (3) calculate and display the
required results using Gauss-Seidel (4) calculate and display the required results using Gauss-Jacobi
Note that in all cases, the outcomes of the iterations should be displayed. Also if the values of the
unknowns are not converging, your program should stop at the 15th iteration.

Can someone guide me on this please?
I got some really good notes from this forum before and need ur help again.

## All 9 Replies

i also have this problem pheenix45....if you find out how to solve it...plz tell me..

Come on people, you need to do your homework yourself or you will not learn anything! Salem's advice is your best start.

Can we insert menu in python without adding any new module? plz help... i need to submit a work and i think my lecturer don't have wxPython, TKinter, PythonWin etc...thanx

Can do something like

a = int(raw_input('Enter first unknown' ))
b = int(raw_input('Enter second unknown' ))
c = int(raw_input('Enter third unknown' ))

well i know about Gauss Seidel and Gauss Jacobi but the problem is i've learnt python for about 2 weeks only and im having to work a menu.

I wanted to know if i could get some help to start the menu.I'll do the maths part working with the iterations etc as i learnt about loops today :D

Cheers

So you're saying that the topic is basically wrong and it should have been "help to display a menu", and all that stuff about Gauss and coefficients was just a red herring to throw everyone off to thinking about a completely different issue.

Try this :)

(1) Enter the coefficients
(2) Check solvability
(3) Solve the system using the Gauss-Seidel method
(4) Solve the system using the Gauss-Jacobi method
"""

while True: