function beta_inc_test ( )

%*****************************************************************************80
%
%% beta_inc_test() tests beta_inc().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 April 2013
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'BETA_INC_TEST():\n' );
  fprintf ( 1, '  BETA_INC() evaluates the normalized incomplete Beta\n' );
  fprintf ( 1, '  function BETA_INC(A,B,X).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      A           B           X               Exact F     BETA_INC(A,B,X)\n' );
  fprintf ( 1, '\n' );
  n_data = 0;

  while ( true )

    [ n_data, a, b, x, fx ] = beta_inc_values ( n_data );

    if ( n_data == 0 );
      break
    end

    fx2 = beta_inc ( a, b, x );

    fprintf ( 1, '  %10f  %10f  %10f  %14f  %14f\n', a, b, x, fx, fx2 );

  end

  return
end
