Instructions for Matrix Inversion:
Return
to the Math APIs page.
-
After ...herokuapp.com above you should type / followed by your (square) matrix.
-
Spaces are allowed - but discouraged - because %20 will replace each space after you hit return, thereby making the address uglier.
-
Input your matrix (A) as a comma-separated list of comma-separated lists of numbers, each inner-list being a row of the matrix. Contain both inner- and outer lists with brackets.
-
Represent each number as an integer or decimal but not as fraction, because "/" has special meaning in a URL. Do not include a comma in any number (even one exceeding one thousand), because that will get confused with the commas which separate different numbers.
-
Example: Click here for the url ...herokuapp.com/[[1,2],[3,4]], which represents a simple 2x2 matrix.
-
If you want to solve a matrix equation of the form Ax = b, then after your matrix type "/" followed by one or more column vectors (b), formatted in the same way as for the rows of your square matrix.
-
Example: Click here for the url ...herokuapp.com/[[1,2],[3,4]]/[[3,5],[2,4],[-1,0]], which represents 3 different systems of equations, each having the same square matrix A (which is the same as in the example above):
-
If you want the response in json rather than in html, simply insert /api between ...heroku.com and the matrix.
creator:
Peter Knipp
repo:
github.com/pknipp/matrix-inverse