# Algo: epage 70 # Problem: epage 75 # # Written by: # -- # John L. Weatherwax 2009-04-21 # # email: wax@alum.mit.edu # # Please send comments and especially bug reports to the # above email address. # #----- # Part (a): # M = sqrt( 2 * pi ) / sqrt(exp(1)) Nsim = 2500 fFunc = function(x){ dnorm(x) } x=NULL while( length(x)