Source code
This page contains source code for
Simulation
.
Code handed-out in class:
The source code for the find pi simulation is
findPi.c
.
The source code for a lottery simulation is
lotterySim.c
.
The source code for an M/M/1 simulation is is
mm1_simple.c
and
mm1.c
.
The source code for testing an RNG is is
lec6.c
and
lec6a.c
.
The source code for generating random variables is is
lec7.c
and
lec7a.c
.
The source code for the message error Monte Carlo simulation is
messageError.c
.
The source code for the silly "baby predition" Monte Carlo simulation is
baby.c
.
Code specifically for assignments:
The source code for the CSIM 2xM/M/1 simulation is is
2mm1_csim.c
(needed for assignment #5).
The source code for the message error Monte Carlo simulation is
messageError.c
(needed for assignment #3, problems #3 and #4).
The source code for assignment #2, problem #2 is
as3_2_2.c
.
Tools page:
The Christensen tools page can be found
here
. This page contains a lot of source code tools many of which are germane to this class.
Last update on June 10, 2009