function stiff_euler_backward_test ( n )

%*****************************************************************************80
%
%% stiff_euler_backward_test tests stiff_euler_backward().
%
%  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.
%
  [ t1, y1 ] = stiff_euler_backward ( n );

  t2 = linspace ( 0.0, 1.0, 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, backward Euler method' );
  legend ( 'Computed', 'Exact' );
  print ( '-dpng', 'stiff_euler_backward.png' );

  return
end
