No. 073 · Almost identical starts

1,000 balls in a heart-shaped table

1,000 balls leave one point, their directions within 0.001 rad. They move as one bright streak until the heart's curved walls split them at 4.6 s.

angle in = angle out · x = 16·sin³t, y = 13·cos t − 5·cos 2t − 2·cos 3t − cos 4t

A billiard table in the shape of a heart, the same heart as No. 002 and No. 011, and 1,000 balls on it. They all leave one point, up and to the right of the centre, heading up and to the left, and their directions differ by at most 0.001 rad (a twentieth of a degree), spread evenly. They roll at the same speed and bounce off the walls with angle in = angle out.

One streak, then the whole table

For the first seconds the balls move as one bright streak: after hundreds of pixels of travel, 0.001 rad is a gap of less than a pixel. But every bounce off a curved wall makes it bigger. Two balls hit the wall at slightly different points, where it faces slightly different ways, so they come off at more different angles than they went in. The dip at the top of the heart bulges into the table and spreads them like the round post in No. 051.

At t = 4.6 s the balls' spread (how far they are from their average position, on average) passes 108 px, a quarter of the heart's half-width: the streak has split. From then on the balls fill the whole table, and at the end their spread is 273 px.

Each ball keeps its own colour for the whole video, set by its starting direction: pink for the first, then violet, blue, cyan, green and yellow, to orange for the last. While they move as one the colours sit on top of each other; once they split, the rainbow comes apart. Each ball leaves a fading trail. Over the last 4.5 seconds the balls slow down, so the end is easier to follow.

The table

The wall is the heart curve

x = 16·sin³t, y = 13·cos t − 5·cos 2t − 2·cos 3t − cos 4t

drawn 864 px wide as 4,000 short straight pieces, small enough that each bounce follows the real curve. Every bounce is computed exactly; nothing random is added.

Part of Almost identical starts (13 videos): Thousands of copies a hair apart. Watch them split.

Use this picture

SVGJPG

Free to reuse, also commercially, under CC BY 4.0. Credit “What Math Means” with a link to whatmathmeans.dev/v/1000-balls-in-a-heart-shaped-table.