Re:Show HN: Advanced Mathematics Library for Node.js and Jav...
by matsiyatzy on Wednesday December 12, 2012 @04:45AM
(#4909357)
It should be mentioned that most of these things are already implemented by numeric.js (http://www.numericjs.com/)
Re:Show HN: Advanced Mathematics Library for Node.js and Jav...
by sjkaliski on Tuesday December 11, 2012 @10:32PM
(#4908466)
This is a fantastic list. There are a few people who've expressed interest in working on eigenvalue work. I'll definitely be adding a couple of these in, in the next few days. I'll keep you posted.
Re:Show HN: Advanced Mathematics Library for Node.js and Jav...
by micro_cam on Wednesday December 12, 2012 @01:59AM
(#4909016)
Sparse and dense matrix math and eigensolvers would be really nice. Especially solvers that let you efficiently get the eigenvectors associated with the smallest eigenvalues as this comes up in graph and image partitioning.
A couple of observations:
1. You should probably go ahead and implement at least LU decomposition, QR factorization, and maybe some eigenvalue/eigenvector stuff if you want to claim "advanced".
2. You should use the recursive definition of the determinant in the >3x3 matrix case.
3. You should consider adding some vector methods of the form: ax+by (for scalar a & b, and vector x & y). This can be useful for doing linear interpolation and whatnot.
4. You should add cross products/outer products for vectors.
5. You should have a mechanism for generating a Gaussian or normal distribution, or at least supply some standard mappings from your (presumably uniform) random function to something more useful (Gaussian, Possoin, Weibull, whatever).
6. An FFT would be nice. :)
7. Quaternions would also be handy for graphics folks, or motion folks.
8. Complex number support would be cool.
9. Support for optimization, like integer programming, linear programming, or even least-squares or whatever would be nice.
~
Again, great work--I look forward to seeing how this project evolves!