by dmvaldman · 15y ago · 0 comments
This explains the awesome visual effect of this experiment. Though I'm not exactly sure why adjusting the lengths of the pendulums would mimic a wave of traveling with ever increasing frequency. Maybe it has something to do with dispersion (we see an overlap of waves that travel at speeds proportional to their frequency/length)?
A great experiment would be to have two of these pendulum systems side by side, except one is made of 30 pendulums at half the spacing. Then when the 15 pendulum system is lined up, the 30 system should be alternating,etc.
function draw (Ls, t, h) {
// only for in the program, needed?
for (var i = 0; i < Ls.length; i++) {
...
ctx.lineTo(h * L, 0)
ctx.arc(h * L, 0, 6, 0, 360)
ctx.stroke()
ctx.fill()
...
}
}
to do it right you really need to start another path, but this works fine in Chrome (looks little wonky in Firefox)However, you now need to substitute that position as time into the pendulum equation. At which point you see the sine wave behavior of sticking near the edges as the ball picks up momentum followed by a fast transverse through the center. Still, it's not really a sine wave but it's fairly close. To get a true sine wave all the pendulums would need to be the same length and the balls dropped the same distance but at slightly different times. However, in the experiment they are close to the same length and distance fallen so it looks about right.