1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  1. itr = 0
  2. while itr < MAX:
  3.     new_x = math.sin(a*y)-math.cos(b*x)
  4.     new_y = math.sin(c*x)-math.cos(d*y)
  5.     x = new_x
  6.     y = new_y
  7.     # save (x,y) coordinates or draw the point
  8.     itr += 1
Peter de Jong attractor
a = 2.1, b = -2.01, c = 2.08, d = -2.4
x = 1 (not null), y = 0
MAX = 5 000 000
Try it yourself