chemart / l-systems
View on GitHubL-systems — Growth rather than chemistry. A word over an alphabet is rewritten by applying productions to *every* letter simultaneously - which is what distinguishes it from a grammar that rewrites one symbol at a time, and what mak…
{"species": [{"id": "w0", "structure": "a"}, {"id": "w1", "structure": "ab"}, {"id": "w2", "structure": "aba"}, {"id": "w3", "structure": "abaab"}, {"id": "w4", "structure": "abaababa"}, {"id": "w5", "structure": "abaababaabaab"}], "reactions": [{"reactants": {"w0": 1}, "products": {"w1": 1}, "rate": null, "count": null}, {"reactants": {"w1": 1}, "products": {"w2": 1}, "rate": null, "count": null}, {"reactants": {"w2": 1}, "products": {"w3": 1}, "rate": null, "count": null}, {"reactants": {"w3": 1}, "products": {"w4": 1}, "rate": null, "count": null}, {"reactants": {"w4": 1}, "products": {"w5": 1}, "rate": null, "count": null}], "status": "complete", "initial_state": {"w0": 1.0}, "inflow": null, "outflow": null, "extras": {"system": "algae", "reading": "words", "axiom": "a", "productions": ["a -> ab", "b -> a"], "ignore": "", "stochastic": false, "source": "Prusinkiewicz & Lindenmayer, The Algorithmic Beauty of Plants (1990): ABOP eq. (1.2), section 1.9 (letter counts follow the Fibonacci series); the same productions from axiom b are the derivation of section 1.2, figure 1.3", "probabilities": [1.0, 1.0, 1.0, 1.0, 1.0], "stationary": {}, "analysis": {"steps": [0, 1, 2, 3, 4, 5], "lengths": [1, 2, 3, 5, 8, 13], "unexpanded": []}}, "chemistry": "l-systems", "params": {"system": "algae", "reading": "words", "axiom": "", "productions": [], "ignore": "", "angle": 0.0, "iterations": 5, "max_species": 2000, "max_length": 100000}, "seed": 1}