Extracting Pi from Image Data

In 1881, Ernesto Cesàro [1] proved that the probability that two random integers are relatively prime is . In this Demonstration, the pairs of random integers are chosen from among the pixel values of selected images.
Using enough random pairs of pixel data from almost any sufficiently complex picture gives an approximation of with between 1 and 4 correct digits.

THINGS TO TRY

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

Reference
[1] B. Gourevitch. "The World of Pi: Cesaro." (March 14, 2012) www.pi314.net/eng/cesaro.php.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.