eqsolver

0.0.5 • Public • Published

Linear equations solver

Example

You have to solve this system of linear equations:

 a + 2b + 3c = 9
 2a - b + c  = 8
 3a - c = 3

So you can solve it following:

 var eqs = require('eqsolver');
 
 l = [[1, 2, 3], [2, -1, 1], [3, 0, -1]];
 r = [9, 8, 3];

 return eqs(l,r);

 // => {a:2, b:-1, c:3}

It's easy!

Links

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    1
  • 0.0.4
    1
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i eqsolver

Weekly Downloads

5

Version

0.0.5

License

none

Last publish

Collaborators

  • appb