n798(2): 2 123456989 0.538638 n798(2): 3 123457089 0.269035 n804(0): 1 123456889 0.808240 n804(0): n804(0): BUFFON_LAPLACE - Master process: n804(0): FORTRAN90 version n804(0): An MPI example program to estimate PI n804(0): using the Buffon-Laplace needle experiment. n804(0): On a grid of cells of width A and height B, n804(0): a needle of length L is dropped at random. n804(0): We count the number of times it crosses n804(0): at least one grid line, and use this to estimate n804(0): the value of PI. n804(0): n804(0): The number of processes is 4 n804(0): n804(0): Cell width A = 1.000000 n804(0): Cell height B = 1.000000 n804(0): Needle length L = 1.000000 n804(0): 0 123456789 0.778426E-01 n804(0): n804(0): Trials Hits Estimated PDF Estimated Pi Error n804(0): n804(0): 400000 381969 0.954922500000 3.14161620446 0.235508665893E-04 n804(0): n804(0): BUFFON_LAPLACE - Master process: n804(0): Normal end of execution. All nodes terminated successfully.