Skip to content
/ agave Public

The common name "century plant" stems from its semelparous nature of flowering only once at the end of its long life. After flowering, the plant dies but produces adventitious shoots from the base, allowing its growth to continue.

Notifications You must be signed in to change notification settings

bartul/agave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agave

Agave seed, once planted, takes tg time to germinate, with success rate of rs. Otherwise, it dies.

Agave once germinated, takes tb time to blossom, where it will produce n seeds.

Seeds are then planted, and the cycle continues.

After blossoming, agave dies.

Each new seed generation has a lower success rate to germinate than the previous generation by degeneration rate of rd, degrading success rate of rs more by each generation.

Example

tg = 10s // time to germinate

tb = 10s // time to blossom

n = 3 // number of seeds produced after blossoming

rs = 1 // success rate (initial) - 100%

rd = 0.1 // degeneration rate - 10%

Generation 1

2 seeds planted, 2 seed germinates after 10s, 6 seeds produced after 10s

Generation 2

rs = rs - rd = 0.9

4 seeds planted, 3 seed germinates after 10s, 9 seeds produced after 10s

Generation 3

rs = rs - rd = 0.8

9 seeds planted, 7 seed germinates after 10s, 21 seeds produced after 10s

Generation 4

rs = rs - rd = 0.7

21 seeds planted, 14 seed germinates after 10s, 42 seeds produced after 10s

Generation 5

rs = rs - rd = 0.6

42 seeds planted, 25 seed germinates after 10s, 75 seeds produced after 10s

Generation 6

rs = rs - rd = 0.5

75 seeds planted, 37 seed germinates after 10s, 111 seeds produced after 10s

Generation 7

rs = rs - rd = 0.4

111 seeds planted, 44 seed germinates after 10s, 132 seeds produced after 10s

Generation 8

rs = rs - rd = 0.3

132 seeds planted, 39 seed germinates after 10s, 117 seeds produced after 10s

Generation 9

rs = rs - rd = 0.2

117 seeds planted, 23 seed germinates after 10s, 69 seeds produced after 10s

Generation 10

rs = rs - rd = 0.1

69 seeds planted, 6 seed germinates after 10s, 18 seeds produced after 10s

Generation 11

rs = rs - rd = 0.0

18 seeds planted, 0 seed germinates after 10s, 0 seeds produced after 10s

About

The common name "century plant" stems from its semelparous nature of flowering only once at the end of its long life. After flowering, the plant dies but produces adventitious shoots from the base, allowing its growth to continue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published