Skip to content

the-grid/rref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rref

solve systems of linear equations using gaussian elimination

testling badge

build status

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

About

solve systems of linear equations using gaussian elimination

Resources

License

Stars

Watchers

Forks

Packages

No packages published