Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript numerical library - vectors, matrices, determinates, inversion

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.

like image 437
Paul Avatar asked Jun 10 '11 12:06

Paul


4 Answers

Maybe also of interest: http://www.numericjs.com/

like image 158
Simon A. Eugster Avatar answered Nov 05 '22 00:11

Simon A. Eugster


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.

like image 39
Jos de Jong Avatar answered Nov 05 '22 00:11

Jos de Jong


I know of

http://code.google.com/p/webgl-mjs/

and

http://sylvester.jcoglan.com/

like image 24
YXD Avatar answered Nov 05 '22 01:11

YXD


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.

like image 26
Baptiste Mazin Avatar answered Nov 05 '22 01:11

Baptiste Mazin