Hennon attractor for fractal dimension calculations
Source code name: "hennon_attractor.py"
Programming language: Python
Topic: Function/Non-parametric
DMelt Version 1.4. Last modified: 08/20/2017. License: Pro
https://datamelt.org/code/cache/hennon_attractor_2447.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from jhplot  import *

a,b=1.4,0.3 # initial values 
p=P1D("Henon attractor")
p.setSymbol("Dot")
x,y=0,0
for i in range(100000):
   x1=x
   x=1+y-a*x*x
   y=b*x1
   p.add(x,y)
c1 = SPlot()
c1.setGTitle("Henon attractor")
c1.visible(); c1.setAutoRange()
c1.draw(p)





You see the box below because you did not login.