Program s18de_p0w_fe
! S18DE_P0W_F Example Program Text
! Mark 30.2 Release. NAG Copyright 2024.
! .. Use Statements ..
Use iso_c_binding, Only: c_ptr
Use nagad_library, Only: s18de_p0w_f
Use nag_library, Only: nag_wp
! .. Implicit None Statement ..
Implicit None
! .. Parameters ..
Integer, Parameter :: n = 1, nout = 6
! .. Local Scalars ..
Type (c_ptr) :: ad_handle
Complex (Kind=nag_wp) :: z
Real (Kind=nag_wp) :: fnu
Integer :: ifail, nz
Character (1) :: scal
! .. Local Arrays ..
Complex (Kind=nag_wp) :: cy(n)
! .. Intrinsic Procedures ..
Intrinsic :: cmplx
! .. Executable Statements ..
Write (nout,*) 'S18DE_P0W_F Example Program Results'
fnu = 5.5_nag_wp
scal = 'S'
z = cmplx(-6.1_nag_wp,9.8_nag_wp,kind=nag_wp)
Write (nout,99998) 'FNU', 'Z', 'SCAL', 'CY(1)'
ifail = 0
Call s18de_p0w_f(ad_handle,fnu,z,n,scal,cy,nz,ifail)
Write (nout,99999) fnu, z, scal, cy(1)
99999 Format (1X,F7.4,' (',F7.3,',',F7.3,') ',A,' (',F7.3,',',F7.3,')')
99998 Format (/,A7,A12,A12,A12,/)
End Program s18de_p0w_fe