function levels_test ( )

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

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

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

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

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

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

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

  rmpath ( '../levels' )

  return
end
