java-3rd-order-systems/README.md

21 lines
551 B
Markdown
Raw Permalink Normal View History

2018-10-30 16:47:03 -07:00
# java-3rd-order-systems
A Java class that can be used to solve third-order systems of equations with augmented matrices.
2018-10-30 17:22:54 -07:00
# 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.