Is there a reasonable numerical library in pure JavaScript?
I'd 开发者_Go百科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.
Maybe 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.
精彩评论