function local_min_rc_test ( )

%*****************************************************************************80
%
%% local_min_rc_test tests local_min_r.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    16 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../local_min_rc' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'local_min_rc_test\n' );
  fprintf ( 1, '  MATLAB version.\n' );
  fprintf ( 1, '  Test local_min_rc\n' );

  t = 10.0 * sqrt ( eps );

  a = 0.0;
  b = 3.141592653589793;

  test_example ( a, b, t, @g_01, ...
    'g_01(x) = ( x - 2 ) * ( x - 2 ) + 1' );

  a = 0.0;
  b = 1.0;

  test_example ( a, b, t, @g_02, ...
    'g_02(x) = x * x + exp ( - x )' );

  a = -2.0;
  b =  2.0;

  test_example ( a, b, t, @g_03, ...
    'g_03(x) = x^4 + 2x^2 + x + 3' );

  a =  0.0001;
  b =  1.0;

  test_example ( a, b, t, @g_04, ...
    'g_04(x) = exp ( x ) + 1 / ( 100 x )' );

  a =  0.0002;
  b = 2.0;

  test_example ( a, b, t, @g_05, ...
    'g_05(x) = exp ( x ) - 2x + 1/(100x) - 1/(1000000x^2)' );

  a = 1.8;
  b = 1.9;

  test_example ( a, b, t, @g_06, ...
    'g_06(x) = - x * sin ( 10 pi x ) - 1' );

  a = 0.0;
  b = 2.0;

  test_example ( a, b, t, @g_07, ...
    'g_07(x) = 2x^4 - 4x^2 + x + 20' );

  a = -2.0;
  b = 0.0;

  test_example ( a, b, t, @g_07, ...
    'g_07(x) = 2x^4 - 4x^2 + x + 20' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'local_min_rc_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../local_min_rc' );

  return
end

