function laguerre_linear_product_test ( p, e )

%*****************************************************************************80
%
%% LAGUERRE_LINEAR_PRODUCT_TEST tests LAGUERRE_LINEAR_PRODUCT.
%
%  Modified:
%
%    09 May 2008
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer P, the maximum degree of the polynomial factors.
%
%    Input, integer E, the exponent of X in the integrand.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'LAGUERRE_LINEAR_PRODUCT_TEST\n' );
  fprintf ( 1, '  Compute a linearly weighted Laguerre product table.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Tij = integral ( 0 <= X < +oo ) X^E Li(X) Lj(X) exp(-X) dx\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  where Li(X) = Laguerre polynomial of degree i.\n' );

  if ( nargin < 1 )
    fprintf ( 1, '\n' );
    p = input ( '  Enter maximum degree P so that 0 <= P.' );
  end

  if ( nargin < 2 )
    fprintf ( 1, '\n' );
    e = input ( '  Enter E, the exponent of X in the integrand.' );
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Maximum degree P = %d\n', p );
  fprintf ( 1, '  Exponent E of X = %d\n', e );

  table = laguerre_linear_product ( p, e );

  r8mat_print ( p+1, p+1, table, '  Linearly weighted table:' );

  return
end
