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.