一直相信一句话: Any application that can be written in Javascript, will eventually be written in Javascript
前段时间想在浏览器中解薛定谔方程,发现没有很好的数学函数库。于是就开始搞这个了
$ npm install mathlab --save
import { dot } from 'mathlab' const A = [[1,2,3], [4,5,6]] const x = [7,8,9] // calculate dot product dot(A, x) // [50,122]
![]() | 1 yiding 2016-08-20 16:28:31 +08:00 via iPhone 支持一下,期待更多功能 |
![]() | 2 itopidea 2016-08-21 17:18:00 +08:00 mathjs 就有吧 |
![]() | 3 ShiHou 2016-08-21 17:36:47 +08:00 js 那个性能.. 如果涉及到较多的矩阵计算,考虑 webgl 更现实。 https://github.com/toji/gl-matrix |
5 riophae 2016-08-22 19:52:34 +08:00 赞一个 |