MyPi Compute pi with Monte Carlo quadrature with MPI parallelism. Use as mpirun -n 2 ./mypi 100 to estimate pi with 100 samples on two mpi ranks.