rref
v0.0.1
Published
solve systems of linear equations using gaussian elimination
Downloads
410
Readme
rref
solve systems of linear equations using gaussian elimination
example
var rref = require('rref');
console.log(rref([
[ 2, 1, -1, 8 ],
[ -3, -1, 2, -11 ],
[ -2, 1, 2, -3 ]
]));
output:
[ [ 1, 0, 0, 2 ], [ 0, 1, 0, 3 ], [ 0, 0, 1, -1 ] ]
methods
var rref = require('rref')
rref(matrix)
Compute the reduced row echelon form for matrix
in-place, returning and
modifying matrix
.
matrix
should be an array of arrays.
install
With npm do:
npm install rref
license
MIT
kudos
based on the rosetta code rref javascript entry