Squares ======================= Description ----------- Squares with transition P systems. .. image:: images/Squares.png :align: center :width: 30% Model in P-Lingua ----------------- The corresponding P-Lingua file is the following:: @model def main() { call squares(); } def squares() { @mu = [[[]'3 []'4]'2]'1; @ms(3) = a,f; [a --> a,bp]'3; [a --> bp,@d]'3; [f --> f*2]'3; [bp --> b]'2; [b []'4 --> b [c]'4]'2; (1) [f*2 --> f ]'2; (2) [f --> a,@d]'2; } Files ----- .. container:: boldlink * The example does not need input data from any user nor speficic interesting outputs, so it can be run from the `general app `_ yet available and pre-loaded in MeCoSim. * `Model file `_, P-Lingua file with the code above. * As in the case of the app, no scenario file with specific input is needed, so the general dummy `scenario file `_ can also be used.