473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Gauss Jacobi and Seidal on C++

50
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 8308
Which part are you having trouble with?

To get the gauss-siedel/ jacobi algorithms just google them.
Nov 4 '06 #2
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
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
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...
3
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
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...
4
by: kaygee | last post by:
I need help with writing an inverse() function....anyone got a clue?
3
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
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...
2
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...

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.