function r8_gamma_inc_test ( )

%*****************************************************************************80
%
%% R8_GAMMA_INC_TEST tests R8_GAMMA_INC.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    15 April 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_GAMMA_INC_TEST:\n' );
  fprintf ( 1, '  R8_GAMMA_INC evaluates the normalized incomplete Gamma\n' );
  fprintf ( 1, '  function P(A,X).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    A     X       Exact F      R8_GAMMA_INC(A,X)\n' );
  fprintf ( 1, '\n' );
  n_data = 0;

  while ( 1 )

    [ n_data, a, x, fx ] = gamma_inc_values ( n_data );

    if ( n_data == 0 );
      break
    end

    fx2 = r8_gamma_inc ( a, x );

    fprintf ( 1, '  %8g  %8g  %14g  %14g\n', a, x, fx, fx2 );

  end

  return
end
