I’m currently working on a 2D physics simulator using JavaScript. For this project, I need to solve constraint systems between sets of bodies. Specifically, I’m on the lookout for a JavaScript library that con solve systems of non-linear equations numerically (like a JS equivalent to Matlab’s fsolve function).
I have checked Nerdamer and Algebrite libraries but they are symbolic computation libraries that solve equations analytically (which means they can’t solve most non-linear systems), and I am looking for a numeric solver. I also checked Algebra.js but again, it’s documentation says:
Equations will only be solved if there is an algebraic solution or if the variable being solved for can be isolated through arithmetic operations. Attempting to solve an equation that does not fit these criteria returns ´undefined´.
Does anyone know of a library that can do this?
Thanks!