https://github.com/src-mgra/jseq-solver
https://github.com/src-mgra/jseq-solver
calculation equations gauss-elimination maths node node-js simple solver usefull
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/src-mgra/jseq-solver
- Owner: src-mgra
- License: mit
- Created: 2018-11-02T12:26:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T08:31:43.000Z (over 5 years ago)
- Last Synced: 2025-06-21T12:04:20.512Z (5 months ago)
- Topics: calculation, equations, gauss-elimination, maths, node, node-js, simple, solver, usefull
- Language: JavaScript
- Size: 18.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# equation-solver
jseq-solver: solves linear equations systems by gauss-elimination
## use
for example:
1x+1y+1z=3
2x-3y-1z=2
4x-5y-1z=1
node eq-solver {\"size\":3,\"matrix\":[
[1,1,1,3],
[2,-3,-1,2],
[4,-5,-1,1]
]}
Set matrix-size and the equations in json format to parameters (as shown below), the last value of each line corresponds to the constant!
## use package
npm i jsequation-solver
var eq = require('jsequation-solver/eq-calc');
result = eq.eqcalc('{"size":3,"matrix":[[1,1,1,3],[2,-3,-1,2],[4,-5,-1,1]]}');
console.log(result);
## Demo
here is a demo of the package used in a android app:
https://tinyurl.com/y85hn4pe