Example description
    Program c02anfe

!     C02ANF Example Program Text

!     Mark 26.2 Release. NAG Copyright 2017.

!     .. Use Statements ..
      Use nag_library, Only: c02anf, nag_wp
!     .. Implicit None Statement ..
      Implicit None
!     .. Parameters ..
      Integer, Parameter               :: nin = 5, nout = 6
!     .. Local Scalars ..
      Complex (Kind=nag_wp)            :: a, b, c, d, e
      Integer                          :: i, ifail
!     .. Local Arrays ..
      Real (Kind=nag_wp)               :: errest(4), zeroi(4), zeror(4)
!     .. Executable Statements ..
      Write (nout,*) 'C02ANF Example Program Results'

!     Skip heading in data file
      Read (nin,*)

      Read (nin,*) e, a, b, c, d

      ifail = 0
      Call c02anf(e,a,b,c,d,zeror,zeroi,errest,ifail)

      Write (nout,*)
      Write (nout,*) ' Roots of quartic equation   ',                          &
        '        Error estimates'
      Write (nout,*) '                             ',                          &
        '      (machine-dependent)'
      Write (nout,*)

      Do i = 1, 4
        Write (nout,99999) ' z = ', zeror(i), zeroi(i), '*i', errest(i)
      End Do

99999 Format (1X,A,1P,E12.4,Sp,E12.4,A,8X,Ss,E9.1)
    End Program c02anfe