function ratio2_test ( )

%*****************************************************************************80
%
%% ratio2_test() tests ratio2().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ratio2_test():\n' );
  fprintf ( 1, '  ratio2() estimates the probability PROB that, given three\n' );
  fprintf ( 1, '  random numbers, the ratio of the largest to the smallest\n' );
  fprintf ( 1, '  is greater than or equal to K.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  K  PROB\n' );
  fprintf ( 1, '\n' );
  for k = 2 : 10
    prob = ratio2 ( k );
    fprintf ( 1, '  %2d  %g\n', k, prob );
  end

  return
end

