function stetter_midpoint_test ( n )

%*****************************************************************************80
%
%% stetter_midpoint_test() uses the midpoint method on the Stetter ODE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 March 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N: the number of steps to take.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'stetter_midpoint_test\n' );
  fprintf ( 1, '  Solve the Stetter ODE using the midpoint method.\n' );

  [ t, y ] = stetter_midpoint ( n );

  plot ( t, y, 'r-o', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y(t) -->' );
  title ( 'Stetter ODE, midpoint method' );
  filename = 'stetter_midpoint.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end
