Live data from Hacker News

Show HN: Advanced Mathematics Library for Node.js and JavaScript

github.com

21–30 of 49 posts

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#21
post #20

Any interest in adding various statistical regression functions? I had to write some for JavaScript recently, one of which can be found at http://stackoverflow.com/questions/13590922/how-can-i-use-d3... Seems to work for me, but I haven't had it reviewed by a real mathematician yet.

Most certainly. Would love to push the statistics further. Working on integrating some econometrics tools in the next version.

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#22
post #15

Earlier quoted context omitted.

Out of interest, what sort of MD/post-processing do you need to do? I've been in a similar position recently, but using CoffeeScript wouldn't have occurred to me. By the by, for typical MD processing, as long as you're using sensible units you shouldn't need to worry about floating point precision. Just don't use SI units, because then you might end up with some very very small numbers and that's when it'll start to…

For instance, I've been simulating some graphitic crystallites and part of the analysis includes analyzing the motion of the individual crystallite planes. This is how easy that is: (Note: it appears the horizontal scroll bar for this code is hidden by default for OS X browsers.) eigenvalues = require 'eigenvalues.js' regressCoordinatesToNormal = (coords) -> min = (array) -> array.reduce ((x, y, i) -> if x.val coords…

Thanks, that's really interesting! I'll check it out next time. Do you see any advantage with this over, e.g., Python w/NumPy?

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#23
post #22

Earlier quoted context omitted.

For instance, I've been simulating some graphitic crystallites and part of the analysis includes analyzing the motion of the individual crystallite planes. This is how easy that is: (Note: it appears the horizontal scroll bar for this code is hidden by default for OS X browsers.) eigenvalues = require 'eigenvalues.js' regressCoordinatesToNormal = (coords) -> min = (array) -> array.reduce ((x, y, i) -> if x.val coords…

Thanks, that's really interesting! I'll check it out next time. Do you see any advantage with this over, e.g., Python w/NumPy?

I can't really comment on that actually. For some reason, of all the programming languages I know, I never bothered to learn Python. If you need to make sure your results are 100% accurate then I would recommend a library that has been designed and tested by others, so NumPy would probably be better than creating your own routines. I do really like the clean syntax and support for functional(-ish) programming that CoffeeScript provides though.

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#24
post #5

I've used http://www.numericjs.com/ to handle basic vector/matrix arithmetic and for numerically solving minimization problems to create constraint-based UIs. Can you give an overview of how your library is different? Is it just a different set of math tools or is the architecture somehow different? Thanks!

Constraint-based UIs are not something I'm familiar with, but sound interesting. Can you expand on that for me please?

To hazard a guess, I would say it's setting up min/max/preferred width/height or margins on UI components and then dynamically computing the best way to lay them out at display time or when the window size changes. Java has a GridBagConstraints layout manager class that does something like this, and similar layout management shows up elsewhere. Apple's new AutoLayout is a collection of constraints too.

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#25
post #18
post #7

What audience do you have in mind calling this advanced? (Not criticising your library, it looks useful).

Just out of curiosity, what features would you want to add to make it more advanced? I'll make tickets for them.

For statistics I'd be interested in seeing quantiles, regressions, and coefficient of determination.

I intend to contribute what I can in those areas.

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#26
post #7

What audience do you have in mind calling this advanced? (Not criticising your library, it looks useful).

Agreed. I would have expected to see things like ICA, PCA, SVD, pseudorandom number generators for various discrete and continuous distributions, misc. multiplicative and arithmetic functions, misc. metrics (of the minkowski kind) and so on to label the library as advanced.

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#27
post #5

I've used http://www.numericjs.com/ to handle basic vector/matrix arithmetic and for numerically solving minimization problems to create constraint-based UIs. Can you give an overview of how your library is different? Is it just a different set of math tools or is the architecture somehow different? Thanks!

Yeah, numeric.js is awesome and very fast compared to other libraries. Would be interesting to see a comparison in terms of performance between these two.

Re: Show HN: Advanced Mathematics Library for Node.js and JavaScript

#28

Great. I'm studying for my operations research exam, and I've wanted to "study" by implementing some of the algorithms we did by hand through code. Is there interest in some more advanced matrix algebra functions - specifically Gaussian reduction, simplex, sensitivity analysis, and maybe some transport/network problems and integer programming?

My primary focus from here on out is statistics and matrix algebra focused on powering analytics. So yes, some of those functions would be of interest to me.

Ok. I'll start on some of it tonight.
Post reply on HN