Elementary cellular automaton: Difference between revisions
m
→{{header|Mathematica}}
(Added Wren) |
|||
Line 2,019:
</pre>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Mathematica provides built-in functions for cellular automata. For example visualizing the first 100 rows of rule 30 on an 8-bit grid with a single initial cell:
<lang Mathematica>ArrayPlot[CellularAutomaton[30, {0, 0, 0, 0, 1, 0, 0, 0}, 100]]</lang>
=={{header|MATLAB}}==
|