function ratio1_test ( )

%*****************************************************************************80
%
%% ratio1_test() tests ratio1().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ratio1_test():\n' );
  fprintf ( 1, '  ratio1() estimates the probability PROB that the ratio of\n' );
  fprintf ( 1, '  two random numbers is greater than K.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  K  Estimated  Approximated\n' );
  fprintf ( 1, '\n' );
  for k = 2 : 10
    prob = ratio1 ( k );
    approximated = 1.0 / k;
    fprintf ( 1, '  %2d  %g  %g\n', k, prob, approximated );
  end

  return
end

