Numerical evaluation of the Poisson distribution
In an earlier problem you derived the Poisson distribution
1. Modify (a copy of) your program to read in the values of μ and N and calculate the value of the probability p. Include an extra column in your output that gives the theoretical probability based on the Poisson distribution. (Note: It might be quite important to suppress rows in which the histogram is zero. Otherwise, the print-out could get out of hand for large values of N.)
2. Run your program for various values of μ and N. How large does N have to be for the agreement to be good?