CellularAutomaton
t+1 fixed-width generations of an elementary 1-D cellular automaton, from init.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
CellularAutomaton✓CellularAutomaton(rule, init, t)t+1 generations of Wolfram's elementary (k = 2 colors, radius 1) rule number rule, from initial condition initTyped signatures
| Type | Package | Applies |
|---|---|---|
(integer<0..255>, integer | list<integer> | tuple<list<integer>, integer>, integer<0..>) -> list<list<integer>> | combinatorics | always |
Details
- init is an explicit {list, background} (or {list}, background 0) -- a bare integer like 1 is not valid init (Wolfram raises initn).
- Every generation has the same width: init's non-background cells span [minPos, maxPos], and the displayed window is [minPos - t, maxPos + t] -- the widest region t steps could possibly reach.
- A cell of init that already equals background doesn't widen that span -- {{1, 0, 0}, 0} behaves like a single seed at position 0, not like a 3-wide active region.
- Only the elementary (k = 2, radius 1) rule form is answered; totalistic and multi-color rule specs are left unevaluated.
Examples
Basic #
Scope #
A 3-cell init with only one cell differing from background behaves like a single-seed automaton
live ↗InOut
live ↗
InOut
About
| Examples | 9 |
|---|---|
| Checked against | Wolfram Language 9 agree |
| Crosswalk | Wolfram Language |