Sunday, August 2, 2009

Finding coefficients of linear equations in C. ( please help)?

I really need help with my C project. Please help me. I have to solce this in C.the 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

Finding coefficients of linear equations in C. ( please help)?
Solving systems of linear equations is a very well known numerical algorithm problem. I'm not sure why you would want to write your own solver, since so many already exist (see Numerical Recipes in C). If you really want to write this yourself, it's best to start with Gaussian Elimination pseudo code for example.


No comments:

Post a Comment