Jump to content

Elementary cellular automaton: Difference between revisions

m
(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>
ArrayPlot[CellularAutomaton[30, {0, 0, 0, 0, 1, 0, 0, 0}, 100]]
</lang>
 
=={{header|MATLAB}}==
1,111

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.