function biochemical_nonlinear_ode45 ( )

%*****************************************************************************80
%
%% biochemical_nonlinear_ode45(): solve biochemical_nonlinear_ode() using ode45().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 April 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'biochemical_nonlinear_ode45():\n' );
  fprintf ( 1, '  Use ode45() to solve biochemical_nonlinear_ode().\n' );

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

  tspan = [ t0, tstop ];

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

  n = size ( t, 1 );
  fprintf ( 1, '  Number of (adaptive) steps used = %d\n', n );

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

  return
end

