function golf_test ( )

%*****************************************************************************80
%
%% golf_test() tests golf().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'golf_test():\n' );
  fprintf ( 1, '  golf() estimates the probability that a golf ball,\n' );
  fprintf ( 1, '  randomly landing in the unit square, will be\n' );
  fprintf ( 1, '  closer to the center than to any edge.\n' );

  p = golf ( );
  exact = ( 4.0 * sqrt ( 2.0 ) - 5.0 ) / 3.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Estimate = %g, exact is %g\n', p, exact );

  return
end

