Iterated Logistic function with two initial conditions

Iterated Logistic function with two initial conditions preview image

1 collaborator

Tags

Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.0.1 • Viewed 435 times • Downloaded 19 times • Run 0 times
Download the 'Iterated Logistic function with two initial conditions' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Info tab cannot be displayed because of an encoding error

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

globals [   ;; seting globals for two separate lists for
mylist-1    ;; two different initial conditions
mylist-2
]

to setup ;; setting two separate lists with their initial conditions
  ca
  set mylist-1 list (0) (X1)
  set mylist-2 list (0) (X2)
  reset-ticks
end 

to go                                         ;; procedure of iteration
  if r-parameter > 4 or X1 > 1 or X2 > 1 [    ;; with the results added to respective list
    ask patch 350 7
    [ set plabel "ERROR: R must be between 0 and 4.0 // X1 and X2 must be between 0 and 1.0."
      set plabel-color yellow ]
    stop
  ]
  set mylist-1 lput result-1 mylist-1 ;; bulding up lists as a result of iterations
  set mylist-2 lput result-2 mylist-2

  if ticks >= Num-iterations [ stop ] ;; stopping the model once
                                      ;; the inputted number of iterations is acheived
  tick
end 

to-report result-1                                         ;; procedure of iteration
  report  r-parameter * last mylist-1 * (1 - last mylist-1)
end 

to-report result-2
    report  r-parameter * last mylist-2 * (1 - last mylist-2)
end 

There is only one version of this model, created over 6 years ago by Victor Iapascurta.

Attached files

File Type Description Last updated
Iterated Logistic function with two initial conditions.png preview Preview for 'Iterated Logistic function with two initial conditions' over 6 years ago, by Victor Iapascurta Download

This model does not have any ancestors.

This model does not have any descendants.