473,806 Members | 2,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gauss Jacobi and Seidal on C++

50 New Member
Hi!
I've got an assigment on C++..
Here it is:

It first clears the screen and then displays the next 3 lines.

a1x + b1y + c1y =d1
a2x + b2y + c2y =d2
a3x + b3y + c3y =d3

The user is then required to input the integer values for a, b, c, d and the required accuracy for which he wants the calculation. ( e.g. 3 decimal places etc.)

The user is then required to select either (1) Gauss Jacobi.
(2) Gauss Seidel.

As final output the number of iterations performed and the correct value for x, y and z should be displayed.

Plzzz help
Nov 2 '06 #1
3 8331
emaghero
85 New Member
Which part are you having trouble with?

To get the gauss-siedel/ jacobi algorithms just google them.
Nov 4 '06 #2
springdale
1 New Member
Well the whole question is the problem;

I am getting a lot of errors when compiling:

To do it; Arrays and for loops should be used.
The program would be then simple.

Can anybody out of here write the whole C++ program for us; using arrays and for loops.

C++ Gurus wanted
Nov 4 '06 #3
Aegis
1 New Member
To clear screen, you can use:

#include <stdlib.h>

<procedure>
{
system("cls");
}
Nov 4 '06 #4

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

Similar topics

1
4168
by: poopsy | last post by:
Hi..plz need help on this maths assignment.. Here it is It first clears the screen and then displays the next 3 lines. a1x + b1y + c1z =d1 a2x + b2y + c2z =d2 a3x + b3y + c3z =d3 The user is then required to input the integer values for a, b, c, d and the required accuracy for which he wants the calculation. ( e.g. 3 decimal places etc.)
3
1084
by: mano | last post by:
Hello.... Can anybody give me some idea ... How to write programs on (...(In C++)) Gauss elimination LU Decomposition finding Inverse Thanks
1
2896
by: Killer42 | last post by:
Does anyone know anything about "Gauss-Jordan Eliminations"? We have a thread asking about this in the VB forum, and I've never heard of them. I did find this page on Wikipedia, which includes algorithms in Python and MatLab - perhaps someone could help us translate to VB/VBA?
4
3942
by: kaygee | last post by:
I need help with writing an inverse() function....anyone got a clue?
3
4892
by: pragy | last post by:
Hey, can any one help me for writing a program of naive gauss elimintaion technique? It's a technique to solve system of simultaneous linear equations using matrix. thanks
6
3886
by: hvmclrhu | last post by:
Hi I have a big problem. When we compile serial.c with gcc, I get this error program is generating the sparse matrix Segmentation fault I think ı have to use malloc() but I don't know how to use and add this function in my program. Could you help me please? Thank you for your help... #include <stdio.h> #include <math.h>
2
18199
by: siew enn | last post by:
i face a problem with that solve the equation by using gauss seidel method in c++.i don't know how to write the formula in c++.Anyone can help me??
5
1880
by: shakshakshuk | last post by:
Hi everyone, I have recently been introduced to python in my university and now I have an assignment to submit. My problem is that I don't have much python programming experience. I was asked to write a program to: 1. Enter coefficients 2. check solvability 3. Do gauss seidel 4. Do gauss jacobi
0
9719
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
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
10620
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
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.