program main !*****************************************************************************80 ! !! MAIN is the main program for OWENS_PRB. ! ! Discussion: ! ! OWENS_PRB calls the OWENS routines. ! ! Modified: ! ! 16 January 2008 ! ! Author: ! ! John Burkardt ! implicit none call timestamp ( ) write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'OWENS_PRB:' write ( *, '(a)' ) ' FORTRAN90 version' write ( *, '(a)' ) ' ' write ( *, '(a)' ) ' Test routines in the OWENS library.' call test01 write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'OWENS_PRB:' write ( *, '(a)' ) ' Normal end of execution.' write ( *, '(a)' ) ' ' call timestamp ( ) stop end subroutine test01 !*****************************************************************************80 ! !! TEST01 demonstrates the use of T. ! ! Modified: ! ! 02 February 2008 ! ! Author: ! ! John Burkardt ! implicit none real ( kind = 8 ) a real ( kind = 8 ) h integer ( kind = 4 ) n_data real ( kind = 8 ) t real ( kind = 8 ) t1 real ( kind = 8 ) t2 write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'TEST01:' write ( *, '(a)' ) ' T computes the Owen T function.' write ( *, '(a)' ) ' Compare with tabulated values.' write ( *, '(a)' ) ' ' write ( *, '(a,a)' ) ' H A ', & 'T T DIFF' write ( *, '(a,a)' ) ' ', & '(Tabulated) (TFN)' write ( *, '(a)' ) ' ' n_data = 0 do call owen_values ( n_data, h, a, t1 ) if ( n_data == 0 ) then exit end if t2 = t ( h, a ) write ( *, '(2x,f14.6,2x,f14.6,2x,g24.16,2x,g24.16,2x,g10.4)' ) & h, a, t1, t2, abs ( t1 - t2 ) end do return end