Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Disclaimer:</strong> I don't know anything about Gauss-jordan elimination and never heard of it.</p> <p>The answer is clear though! </p> <p>Either your math is off, or you are grabbing the wrong numbers. </p> <p>As was suggested by manuell in the first comment to your post, you need to see what numbers are being used. </p> <p>A simple way to debug in console that I use is: <code>writeln('whatever variable: ' + VARIABLE)</code>.</p> <p>you can use a <code>MemoList</code> if you are in a GUI development to do the same thing. You will be surprised of the results sometimes. </p> <p>Also use the right functions for what you want <code>floatToStr</code> and <code>strToFloat</code> are not what you want probably.</p> <p><strong>Edit:</strong></p> <p>Looked up Gauss-jordan elimination also known as row reduction and it turns out to be simple matrices algebra. </p> <p>I never knew that is what is called likely because although attributed to Gauss, it was <a href="http://en.wikipedia.org/wiki/Gaussian_elimination#History" rel="nofollow">already known</a> to Chinese mathematicians in 179 AD.</p> <p>A good example is found here: <a href="http://www.youtube.com/watch?v=Xc37YM59vVA" rel="nofollow">http://www.youtube.com/watch?v=Xc37YM59vVA</a></p> <p>A good example in Delphi, although written in an earlier version: Delphi-3 programming language, with source code is found <a href="http://www.davdata.nl/math/gauss.html" rel="nofollow">here</a></p> <p>Another example but has much more than Gaussian elimination so you have to look at the code can be found <a href="http://www.monash.edu.au/policy/spartext.htm" rel="nofollow">here</a></p> <p><a href="http://megasnippets.com/en/source-codes/cpp/gauss_jordan_elimination" rel="nofollow">Here</a> is an example in C++</p> <p>So now I am sure you have solved it or lost your login to SO. Good luck and enjoy the process as that is the best part.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload