linear-solve

Solve a system of linear equations. Invert a matrix. Nothing else

Usage no npm install needed!

<script type="module">
  import linearSolve from 'https://cdn.skypack.dev/linear-solve';
</script>

README

Build Status

Solve linear systems

linear.solve([[ 1, 2],[ 3, 4]], [5, 11]);
// returns [1, 2]

Invert matrices

linear.invert([[2,0],[0,2]]);
//returns [[.5, 0], [0, .5]]

Nothing more

This library is very small, and can be used both in node and in the browser.

License

MIT