C Collection of code snippets by Arne Vajhøj 
C (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
      program algc
      complex*16 x0
      complex*16 f1, f2, rootfind
      external f1, f2, rootfind
      x0 = rootfind(f1)
      write(*,*) x0
      x0 = rootfind(f2)
      write(*,*) x0
      end
c
      complex*16 function rootfind(f)
      complex*16 f
      external f
      real*8 epsr
      complex*16 epsc, x, xprev
      parameter (epsr = 0.000000001d0, epsc = (epsr,epsr))
      x = (0.1d0,0.1d0)
100   xprev = x
      x = x - f(x) / ((f(x + epsc) - f(x - epsc)) / (2 * epsc))
      if(abs(x - xprev).gt.epsr) goto 100
      rootfind = x
      end
c
      complex*16 function f1(x)
      complex*16 x
      f1 = x * x - 1
      end
c
      complex*16 function f2(x)
      complex*16 x
      f2 = x * x + 1
      end
