Greg's DOWNLOAD page.

Ctrl +D to bookmark this site.


MATRIX

This simple DOS app sovles a system of linear equations using the Gauss-Jordan method. It is possible to solve a system of up to 40 equations in 40 unknowns, although a system that large would be cumbersome with the basic keyboard i/o system used here.

Total pivoting is used to reduce the numerical round-off errors to the smallest possible values.

The program first prompts for the number of equations (N). It then prompts for each of the coeficients in the N equations. Next, it displays the augmented matrix which it is going to solve, and allows the user to change one of the coefficients if needed. Next, the user is prompted for a file name to save the solution vector. If a zero is entered, the solution vector is displayed on screen instead of being saved. Finally, the entire reduced matrix is displayed on screen.

The program was compiled in Borland turbo C++ version 1.0, and the source code is available below.

The author (Greg Adams, Moorestown Microwave Co.) reserves no rights, and assumes no responsibility for the use of this code.


DOWNLOAD NOW
DOWNLOAD the SOURCE CODE (C++)
Tutorial
More
More
More

HOME

Click Here!