function laguerre_integrands_test03 ( )

%*****************************************************************************80
%
%% laguerre_integrands_TEST03 tests P00_GAUSS_LAGUERRE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    28 December 2011
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'laguerre_integrands_TEST03\n' );
  fprintf ( 1, '  P00_GAUSS_LAGUERRE applies a Gauss-Laguerre rule\n' );
  fprintf ( 1, '  to estimate an integral on [ALPHA,+oo).\n' );

  problem_num = p00_problem_num ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '                           Exact\n' );
  fprintf ( 1, '   Problem     Order       Estimate    Error\n' );

  for problem = 1 : problem_num

    exact = p00_exact ( problem );

    order = 1;

    fprintf ( 1, '\n' );
    fprintf ( 1, '  %8d            %14.6f\n', problem, exact );

    for order_log = 0 : 6

      estimate = p00_gauss_laguerre ( problem, order );

      err = abs ( exact - estimate );

      fprintf ( 1, '            %8d  %14.6f  %14.6e\n', order, estimate, err );

      order = order * 2;

    end

  end

  return
end
