Anonymous user
Elementary cellular automaton: Difference between revisions
→{{header|Perl}}
m (→Comonadic solution: Extracted the step function in order to use in the random generator task) |
|||
Line 1,008:
# #### ### ## #
</pre>
=={{header|Mathematica}}==
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|Perl}}==
|