function humps_euler ( n )

%*****************************************************************************80
%
%% humps_euler() solves humps_ode() using euler().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 April 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N: the number of steps to take.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'humps_euler():\n' );
  fprintf ( 1, '  Solve humps_ode() using euler().\n' );

  [ t0, y0, tstop ] = humps_parameters ( );

  tspan = [ t0, tstop ];
  f = @ humps_deriv;

  [ t, y ] = euler ( f, tspan, y0, n );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of fixed steps = %d\n', n );

  y2 = humps_exact ( t );

  clf ( );
  hold ( 'on' );
  plot ( t, y, 'ro-', 'linewidth', 3 );
  plot ( t, y2, 'b-', 'linewidth', 3 );
  hold ( 'off' );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y(t) -->' );
  legend ( 'Computed', 'Exact' );
  title ( 'humps_ode(): euler()' );

  print ( '-dpng', 'humps_euler.png' );

  return
end
