function blood_pressure_ode_test ( )

%*****************************************************************************80
%
%% blood_pressure_ode_test() solves blood_pressure_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 March 2022
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../blood_pressure_ode' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'blood_pressure_ode_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  blood_pressure_ode() models pressure variation\n' );
  fprintf ( 1, '  in the human blood network.' );
%
%  Get parameters.
%
  [ pdia, psys, pulse, q, told, t0, y0, tstop ] = blood_pressure_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  parameters:\n' );
  fprintf ( 1, '    pdia  = %g\n', pdia );
  fprintf ( 1, '    psys  = %g\n', psys );
  fprintf ( 1, '    pulse = %g\n', pulse );
  fprintf ( 1, '    q     = %g\n', q );
  fprintf ( 1, '    told  = %g\n', told );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    y0    = %g\n', y0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  ca = blood_pressure_compliance ( );
  rs = blood_pressure_resistance ( );
  fprintf ( 1, '    compliance = %g\n', ca );
  fprintf ( 1, '    resistance = %g\n', rs );

  blood_pressure_exact_test ( );

  n = 100;
  blood_pressure_euler ( n );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'blood_pressure_ode_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../blood_pressure_ode' )

  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

