function toms743_test ( )

%*****************************************************************************80
%
%% toms743_test() tests toms743().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 March 2019
%
%  Author:
%
%    Original FORTRAN77 version by Andrew Barry, S. J. Barry, 
%    Patricia Culligan-Hensley.
%    MATLAB version by John Burkardt.
%
%  Reference:
%
%    Andrew Barry, S. J. Barry, Patricia Culligan-Hensley,
%    Algorithm 743: WAPR - A Fortran routine for calculating real 
%    values of the W-function,
%    ACM Transactions on Mathematical Software,
%    Volume 21, Number 2, June 1995, pages 172-181.
%
  addpath ( '../toms743' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'toms743_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test toms743().\n' );

  nbits = nbits_compute ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of bits in mantissa - 1 = %d\n', nbits );

  toms743_test01 ( nbits );

  dx = + 1.0E-09;
  n = 10;
  toms743_test02 ( nbits, dx, n );

  xmin = 0.0;
  xmax = 1.0E+20
  n = 20;
  toms743_test03 ( nbits, xmin, xmax, n );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'toms743_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../toms743' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%

%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end
