The first rule of programming is, never write a program from scratch!
Start with an existing program that does something close to what you
want to do,
and modify it until it does what you want.
In order for this to work, you have to have access to some model
programs.
ch1/prob.m
Here's the notebook itself:
demo/probdemos.m
Here's the resulting pdf output:
demo/probdemos.pdf
Here are Matlab programs
akin to the BASIC programs Grinstead and Snell discuss.
ch1/cointosses.m
ch1/demere1.m
ch1/demere2.m
ch1/htsim.m
ch2/montecarlo.m
ch2/normaldensitybargraph.m
ch2/normalcdf.m
ch2/cantor.m
ch2/dart.m
ch2/dartluck.m
ch2/dartsqrt.m
Peter G. Doyle
2012-03-29