How colliding blocks act like a beam of light…to compute pi.

The third and final part of the block collision sequence.
Part 1:
Part 2:
Home page:
Brought to you by you:

Error correction: I wrote the answer as floor(pi/theta), when really it should be ceiling(pi/theta) – 1 t account for values of theta perfectly dividing pi. For example, the case of equal masses gives an angle of pi/4, and 3 total clacks.

This beautiful result, and the solution shown here, are due to Gregory Galperin:

And here’s a lovely interactive built by GitHub user prajwalsouza after watching this video:

Speaking of looking glass universes…

NY Times blog post about this problem:

The plushie pi shown at the video’s start:

If you want to contribute translated subtitles or to help review those that have already been made by others and need approval, you can click the gear icon in the video and go to subtitles/cc, then “add subtitles/cc”. I really appreciate those who do this, as it helps make the lessons accessible to more people.

Music by Vincent Rubinetti.
Download the music on Bandcamp:

Stream the music on Spotify:


3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe:

Various social media stuffs:


40 thoughts on “How colliding blocks act like a beam of light…to compute pi.

  1. A lot of these steps feel awfully contrived, designed specifically to get this pi result. At no point did I feel like the shift in perspective came up naturally or that I could have discovered it myself; at no point did the next step within a current perspective seem obvious (especially the square rooted masses and vector dot products). It felt more like a showcase of what math can be, rather than a guiding hand through a unique solution to a quirky problem.

  2. Hey OP, so I'm not a physicist or really bright at physics, but I have a question. We see that almost everything in our daily lives, and everything in Physics, Maths and Science in general, has Pi in it. And Pi is irrational. We have computed its value to trillions of digits, but we will obviously never compute (or physically witness) the actual value. Only ever approximations upto n digits.
    My question: So what if we use Pi as our standard unit to measure. Our Unit. Make Pi the "One" of Math. Wouldn't that make computation (and in general, every math and every equation) so much simpler? Pi is no longer 3.14159265358979323 of 1. It's just 1.
    It would be like multiplying all equations with 1/Pi, make calculations of "squares" difficult instead, but it would still simplify most equations with Pi in it. Which is a lot.

  3. It actually seems right to see the block as an example of a compound bonded state of e-Pi-i resonant frequency interference positioning, of omnidirectional-dimensional Total Internal Reflection, otherwise known as mass-momentum = latency of Superspin Modulation Superspin, from the superimposed AM-FM communication mechanism of equation E=mC², (short version), in continuous creation connection in time-timing Principle.

    "Very striking" mathematical methodology beautifully illustrated.

  4. Very nice. I think the final answer is difference. I've obtained -floor(-pi/theta)-1
    For example: theta=pi/4 is led to floor(pi/(pi/4))=4 is wrong; but -floor(-pi/(pi/4))-1=3 is correct
    floor(pi/theta) is correct only when pi/theta is not integer.

  5. There's a reason why the light goes in a straight line,
    Light has no mass, that's why it was familiar to the 2 cubes with the same mass .

  6. 😓😓 I'm 17 years older in korea…
    I can't understand!!! 😥😥
    Why korean doesn't like math channel 🤬🤬

  7. Here's a simulation of this phenomenon

  8. Why does everything in science and maths and nature and life and universe and reality has to match up at some point its both awasome and spooky that everything we see around us is just the same thing but in another form or way and is just maths in its core … Is the future of the universe decided , do we really have fee will…

  9. It would be slightly smaller or equivalent to pi due to the circles floor being the diameter, the radius would be a fourth(Roughly) due to the right angle at which the light would reflect against the "Mirror". To understand the alternative world we would need to fold over the first quarter of the half over next to itself with minimal overlapping giving us the slight remaining overhang of the additional digit grater than Pi. Right?

Leave a Reply

Your email address will not be published. Required fields are marked *