function long_test ( )

%*****************************************************************************80
%
%% long_test() tests long().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'long_test():\n' );
  fprintf ( 1, '  long() estimates the probability that a triangle will be\n' );
  fprintf ( 1, '  after a stick of unit length is randomly broken in two,\n' );
  fprintf ( 1, '  and then the longer piece is randomly broken again.\n' );

  p = long ( );
  exact = 2.0 * log ( 2.0 ) - 1.0;

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

  return
end

