My Poisson distribution cannot be displayed on the plot
This is a homework of mine to plot the gaussian and poisson distribution for r = 20, mu = 20 and sigma = sqrt(20). But the problem is that the value when computing of the computer is capped somewhere, and the large number like 20^20 cannot be computed, so the graph looks horribly wrong after r >= 8. Here is my code: