Category Archives: Programming

Chain

I made a little Processing sketch based on the same physics as JavaScript physics. (View the full post to try it out.)

Posted in Physics, Programming | 2 Comments

JavaScript physics

I made a very basic physics demo in JavaScript to practice using the MooTools library. It uses Verlet integration as outlined in Thomas Jakobsen’s paper. To try out the demo, go to http://doswa.com/projects/physics_js/

Posted in Physics, Programming | 6 Comments

Fourth order Runge-Kutta numerical integration

Here’s a Python implementation of RK4, hardcoded for double-integrating the second derivative (acceleration up to position). For a more generalized solution, see my other implementation. I tried to keep this as simple as I could, so people can easily see … Continue reading

Posted in Mathematics, Physics, Programming | 6 Comments