function w = legendre_compute_weights ( order )

%*****************************************************************************80
%
%% LEGENDRE_COMPUTE_WEIGHTS computes the weights of a Legendre quadrature rule.
%
%  Discussion:
%
%    This is simply a convenient interface.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 August 2009
%
%  Author:
%
%    John Burkardt.
%
%  Reference:
%
%    Philip Davis, Philip Rabinowitz,
%    Methods of Numerical Integration,
%    Second Edition,
%    Dover, 2007,
%    ISBN: 0486453391,
%    LC: QA299.3.D28.
%
%  Parameters:
%
%    Input, integer ORDER, the order of the rule.
%    ORDER must be greater than 0.
%
%    Output, real W(ORDER), the weights of the rule.
%    The weights are positive, symmetric, and should sum to 2.
%
  [ x, w ] = legendre_compute ( order );

  return
end
