Computes the exact distribution function of the Normal (Laplace-Gauss) distribution function in the range [xmin,xmax] and draw it. Then generate nrandx points and draw the histogram with nhclass classes. Then plots the intervals [mu-n*sigma,mu+n*sigma] for n=1,2,3. In the legend, display the corresponding integrals approximated from the intg function.

The current function is a demonstration of the following functions.

- Uses the grand function to generate the random numbers.
- Uses the histo function to draw the histogram.
- Uses the intg function to compute the approximate integrals.
- Uses the erf function to compute the exact integrals.

## Leave A Comment

You must be logged in to post a comment.