News for hackers. Stuff that matters.
Re:Double Pendulum in fewer than 100 lines of JavaScript by pbhjpbhj on Tuesday July 08, 2014 @09:04PM (#8007601)
Would be even better, IMO, with a line in the simulation showing the path traced by each pendulum over time, preferably the arcs drawn could phase through different colours (and possibly decay in visibility). Nice work though.
Re:Double Pendulum in fewer than 100 lines of JavaScript by Bakkot on Tuesday July 08, 2014 @09:44PM (#8007686)
I did basically this in my first year of college! See [1].

(Note: code was never intended to be visible to the public, and this is old and bad. But hey, it works!)

http://kevingibbons.org/doublependulum.html

Re:Double Pendulum in fewer than 100 lines of JavaScript by leni536 on Wednesday July 09, 2014 @04:21AM (#8008590)
Your simulation has a "Daming factor"
Re:Double Pendulum in fewer than 100 lines of JavaScript by Bakkot on Wednesday July 09, 2014 @11:26AM (#8010129)
... Well that's an ancient typo. Corrected, thanks.
Re:Double Pendulum in fewer than 100 lines of JavaScript by lessnonymous on Tuesday July 08, 2014 @11:12PM (#8007894)
I thought the same .. though there's no decay but it's nice to see the traced path: http://jsfiddle.net/m5MZe/1/