function line_lines_packing_test ( )

%*****************************************************************************80
%
%% line_lines_packing_test() tests line_lines_packing().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 August 2024
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../line_lines_packing' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'line_lines_packing_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test line_lines_packing().\n' );
  x_min = 0.0;
  x_max = 100.0;
  c_width = 1.0;

  [ c_try, c_park, density_obs, density_max ] = line_lines_packing ( x_min, ...
    x_max, c_width );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of "cars" parked  = %d\n', c_park );
  fprintf ( 1, '  Number of parking trials = %d\n', c_try );
  fprintf ( 1, '  density_max            = %g\n', density_max );
  fprintf ( 1, '  density_obs            = %g\n', density_obs );
  fprintf ( 1, '  Renyi parking constant = %g\n', 0.7475979202 );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'line_lines_packing_test()\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../line_lines_packing' );
  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2022
%
%  Author:
%
%    John Burkardt
%
  t = now ( );
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end
