Phyllotaxy is derived from the Greek words phýllon (meaning leaf) and táxis (meaning arrangement). Accordingly, phyllotaxy is the study of the spiral arrangements found in leaves and flowers.
In this section, we will code the following floral pattern:
The mathematical details for this program have been taken from Chapter 4 of the book Algorithmic Botany of Plants—a PDF of which can be obtained from here: http://algorithmicbotany.org/papers/abop/abop-ch4.pdf.
Here are the two formulas from the chapter that we will be using: