function humps_euler ( tspan, y0, n )

%*****************************************************************************80
%
%% humps_euler solves the humps ODE using the euler code.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 February 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real TSPAN(2): the initial and final times.
%
%    real Y0: the initial condition.
%
%    integer N: the number of steps to take.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'humps_euler:\n' );

  f = @ humps_deriv;

  [ t, y ] = euler ( f, tspan, y0, 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 ( 'euler: Humps ODE' );

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

  return
end
