Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 645 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 645 Bytes

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