Simple numerical approach to solving a given second order differential equation.
View live in Github Pages
In the input window use symbol x as x(t) and symbol x_d as x'(t). For example to show solution to: x(t)''+2x(t)'+3x(t)=sin(x(t)) insert: -2x_d-3x-Math.sin(x) to the input window, then click set and finally play to start the animation.
Also note that the code is a bit of mess as I tried to put this together quickly, just to have some working visualizer I could experiment with.
- Javascript
- Two.js