Due April 7, 2005
This problem set focuses on random number generation and Monte Carlo integration.
Generate a suitable number of deviates and plot a normalized histogram to test your function (plot the expected Rayleigh distribution over your histogram for comparison).
where represents the volume of the object. Using simple Monte Carlo integration, write a program that computes and its estimated error if , where the volume of the object is defined by , , and . Plot with errorbars as a function of the number of points used in the Monte Carlo integration, for between 10 and , in integer powers of 10.