function dydt = logistic_deriv ( t, y )

%*****************************************************************************80
%
%% logistic_deriv() returns the derivative for logistic_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real T: the current time.
%
%    real Y: the current solution value.
%
%  Output:
%
%    real DYDT: the value of dY/dT.
%
  [ r, k, t0, y0, tstop ] = logistic_parameters ( );

  dydt = r * y * ( 1.0 - y / k );

  return
end

