Jump to content

Elementary cellular automaton: Difference between revisions

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}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.