Skip to content

Latest commit

 

History

History

elastic_pi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Approximate Pi with elastic collision

Motivation

Description

  • This code calculate the number of perfect elastic collisions between 1kg mass object and 100^d kg mass object.
  • The number of collisions corresponds to effective number of pi.
  • Code shows all steps. If you don't want to see procedures, then you can comment out the line of print.

Process

# Build
cargo build --release

# Run
cargo run --release