Program s17dhfe
! S17DHF Example Program Text
! Mark 26.2 Release. NAG Copyright 2017.
! .. Use Statements ..
Use nag_library, Only: nag_wp, s17dhf
! .. Implicit None Statement ..
Implicit None
! .. Parameters ..
Integer, Parameter :: nin = 5, nout = 6
! .. Local Scalars ..
Complex (Kind=nag_wp) :: bi, z
Integer :: ifail, ioerr
Character (1) :: deriv, scal
! .. Executable Statements ..
Write (nout,*) 'S17DHF Example Program Results'
! Skip heading in data file
Read (nin,*)
Write (nout,*)
Write (nout,*) 'DERIV Z SCAL BI'
Write (nout,*)
data: Do
Read (nin,*,Iostat=ioerr) deriv, z, scal
If (ioerr<0) Then
Exit data
End If
ifail = 0
Call s17dhf(deriv,z,scal,bi,ifail)
Write (nout,99999) deriv, z, scal, bi
End Do data
99999 Format (3X,A,' (',F8.4,',',F8.4,') ',A,' (',F8.4,',',F8.4,')')
End Program s17dhfe