### Translations

Code Language Translator Run

### Software Requirements

SoftwareRequirements

 Android iOS Windows MacOS with best with Chrome Chrome Chrome Chrome support full-screen? Yes. Chrome/Opera No. Firefox/ Samsung Internet Not yet Yes Yes cannot work on some mobile browser that don't understand JavaScript such as..... cannot work on Internet Explorer 9 and below

### Credits

This email address is being protected from spambots. You need JavaScript enabled to view it.; Francisco Esquembre; Felix J. Garcia Clemente

### Sample Learning Goals

computational skills such as to add collisionCounter to an existing simulation to realise the computational goal of checking the number of collisions in this "pi-collision problem"

### For Teachers

The number of collisions in this setup, often referred to as the "pi-collision problem" or "digit dynamics," tends to be around 3140. This intriguing result is related to the mathematical constant π (pi).

 m1 = m2 = 1, collisionCounter = 3link

 m1 = m2 = 100, collisionCounter = 31link

 m1 = m2 = 10000, collisionCounter = 314link

## "pi-collision problem"

"digit dynamics," tends to be around 314. This intriguing result is related to the mathematical constant π (pi).

The setup involves two blocks of significantly different masses (here, 1 kg and 10000 kg) sliding on a frictionless surface. One block starts moving towards the other, and they collide elastically. The number of collisions before they come to rest or one block moves away is proportional to the digits of π.

For two blocks with masses in the ratio 1:100n, the number of collisions will be approximately equal to the first n+1 digits of π. In this case, with n = 3 (since 10000 = 1002), the number of collisions is close to the first 3 digits of π, which is 314.

This remarkable connection arises from the way the collisions and velocities behave, involving iterative calculations that mimic the series expansion of π.

## How to get to 1000000 kg? and collisionCounter = 3141 ?

Since this is a computationally intensive during the collisions between left wall and 2 balls, perhaps slowing down the velocities of ball2 in x direction to -0.0001 might allow to compute the correct number of collisions before it becomes unstable? Good luck! and let me know if it works! Enjoy!

This remarkable connection arises from the way the collisions and velocities behave, involving iterative calculations that mimic the series expansion of π.

Research

[text]

[text]

[text]