n26(2): 3 123457089 0.220766 n25(0): 1 123456889 0.219201 n26(2): 2 123456989 0.219984 n25(0): n25(0): BUFFON_LAPLACE - Master process: n25(0): C version n25(0): An MPI example program to estimate PI n25(0): using the Buffon-Laplace needle experiment. n25(0): On a grid of cells of width A and height B, n25(0): a needle of length L is dropped at random. n25(0): We count the number of times it crosses n25(0): at least one grid line, and use this to estimate n25(0): the value of PI. n25(0): n25(0): The number of processes is 4 n25(0): n25(0): Cell width A = 1.000000 n25(0): Cell height B = 1.000000 n25(0): Needle length L = 1.000000 n25(0): 0 123456789 0.218418 n25(0): n25(0): Trials Hits Estimated PDF Estimated Pi Error n25(0): n25(0): 400000 382200 0.955500000000 3.139717425432 0.001875228158 n25(0): n25(0): BUFFON_LAPLACE - Master process: n25(0): Normal end of execution. All nodes terminated successfully.