function tfn_test ( )

%*****************************************************************************80
%
%% TFN_TEST tests TFN.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    12 April 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'TFN_TEST\n' );
  fprintf ( 1, '  TFN evaluates Owen''s T function.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      H             A           T(H,A)       Exact\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( 1 )

    [ n_data, h, a, t ] = owen_values ( n_data );

    if ( n_data <= 0 )
      break;
    end

    t2 = tfn ( h, a );

    fprintf ( 1, '  %14g  %14g  %14g  %14g\n', h, a, t2, t );

  end

  return
end
