function iplot_test ( )

%*****************************************************************************80
%
%% iplot_test() tests iplot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 December 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../iplot' );

  timestamp ( );
  fprintf ( 1, 'iplot_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  iplot() is an interactive function plotter.\n' );

  [ xp, yp ] = iplot ( 'x.^2', -1.0, 3.0 );

  pause ( 5 );

  [ xp, yp ] = iplot ( '1.0 ./ ( 1.0 + x.^2 )', -5.0, 5.0 );

  pause ( 5 );
%
%  Legendre polynomial of 5th degree:
%
  [ xp, yp ] = iplot ( '(63*x.^5-70*x.^3+15*x)/8', -1.0, 3.0 );

  pause ( 5 );

  [ xp, yp ] = iplot ( 'wiggle(x)', 0.0, 5.0 );

  pause ( 5 );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'iplot_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );
  rmpath ( '../iplot' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

