function stiff_euler_test ( n )

%*****************************************************************************80
%
%% stiff_euler uses the Euler method on the stiff ODE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 February 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N: the number of steps to take.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'stiff_euler_test\n' );
  fprintf ( 1, '  Solve stiff ODE using the Euler method.\n' );

  t0 = 0.0;
  tstop = 1.0;

  [ t1, y1 ] = stiff_euler ( n );

  t2 = linspace ( t0, tstop, 101 );
  y2 = stiff_exact ( t2 );

  plot ( t1, y1, 'r-o', t2, y2, 'b-', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y(t) -->' );
  title ( 'Stiff equation, Euler method' );
  legend ( 'Computed', 'Exact' );
  filename = 'stiff_euler.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end
