Why?
一直相信一句话: Any application that can be written in JavaScript, will eventually be written in JavaScript
前段时间想在浏览器中解薛定谔方程,发现没有很好的数学函数库。于是就开始搞这个了
使用方式
Install
$ npm install mathlab --save
Sample usage
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]