C code from Discrete Event Simulation: A First Course translated into Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md Edited the readme Apr 16, 2014
README.md~
ac.dat Initial commit of python-ified code Apr 16, 2014
acs.dat Initial commit of python-ified code Apr 16, 2014
acs.py Initial commit of python-ified code Apr 16, 2014
buffon.py Initial commit of python-ified code Apr 16, 2014
bvs.dat Initial commit of python-ified code Apr 16, 2014
bvs.py Initial commit of python-ified code Apr 16, 2014
cdh.py Initial commit of python-ified code Apr 16, 2014
craps.py Initial commit of python-ified code Apr 16, 2014
ddh.dat Initial commit of python-ified code Apr 16, 2014
ddh.py Initial commit of python-ified code Apr 16, 2014
det.py Initial commit of python-ified code Apr 16, 2014
estimate.py Initial commit of python-ified code Apr 16, 2014
expGen.py Initial commit of python-ified code Apr 16, 2014
galileo.py Initial commit of python-ified code Apr 16, 2014
hat.py Initial commit of python-ified code Apr 16, 2014
msq.py Initial commit of python-ified code Apr 16, 2014
rng.py Initial commit of python-ified code Apr 16, 2014
rngs.py Initial commit of python-ified code Apr 16, 2014
rvgs.py Initial commit of python-ified code Apr 16, 2014
rvms.py Initial commit of python-ified code Apr 16, 2014
san.py Initial commit of python-ified code Apr 16, 2014
sieve.py Initial commit of python-ified code Apr 16, 2014
sis1.dat Initial commit of python-ified code Apr 16, 2014
sis1.py Initial commit of python-ified code Apr 16, 2014
sis2.py Initial commit of python-ified code Apr 16, 2014
sis3.py Initial commit of python-ified code Apr 16, 2014
sis4.py Initial commit of python-ified code Apr 16, 2014
ssms.py Initial commit of python-ified code Apr 16, 2014
ssq1.dat Initial commit of python-ified code Apr 16, 2014
ssq1.py Initial commit of python-ified code Apr 16, 2014
ssq2.py Initial commit of python-ified code Apr 16, 2014
ssq3.py Initial commit of python-ified code Apr 16, 2014
ssq4.py Initial commit of python-ified code Apr 16, 2014
tri.py Initial commit of python-ified code Apr 16, 2014
ttr.py Initial commit of python-ified code Apr 16, 2014
uvs.dat Initial commit of python-ified code Apr 16, 2014
uvs.py Initial commit of python-ified code Apr 16, 2014

README.md

DES-Python

C code from Discrete Event Simulation: A First Course (by Leemis and Park) translated into Python 3.3. This is great for anyone reading the book, but is not familiar with C. C and Java versions of the code are available at http://www.math.wm.edu/~leemis/

Run any of the programs with 'python3 filename.py'

To run a program with a datafile, you can run either 'cat data.dat | python3 file.py' or 'python3 file.py < data.dat'. The latter will not work in Powershell/Cmd if you use Windows.

Credit for the original C code (and most of the comments) goes to Steve Park, Larry Leemis, and Dave Geyer.