function box_test ( )

%*****************************************************************************80
%
%% box_test() tests the Box function.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 3;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'box_test()\n' );
  fprintf ( 1, '  box() evaluates the Box function.\n' );

  t0 = 0.00001;
  h0 = 20.0;
  prin = 0;

  x = [ 0.0; 10.0; 20.0 ];

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

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

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

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

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

  return
end
