function nintlib_test02 ( dim_num, func )

%*****************************************************************************80
%
%% nintlib_test02() tests p5_nd().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 February 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer DIM_NUM, the spatial dimension.
%
%    function FUNC ( DIM_NUM, X ), the function to be integrated.
%

%
%  Set the integration limits.
%
  a(1:dim_num) = 0.0;
  b(1:dim_num) = 1.0;
 
  [ result, eval_num ] = p5_nd ( func, dim_num, a, b );
 
  fprintf ( 1, '  P5_ND:          %20.12f  %8d\n', result, eval_num );
 
  return
end
