function y = logistic_exact ( t )

%*****************************************************************************80
%
%% logistic_exact() evaluates the exact solution for logistic_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real t(): the evaluation points.
%
%  Output:
%
%    real y(): the function values.
%
  [ r, k, t0, y0, tstop ] = logistic_parameters ( );

  y = ( k * y0 * exp ( r * ( t - t0 ) ) ) ...
    ./ ( k + y0 * ( exp ( r * ( t - t0 ) ) - 1.0 ) );

  return
end

