From 0345e094e6eb0bfd91e3f83a87004d5bda527c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulski?= Date: Thu, 9 May 2019 10:44:23 +0000 Subject: [PATCH] Update 'populus_nigra_italica.lpy' --- populus_nigra_italica.lpy | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/populus_nigra_italica.lpy b/populus_nigra_italica.lpy index d1bc59f..7f75b10 100644 --- a/populus_nigra_italica.lpy +++ b/populus_nigra_italica.lpy @@ -2,30 +2,16 @@ def Start(): #random.seed(150) pass -Axiom: _(0.3)@GsG(1)A(1) -derivation length: 20 +Axiom: _(0.3)@GsG(0.5)A(1) +derivation length: 30 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) + produce[-(30)F(1)B(1)]/(75)F(0.5)A(x+1) + B(x): - if 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 <= 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 <= 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 <= 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) + if x <= 5: + produce [^(30)F(1,0.05+0.25/x)Leaf(1)][&(30)F(1,0.05+0.25/x)Leaf(1)]F(1,0.05+0.25/x)B(x+1) + Leaf(x): produce ~l(1) interpretation: