Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,836 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,608 people online right now. Registration is fast and FREE... Join Now!




Solving linear equations using Iteration

 
Reply to this topicStart new topic

Solving linear equations using Iteration, help

Annasb
23 Sep, 2008 - 10:18 AM
Post #1

New D.I.C Head
*

Joined: 23 Sep, 2008
Posts: 1

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.
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Solving Linear Equations Using Iteration
23 Sep, 2008 - 10:30 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,997



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM
+Quote Post

David W
RE: Solving Linear Equations Using Iteration
23 Sep, 2008 - 06:06 PM
Post #3

D.I.C Regular
Group Icon

Joined: 20 Sep, 2008
Posts: 315



Thanked: 16 times
Dream Kudos: 275
My Contributions
QUOTE(Annasb @ 23 Sep, 2008 - 11:18 AM) *

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.


Wouldn't you know it biggrin.gif ... I just happened to have developed some code for that for a course on CFD ... Is that what you are doing?

e-mail me to discuss ... if you like ... at

dwzavitz -at- gmail -dot- com

Shalom
User is offlineProfile CardPM
+Quote Post

David W
RE: Solving Linear Equations Using Iteration
8 Oct, 2008 - 12:01 AM
Post #4

D.I.C Regular
Group Icon

Joined: 20 Sep, 2008
Posts: 315



Thanked: 16 times
Dream Kudos: 275
My Contributions
QUOTE
systems of Linear equations using Iteration: ... a Python program which will solve systems of linear equations with 3 unknowns .... using Gauss-Seidel


Wouldn't you know it ... I just happened to have developed some code for that for a recent course ... see the attached zip file for a running start smile.gif



Attached File(s)
Attached File  Gauss_Seidel_stuff.zip ( 14.97k ) Number of downloads: 65
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 04:23PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month