function biochemical_nonlinear_ode_test ( )

%*****************************************************************************80
%
%% biochemical_nonlinear_ode_test tests biochemical_nonlinear_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../biochemical_nonlinear_ode' )

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

  [ a, b, kc, kn, rmax, e, t0, y0 ] = biochemical_nonlinear_parameters ( );

  tspan = [ t0, 13.0 ];

  [ t, y ] = ode45 ( @biochemical_nonlinear_deriv, tspan, y0 );

  figure ( 1 );
  clf ( );
  plot ( t, y, 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<---  t  --->' );
  ylabel ( '<---    --->' );
  title ( 'biochemical nonlinear ODE' );
  legend ( 'C', 'N', 'P', 'D' );
  filename = 'biochemical_nonlinear_ode_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'biochemical_nonlinear_ode_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../biochemical_nonlinear_ode' )

  return
end
