473,406 Members | 2,713 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,406 software developers and data experts.

C project - solve for a 4 variable linear equation

6
hello. I am new to this forum. I really need a help about my c++ project. . I have to explain every step to my teacher , please help me.my question is:

-----
write a program to read the coefficients of a set of linear equations with 4 unknowns and solve them together.
ex
W + 2x + 4Y - 7Z = 1
2W - 4X + 6Y = 8
5X - 7Y + 11Z = 12
3W + X - 9Y+ Z= -3
hint: use a 2D array for coefficients and a 1D array for constants
------
May 14 '07 #1
3 3565
bttf
6
hello. I am new to this forum. I really need a help about my c++ project. . I have to explain every step to my teacher , please help me.my question is:

-----
write a program to read the coefficients of a set of linear equations with 4 unknowns and solve them together.
ex
W + 2x + 4Y - 7Z = 1
2W - 4X + 6Y = 8
5X - 7Y + 11Z = 12
3W + X - 9Y+ Z= -3
hint: use a 2D array for coefficients and a 1D array for constants
------
my thread is wrong, sorry. this is for my C lesson not C++
May 14 '07 #2
AdrianH
1,251 Expert 1GB
my thread is wrong, sorry. this is for my C lesson not C++
No biggie, changed thread title.

Adrian
May 14 '07 #3
AdrianH
1,251 Expert 1GB
hello. I am new to this forum. I really need a help about my c++ project. . I have to explain every step to my teacher , please help me.my question is:

-----
write a program to read the coefficients of a set of linear equations with 4 unknowns and solve them together.
ex
W + 2x + 4Y - 7Z = 1
2W - 4X + 6Y = 8
5X - 7Y + 11Z = 12
3W + X - 9Y+ Z= -3
hint: use a 2D array for coefficients and a 1D array for constants
------
Ok, so what is your problem? We here at TSDN do not just give out answers, we help you with your problem. So I assume you have determined how you are to solve this problem, but don't know how to code it? If so, describe your solution. If not, you have to get at least that far.

If you have written some code but are having problems with it, post the code that is relevant to the problem you are having. For more info as to how to post, see the Posting Guidelines.


Adrian
May 14 '07 #4

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

Similar topics

17
by: Just | last post by:
While googling for a non-linear equation solver, I found Math::Polynomial::Solve in CPAN. It seems a great little module, except it's not Python... I'm especially looking for its poly_root()...
27
by: John Salerno | last post by:
Ok, here's a problem I've sort of assigned to myself for fun, but it's turning out to be quite a pain to wrap my mind around. It's from a puzzle game. It will help if you look at this image: ...
3
by: sql guy123 | last post by:
This is a real challenge. I hope someone is smart enough to know how to do this. I have a table TABLE1
13
by: RS | last post by:
Hi all, I am looking for a fast, efficient (tuned for speed, not size) and mature C++ code to do some numerical work with. I have looked at the Template Numerical Toolkit, which the...
1
by: wirecom | last post by:
Hi all, I am seeking a module that will do the equivalent of linear regression in 3D to yield a best fit a plane through a set of points (X1, Y1, Z1), (X1, Y1, Z1),... (Xn, Yn, Zn). The...
7
by: sptutx | last post by:
Write a C program that uses Newton's Method to solve an equation in one variable. Try solving x^x = ln2 the deriviative of x^x is x^x(lnx + 1). The 'ln' function in C is log(), and the...
7
by: Bigs | last post by:
Ok, I have been working on a Linear Equation program that will draw a line on my graph. But, I am not sure how to set up the y=mx+b in Java to return the (x1,y1) and (x2, y2) using only the slope and...
2
by: company1484 | last post by:
This program calculates the solution (x,y) of a system of linear equations in 2 variables. This is my third C programming assignment so be gentle. problem: 1)on my int menu() function definition,...
4
by: TamaThps | last post by:
How can I use a variable as a power in C++ for example an equation n^n should pow(n ,n) work? I have a program for a class where a variable FIRST is the first number inputted from a file. I...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.