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.
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.
Share Improve this question edited Jul 15, 2013 at 21:19 Paul asked Jun 10, 2011 at 12:25 PaulPaul 27.4k13 gold badges89 silver badges126 bronze badges4 Answers
Reset to default 5Maybe also of interest: http://www.numericjs.com/
math.js is a library which comes with matrix support. You can easily manipulate matrices and do matrix calculations.
http://mathjs.org
See the example on using matrices.
I know of
http://code.google.com/p/webgl-mjs/
and
http://sylvester.jcoglan.com/
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.