Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Three Equations with Three Unknowns
Replies: 15   Last Post: Jul 30, 2013 5:44 PM

 Messages: [ Previous | Next ]
 KBH Posts: 200 Registered: 3/14/10
Re: Three Equations with Three Unknowns
Posted: Jul 26, 2013 11:06 PM

Waldek Hebisch wrote:

Your code is badly written. First, it is way too long. Second, variables have meaningless names. Why you limit yourself to 3 by 3 systems, code for n by n system is not harder to write. Do you know about arrays in programming languages? If you really want code limited to 3 x 3 system, then it may be hard to find. OTOH code for n x n systems is easy to find. If you want Pascal code, there are "Numerical Recipes in Pascal" with code that used to be freely available on the net.

KBH writes:

The code began as a parabolic curve fit program and that's why it's for 3 x 3 linear equations. However, the 3 x 3 program allows more view of the math operations and less view of a complex program structure. Then understanding the math operations would allow a more complex program for n x n systems to be written.

Much of the length of the program is the data input. It's a functioning program but not a fully developed program with looping input.

The present post just added some detail that was missed when converting the code from curve fit to solution of 3 x 3 linear equations.

The newsgroup has readers and the code is presented at an easy to understand level.

Date Subject Author
7/24/13 KBH
7/24/13 KBH
7/24/13 William Elliot
7/24/13 KBH
7/24/13 service1588@gmail.com
7/24/13 Peter Percival
7/24/13 quasi
7/24/13 KBH
7/25/13 Ken.Pledger@vuw.ac.nz
7/25/13 Virgil
7/25/13 fom
7/26/13 KBH
7/26/13 Waldek Hebisch
7/26/13 KBH
7/30/13 Ken.Pledger@vuw.ac.nz
7/26/13 KBH