function beale_test ( )

%*****************************************************************************80
%
%% beale_test() calls PRAXIS for the Beale function.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 2;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'beale_test():\n' );
  fprintf ( 1, '  beale() evaluates the Beale function.\n' );

  t0 = 0.00001;
  h0 = 0.25;
  prin = 0;

  x = [ 0.1; 0.1 ];

  r8vec_print ( n, x, '  Initial point:' );

  fprintf ( 1, '  Function value = %g\n', beale_f ( x, n ) );

  [ pr, x ] = praxis ( t0, h0, n, prin, x, @beale_f );

  r8vec_print ( n, x, '  Computed minimizer:' );

  fprintf ( 1, '  Function value = %g\n', beale_f ( x, n ) );

  return
end
 
