Javascript numerical library - vectors, matrices,

2019-03-13 17:35发布

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.

4条回答
Deceive 欺骗
2楼-- · 2019-03-13 17:43

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.

查看更多
成全新的幸福
4楼-- · 2019-03-13 17:50

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.

查看更多
三岁会撩人
5楼-- · 2019-03-13 18:01

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

查看更多
登录 后发表回答