Go to file
archfan f4215378c7
Add documentation to README
2018-10-30 20:22:54 -04:00
LICENSE Initial commit 2018-10-30 19:47:03 -04:00
Matrix.java Add Matrix.java 2018-10-30 19:47:49 -04:00
README.md Add documentation to README 2018-10-30 20:22:54 -04:00

README.md

java-3rd-order-systems

A Java class that can be used to solve third-order systems of equations with augmented matrices.

How to use

The constructor accepts 12 arguments of type int, found from the coefficients like so:

ax + by + cz = d

ex + fy + gz = h

ix + jy + kz = l

Then, for example, Matrix m = new Matrix(a, b, c, d, e, f, g, h, i, j, k, l);

To solve a matrix, use m.solve(), which returns a double[]. For example, double[] result = m.solve();

result[0] is the value of x, result[1] is the value of y, and result[2] is the value of z.