Skip to content Skip to sidebar Skip to footer

Are There Any (somewhat) Advanced Mathematics Javascript Libraries?

Are there any libraries knocking around that provide any additional general purpose math functions for Javascript? Say things like sums over a range, derivatives, integrals, etc. I

Solution 1:

What are you looking for when you ask for integrals and derivatives? Numerical or symbolic? Indefinite or definite? Single-variable or multivariate? Etc.

It's actually not hard to write a program to do symbolic differentiation, though simplification and display is far from simple (contrary, perhaps, to intuition). Similarly, numerical differentiation and numerical definite integration is simple enough, depending on how much precision you need. (If you need a little it's easy; if you need a fair bit and are doing many operations, you need some serious numerical analysis (math) to make it work; if you need lots of precision you need a bignum library so JS isn't that great.)

'Of course' symbolic integration is extremely difficult in any language. Your best bet in that case would be to query a site like Wolfram|alpha...

If you need clarification or expansion on any of these points, let me know.

Solution 2:

Yes, there is Sylvester, a JavaScript library designed to let you do mathematics with vectors and matrices without having to write lots of loops.

Solution 3:

With thanks to Charles and luvieere for their responses, I guess that there aren't any libraries that do what I want to do. In that spirit, I have started on my own library called MathPlus.

Solution 4:

Say, I know that this is an older post, but there is a newer javascript math library for more advanced mathematics. The library is the numeric.js library. You have all sorts of PDE, ODE solvers as well as vector mathematics.

Solution 5:

I know this is an old question, but it's worth noting that some people have been doing automated conversions of physics libraries over from ActionScript to JS (using eg. Python for the parsing). I'm not saying it's an easy task, but it has to be easier than writing your own math libraries from scratch, so I guess this may be a possibility for some.

Post a Comment for "Are There Any (somewhat) Advanced Mathematics Javascript Libraries?"