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 algr
      real*8 x0
      real*8 f, rootfind
      external f, rootfind
      x0 = rootfind(f)
      write(*,*) x0
      end
c
      real*8 function rootfind(f)
      real*8 f
      external f
      real*8 eps, x, xprev
      parameter (eps = 0.000000001d0)
      x = 0.1d0
100   xprev = x
      x = x - f(x) / ((f(x + eps) - f(x - eps)) / (2 * eps))
      if(abs(x - xprev).gt.eps) goto 100
      rootfind = x
      end
c
      real*8 function f(x)
      real*8 x
      f = x * x - 1
      end
