function levels_test ( )

%*****************************************************************************80
%
%% levels_test() tests levels().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../levels' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'levels_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test levels().\n' );

  levels_xy ( @beale_xy, 50, [-5,5], [-5,5], 'beale_xy.png' );

  levels_xy ( @bohach1_xy, 50, [-0.75,0.75], [-0.75,+0.75], 'bohach1_xy.png' );

  levels_xy ( @bohach2_xy, 50, [-1,+1], [-1,+1], 'bohach2_xy.png' );

  levels_xy ( @goldstein_price_xy, 50, [-5,+5], [-5,+5], ...
    'goldstein_price_xy.png' );

  levels_xy ( @local_xy, 50, [-35,20], [-40,15], 'local_xy.png' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'levels_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../levels' )

  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

