function fmintx_test ( )

%*****************************************************************************80
%
%% fmintx_test tests fmintx.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 January 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'fmintx_test\n' );
  fprintf ( 1, '  fmintx finds a minimizer of a function.\n' );

  f = @cos;
  a = 3.0;
  b = 4.0;

  x = fmintx ( f, a, b );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Seek the minimizer of cos(x) between %g and %g\n', a, b );
  fprintf ( 1, '  cos(%g) = %g\n', x, cos(x) );

  return
end
