Eric Weeks
- personal pages - software## CELL.C## C Program to do simple cellular automata |
weeks@physics.emory.edu |

This program creates output suitable for my programs "a2ps" or "a2ppm". For example, the way to use the program is:

cell -n 200 -a 0.45 -b 0.11 -c 0.45 -d 0.0 | a2ppm > picture.ppm

Click here for information about a2ps, making PostScript pictures.

Click here for information about a2ppm, making PPM-format pictures.

The update rule for these cellular automata is that the new state x of cell n is given by:

x_n new = A x_{n-1} + B x_n + C x_{n+1} + D mod 1

where A, B, C, and D are constants chosen ahead of time. For these various pictures below, the four constants are small and between 0 and 2 mostly. I wrote a quick shell script that ran the program about 300 times with random parameters and these are some of the best ones that were produced. I am not going to bother giving you the values for A, B, C, and D for these pictures, although I have them. If for some reason you need them send me an email and I can look them up or put them on this page.

I originally wrote this program when I was at a summer program, and I made lots of CA pictures with randomly chosen rules. Most of them were boring looking, so I decided to do a little bit of work to figure out which ones are interesting. Click here to see some of that work; more interesting pictures.

- Eric's Home Page
- Information on Software -- Other programs available like this one
- Pictures I've Made
- My Research
- If you have any questions, send me email; email address below.

Current address:

Eric R. Weeks

weeks@physics.emory.edu

Department of Physics

Emory University

Atlanta, GA 30322-2430