function e = logistic_euler ( n )

%*****************************************************************************80
%
%% logistic_euler calls the Euler code for the logistic ODE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    07 February 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N: the number of steps to take.
%
%  Output:
%
%    real E: the RMS approximation error.
%
  if ( nargin < 1 )
    n = 10;
  end

  f = @ logistic_deriv;
  t0 = 0.0;
  tstop = 10.0;
  tspan = [ t0, tstop ];
  y0 = 0.2;

  [ t, y1 ] = euler ( f, tspan, y0, n );
  y2 = logistic_solution ( t, t0, y0 );

  e = rms ( y1 - y2 );

  return
end

