Example description
    Program s21bjfe

!     S21BJF Example Program Text

!     Mark 26.2 Release. NAG Copyright 2017.

!     .. Use Statements ..
      Use nag_library, Only: nag_wp, s21bjf
!     .. Implicit None Statement ..
      Implicit None
!     .. Parameters ..
      Integer, Parameter               :: nout = 6
!     .. Local Scalars ..
      Real (Kind=nag_wp)               :: dm, f
      Integer                          :: ifail, ix
!     .. Intrinsic Procedures ..
      Intrinsic                        :: real
!     .. Executable Statements ..
      Write (nout,*) 'S21BJF Example Program Results'

      Write (nout,*)
      Write (nout,*) '    DM       S21BJF'
      Write (nout,*)

data: Do ix = 1, 3
        dm = real(ix,kind=nag_wp)*0.25E0_nag_wp

        ifail = -1
        f = s21bjf(dm,ifail)

        If (ifail<0) Then
          Exit data
        End If

        Write (nout,99999) dm, f
      End Do data

99999 Format (1X,F7.2,F12.4)
    End Program s21bjfe