pi Calculation

This program calculates pi using a "dartboard" algorithm. See Fox et al.(1988) Solving Problems on Concurrent Processors, vol.1 page 207. In the parallel version, all processes contribute to the calculation, with the master averaging the values for pi.

The parallel version has two variations, one which demonstrates point-to-point communications and one that demonstrates collective communications.