function p_integral_test ( )

%*****************************************************************************80
%
%% P_INTEGRAL_TEST tests P_INTEGRAL.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    15 March 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'P_INTEGRAL_TEST\n' );
  fprintf ( 1, '  P_INTEGRAL returns the integral of P(n,x) over [-1,+1].\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     N                  Integral\n' );
  fprintf ( 1, '\n' );

  for n = 0 : 10

    value = p_integral ( n );

    fprintf ( 1, '  %4d  %24.16g\n', n, value );

  end
 
  return
end
