function laguerre_exactness_test ( )

%*****************************************************************************80
%
%% laguerre_exactness_test() tests Gauss-Laguerre rules for Laguerre integrals.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 May 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'laguerre_exactness_test()\n' );
  fprintf ( 1, '  Test Gauss-Laguerre rules on Laguerre integrals.\n' );
  fprintf ( 1, '  Density function rho(x) = exp(-x).\n' );
  fprintf ( 1, '  Region: 0 <= x < +oo.\n' );
  fprintf ( 1, '  Exactness: 2N-1.\n' );

  for n = 1 : 5

    [ x, w ] = laguerre_set ( n );
    p_max = 2 * n;
    laguerre_exactness ( n, x, w, p_max );

  end

  return
end
