Reputation: 27433
Is there a reasonable numerical library in pure JavaScript?
I'd like array-based vectors, matrices, determinate, and matrix inversion.
This is only for small problems, not big ones. I'm aware there are choices in Python, Java, C++, or, oh, perhaps FORTRAN, not to mention R. mmm....FORTRAN......
I'd be happily surprised to get basic vector and matrix operations without having to rebuild the wheel or recode from FORTRAN for a day or two.
Upvotes: 7
Views: 9531
Reputation: 99
There is also, the Matlab-like javascript library: https://github.com/Etsitpab/JSM. It makes easy to deal with ND-Arrays and provides many codes for data processing.
Upvotes: 3
Reputation: 6819
math.js is a library which comes with matrix support. You can easily manipulate matrices and do matrix calculations.
See the example on using matrices.
Upvotes: 4