function euler_humps_test ( n )

%*****************************************************************************80
%
%% euler_humps_test calls the Euler code.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 April 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N: the number of steps to take.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'euler_humps_test:\n' );

  f = @ humps_deriv;
  tspan = [ 0.0, 2.0 ];
  y0 = humps_exact ( tspan(1) );

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

  y2 = humps_exact ( t );

  clf ( );
  hold ( 'on' );
  plot ( t, y, 'r-', 'linewidth', 3 );
  plot ( t, y2, 'b-', 'linewidth', 3 );
  hold ( 'off' );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y(t) -->' );
  title ( 'euler: humps ODE' );
  legend ( 'Euler', 'Exact' );

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

  return
end
