function toms1040_manual_test ( )

%*****************************************************************************80
%
%% toms1040_manual_test() tests the examples in the TOMS1040 manual.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 August 2025
%
%  Author:
%
%    John Burkardt
%

%
%  Add to the path the toms140 directory and all subdirectories!
%
  addpath ( genpath ( '../toms1040' ) );

  timestamp ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'toms1040_manual_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test TOMS1040 manual examples.\n' );

  section_3 ( );
  section_4 ( );
  section_5_forwardUQ ( );
  section_5_inverseUQ ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'toms1040_manual_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  timestamp ( );

  rmpath ( genpath ( '../toms1040' ) );

  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
