function obtuse2_test ( )

%*****************************************************************************80
%
%% obtuse2_test() tests obtuse2().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'obtuse2_test():\n' );
  fprintf ( 1, '  obtuse2() estimates the probability that, after a stick\n' );
  fprintf ( 1, '  of unit length is randomly broken into three pieces,\n' );
  fprintf ( 1, '  an obtuse triangle can be formed from the pieces.\n' );

  p = obtuse2 ( );
  exact = 9.0 - 12.0 * log ( 2.0 );

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

  return
end

