Python uses Monte Carlo algorithm to simulate plant growth

Python uses Monte Carlo algorithm to simulate plant growth


Toby, WeChat ID: drug666123, Python data science enthusiast, good at medical statistics. Served in the country's largest drug data center, responsible for more than 20 databases.

(The second division of cells presents a symmetrical distribution)

    Are cell-to-biology, embryonic growth curves, and development patterns randomly formed? Why do most people have two eyes and three-eyed prodigy rarely appears? I believe that the evolution of fractal mathematics will undoubtedly reveal the secrets of life. Just like a key to opening Pandora’s box, maybe one day our universe and DNA constitute the structure. The growth, evolution, development, and rise and fall of a smart life society can be simulated and simulated by one or several simple and smooth mathematical formulas. Prophecy, we can now be a formula that is constantly iterating calculations? With the establishment of the Alexandria Library and Research Institute, people have been trying to generalize the randomness of various forms that seem to have no rules on the surface of the universe since ancient times. A password hidden under the surface. The ridiculous "universe ultimate answer is 43" in science fiction is no longer a joke.

(Da Vinci's body diagram is symmetrically distributed)

    The secondary cell division and the human body present a symmetrical distribution, but mountains, rivers, water waves, and plants are distributed asymmetrically. Is there anything that does not follow the laws of mathematics?
    In fact, everything is counted, and the development of life follows a certain law, which can be called an algorithm. Next, I use Python's Monte Carlo algorithm to simulate the growth of Barnsley fern (a plant).

(A real Barnsley fern plant in nature)

    The growth of Barnsley fern plants consists of the following four equations:
    The four equations are randomly generated with the probability of 0.85, 0.07, 0.07, and 0.01 respectively.
    (Result of program simulation: computer generated 10,000 random points to form Barnsley fern plants)
    Operating environment: Canopy python 2.7+Windows32

Project source code:

Reference: Python uses Monte Carlo algorithm to simulate plant growth-Cloud + Community-Tencent Cloud