- This program uses the normal approximation to approximate the probability that S_n, a sum of n Bernoulli trials with probability p of success for each trial, lies in [kmin, kmax]. It also plots the distribution of the normalized random variable for the number successes and compares it to the standard normal distribution.
Do not make n greater than 400.


The source.