Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert numbers specifying a cellular automaton into an explicit list of rules
ResourceFunction["CellularAutomatonFromNumber"][n] converts a cellular automaton specified with elementary rule number n into an equivalent list of rules. | |
ResourceFunction["CellularAutomatonFromNumber"][n,k] converts a k-color cellular automaton with general nearest‐neighbor rule number n into an equivalent list of rules. | |
ResourceFunction["CellularAutomatonFromNumber"][n,k,r] converts a cellular automaton specified with general rule number n,k colors and range r into an equivalent list of rules. |
elementary rules | 256 |
1D general rules | kk2r+1 |
Generate the list of rules corresponding to rule 30:
In[1]:= |
Out[1]= |
Show that the two specifications are equivalent:
In[2]:= |
Out[2]= |
Generate the rule representation of 3-color rule 679458:
In[3]:= |
Out[3]= |
Generate the rule representation of a general range-r=2 rule:
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License