SubstitutionSystem
SubstitutionSystem[rule,init,t]
generates a list representing the evolution of the substitution system with the specified rule from initial condition init for t steps.
SubstitutionSystem[rule,init]
gives the result of evolving init for one step.
SubstitutionSystem[rule]
is an operator form of SubstitutionSystem that corresponds to one step of evolution.
Details
- In SubstitutionSystem[rule,…], rule can be of the following forms:
-
{i1rhs1,i2rhs2,…} list substitution system {"s1"rhs1,"s2"rhs2,…} string substitution system - In list substitution systems, the rhsi can be lists of any length or can be rectangular arrays of any depth but all with the same dimensions. They can also be individual elements such as integers.
- In string substitution systems, the rhsi can be strings of any length.
- Both lists and string substitution systems can have rules that involve patterns, but every object that appears in the rhsi must have a transformation defined by the rules given.
- List substitution systems work with SparseArray objects.
- In string substitution systems, the initial condition init must be a string; in list substitution systems, it must be an array whose depth is equal to the depth of the rhsi.
- In SubstitutionSystem[rule,init,tspec], the time specification tspec can have any of the following forms:
-
t all steps 0 through t {t} a list containing only step t {t1,t2} steps t1 through t2 {t1,t2,dt} steps t1, t1+dt, … - SubstitutionSystem uses the first substitutions that apply at each step, in the same way as SequenceReplace and StringReplace.
Examples
open allclose allBasic Examples (3)
Scope (16)
1D List Substitution Systems (3)
Higher-Dimensional List Substitution Systems (5)
Arrays do not have to be square:
The right-hand side of a rule can be a SparseArray:
SparseArray as an initial condition:
String Substitution Systems (2)
Generalizations & Extensions (1)
Applications (3)
Properties & Relations (2)
Possible Issues (1)
SubstitutionSystem always uses only the first substitution that applies:
Text
Wolfram Research (2015), SubstitutionSystem, Wolfram Language function, https://reference.wolfram.com/language/ref/SubstitutionSystem.html.
CMS
Wolfram Language. 2015. "SubstitutionSystem." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SubstitutionSystem.html.
APA
Wolfram Language. (2015). SubstitutionSystem. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SubstitutionSystem.html