linear-equation-system

1.1.1 • Public • Published

linear-equation-system

An simple solver for a linear equation system.

Example

var linSystem = require("linear-equation-system");
 
var A =[[0,-1,1],
    [-1,3,0],
    [2,0,6]];
 
var B = [2,5,20];
 
console.log(linSystem.solve(A, B));

Output:

[-0.5, 1.5, 3.5]

Info

This module uses the Gauss-Jordan elimination method. It is meant to solve an Ax=B type system. If the system is inconsistent, the method returns false.

Install

npm i linear-equation-system

Package Sidebar

Install

npm i linear-equation-system

Weekly Downloads

65

Version

1.1.1

License

MIT

Last publish

Collaborators

  • raphael-bos