473,738 Members | 4,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Solving systems of Linear equations using Iteration

1 New Member
hi guys..
i got a problem.. could anyone help me write a program..

the program is as follows:-

2. Solving systems of Linear equations using Iteration:
You are required to write a C++ program which will solve system of linear equations with 3 or 4
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)
enter the number of unknowns, coefficients details, ... (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 (5) calculate and display the required results
using both methods.
Oct 6 '07 #1
6 8716
Banfa
9,065 Recognized Expert Moderator Expert
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

Then when you are ready post a new question in this thread.

Banfa
Administrator
Oct 6 '07 #2
JosAH
11,448 Recognized Expert MVP
Also MathWorld is a great repository.

kind regards,

Jos
Oct 6 '07 #3
Darklord
1 New Member
Hi, I am Mr Doomun, lecturer of the University of Mauritius. Please do give any students answers to this assignment. They are expected to do this by themselves.

thanks in advance.
Oct 13 '07 #4
JosAH
11,448 Recognized Expert MVP
Hi, I am Mr Doomun, lecturer of the University of Mauritius. Please do give any students answers to this assignment. They are expected to do this by themselves.

thanks in advance.
I take it you wanted to write "Please don't give any students answers ..."

kind regards,

Jos
Oct 13 '07 #5
kanishkporwal
1 New Member
You can get some help on how to solve the equations at tutorvista
there you will also find systems of equations solver for your convinence.
Sep 24 '11 #6
Peter85
1 New Member
I recommend online equation calculator - www.equationcal culator.org. Solves equations up to 3rd power of unknown.
Feb 15 '15 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4254
by: Guenther Sohler | last post by:
I am looking for a apropriate c library to solve my sparse linear equation system. I have n variables and m equations. m might be less, equal or greater then n!!!! If there are less equations than variables, the system should effectively set undefined variables to 0
2
1435
by: Anatoly | last post by:
Hi All !!! Can anyone give me link to the C++ source or to the compiled program unit (compatible with Microsoft VC++), designed for the solving of the algebraic linear systems with rare matrices ? The main problem is next: the main rare matrix of the system is in the common form, but not in the special (non triangular, non symmetric, ...). That's why many methods for such systems is unusual. Because of being rare, matrix can be huge,...
669
26088
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
4
9350
by: Thomas | last post by:
Hi, I've to solve a system of linear equations and inequations in C++. Are there (free) librarys for that topic? Regards, Thomas
5
1804
by: Fabian Wein | last post by:
Hi, my question is limited to moderm and powerfull architectures (we do simulation and solve large systems of linear equations). Are there any architectures arround where an int is unsigned? I have in my mind that this is not defined by the standard - right? I also found no list which gives the types for different architectures/ compilers.
0
1509
by: fdu.xiaojf | last post by:
Hi all, I have two questions about scipy. 1) When I was trying to solve a single variable equations using scipy, I found two methods: scipy.optimize.fsolve, which is designated to find the roots of a polynomial, and scipy.optimize.newton, which is used for Scalar function root finding according to the help(). I have tried both, and it seemed that both worked well, and fsolve ran
2
2108
by: Federico Zenith | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everybody, I am looking into a problem that probably someone had before, so I hope I can avoid reinventing the wheel... I am looking into different alternatives to simulate a chemical process with a number of unit operations (heat exchangers, chemical reactors and so on). There are some commercial products (such as Hysys) that do this,
4
4880
by: sdufoo | last post by:
Hallo guys, I have to solve a system of Differential equations: http://picasaweb.google.de/sdufoo/EcuacionesDiferenciales02/photo#5228386949051570594 these are the equations of an induction motor, I have to program it in C because I will use a DSP (ADSP21062) in order to control the torque of the motor. I've read a little bit, and I think that I have to solve the equations using numerical methods, but there a lot of them, and It could be...
1
3207
by: HypeBeast McStreetwear | last post by:
Hello everyone. I got a assignment that states. The set of linear equations a11X1 = a12X2 = c1 a21X1 = a22X2 = c2 May be solved using Cramers rule: X1 = c1a22 c2a12 a11a22 a12a21
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.