Solve equations with substitution method: Difference between revisions

m
No edit summary
Line 220:
{{works with|Delphi|6.0}}
{{libheader|SysUtils,StdCtrls}}
Rather than just provide a one-off solution fromfor this one problem, I've included code that will solve any system of equations with n-equations and n-unknowns. The code revolves around a matrix object, that contains an N by N matrix. The object can perform Gausian Elimination, which reduces the matrix to "Row Eschelon" format. From Row Eschelon format, you can back substitute and get the values for the unknowns. It also includes code to do "Gauss-Jordan" elimination, which eliminates the back substitution step. The object presented here is a subset of a more elaborate object that can perform all kinds of matrix operations.
 
 
Line 498:
 
</pre>
 
 
=={{header|Julia}}==
465

edits