Add 'populus_nigra_italica.lpy'

This commit is contained in:
Michał Dulski 2019-05-09 10:08:10 +00:00
parent 328d7b55b3
commit 29ed569912

51
populus_nigra_italica.lpy Normal file
View File

@ -0,0 +1,51 @@
def Start():
#random.seed(150)
pass
Axiom: _(0.3)@GsG(1)A(1)
derivation length: 20
production:
A(x) :
if x == 1:
produce[-(30)F(1)B(1)]F(1)A(x+1)
if x == 2:
produce [^(30)F(1)C(1)]F(1)A(x+1)
elif x == 4:
produce [+(30)F(1)D(1)]F(1)A(1)
elif x == 3:
produce [&(30)F(1)E(1)]F(1)A(x+1)
B(x):
if x <= 1:
produce [^(30)F(1,0.05+0.25/x)Leaf(1)][&(30)F(1,0.05+0.25/x)Leaf(1)]+(5)F(1,0.05+0.25/x)B(x+1)
elif x <= 2:
produce [^(30)F(1,0.05+0.25/x)Leaf(1)][&(30)F(1,0.05+0.25/x)Leaf(1)]+(5)F(1,0.05+0.25/x)B(x+1)
elif x <= 4:
produce [^(30)F(1,0.05+0.25/x)Leaf(1)][&(30)F(1,0.05+0.25/x)Leaf(1)]+(5)F(1,0.05+0.25/x)B(x+1)
C(x):
if x <= 1:
produce [+(30)F(1,0.05+0.25/x)Leaf(1)][-(30)F(1,0.05+0.25/x)Leaf(1)]&(5)F(1,0.05+0.25/x)C(x+1)
elif x <= 2:
produce:[+(30)F(1,0.05+0.25/x)Leaf(1)][-(30)F(1,0.05+0.25/x)Leaf(1)]&(5)F(1,0.05+0.25/x)C(x+1)
elif x <= 4:
produce [+(30)F(1,0.05+0.25/x)Leaf(1)][-(30)F(1,0.05+0.25/x)Leaf(1)]&(5)F(1,0.05+0.25/x)C(x+1)
D(x):
if x <= 1:
produce [&(30)F(1,0.05+0.25/x)Leaf(1)][^(30)F(1,0.05+0.25/x)Leaf(1)]-(5)F(1,0.05+0.25/x)D(x+1)
elif x <= 2:
produce:[&(30)F(1,0.05+0.25/x)Leaf(1)][^(30)F(1,0.05+0.25/x)Leaf(1)]-(5)F(1,0.05+0.25/x)D(x+1)
elif x <= 4:
produce [&(30)F(1,0.05+0.25/x)Leaf(1)][^(30)F(1,0.05+0.25/x)Leaf(1)]-(5)F(1,0.05+0.25/x)D(x+1)
E(x):
if x <= 1:
produce [+(30)F(1,0.05+0.25/x)Leaf(1)][-(30)F(1,0.05+0.25/x)Leaf(1)]^(5)F(1,0.05+0.25/x)E(x+1)
elif x <= 2:
produce:[+(30)F(1,0.05+0.25/x)Leaf(1)][-(30)F(1,0.05+0.25/x)Leaf(1)]^(5)F(1,0.05+0.25/x)E(x+1)
elif x <= 4:
produce [+(30)F(1,0.05+0.25/x)Leaf(1)][-(30)F(1,0.05+0.25/x)Leaf(1)]^(5)F(1,0.05+0.25/x)E(x+1)
Leaf(x):
produce ~l(1)
interpretation:
endlsystem