function mortality_test ( )

%*****************************************************************************80
%
%% mortality_test() tests mortality().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 November 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../mortality' );

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

  mortality_cdf_plot ( );
  mortality_count_plot ( );
  mortality_expected_plot ( );
  mortality_pdf_plot ( );
  mortality_plus10_plot ( );
  mortality_table ( );
  mortality_this_year_plot ( );
  mortality_to_die_plot ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'mortality_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../mortality' );

  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

