function circadian_ode_test ( )

%*****************************************************************************80
%
%% circadian_ode_test() tests circadian_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 July 2026
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../circadian_ode' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'circadian_ode_test()\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Compute and plot the circadian ODE.\n' );

  [ kappa1, kappa2, kappas, ...
    k1, k2, k3, k4, kd, ki, km, ...
    n, nud, num, nus, ...
    v1, v2, v3, v4, ... 
    t0, u0, tstop ] = circadian_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  circadian parameters:\n' );
  fprintf ( 1, '    kappa1 = %g\n', kappa1 );
  fprintf ( 1, '    kappa2 = %g\n', kappa2 );
  fprintf ( 1, '    kappas = %g\n', kappas );
  fprintf ( 1, '    k1     = %g\n', k1 );
  fprintf ( 1, '    k2     = %g\n', k2 );
  fprintf ( 1, '    k3     = %g\n', k3 );
  fprintf ( 1, '    k4     = %g\n', k4 );
  fprintf ( 1, '    ki     = %g\n', ki );
  fprintf ( 1, '    km     = %g\n', km );
  fprintf ( 1, '    n      = %d\n', n );
  fprintf ( 1, '    nud    = %g\n', nud );
  fprintf ( 1, '    num    = %g\n', num );
  fprintf ( 1, '    nus    = %g\n', nus );
  fprintf ( 1, '    v1     = %g\n', v1 );
  fprintf ( 1, '    v2     = %g\n', v2 );
  fprintf ( 1, '    v3     = %g\n', v3 );
  fprintf ( 1, '    v4     = %g\n', v4 );
  fprintf ( 1, '    t0     = %g\n', t0 );
  fprintf ( 1, '    u0     = (%g,%g,%g,%g,%g)\n', u0 );
  fprintf ( 1, '    tstop  = %g\n', tstop );

  circadian_ode23 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'circadian_ode_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../circadian_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

