function [ x, w ] = rule11 ( n )

%*****************************************************************************80
%
%% RULE11 returns the rule of degree 11.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    01 July 2014
%
%  Author:
%
%    Original FORTRAN77 version by Hong Xiao, Zydrunas Gimbutas.
%    This MATLAB version by John Burkardt.
%
%  Reference:
%
%    Hong Xiao, Zydrunas Gimbutas,
%    A numerical algorithm for the construction of efficient quadrature
%    rules in two and higher dimensions,
%    Computers and Mathematics with Applications,
%    Volume 59, 2010, pages 663-676.
%
%  Parameters:
%
%    Input, integer N, the number of nodes.
%
%    Output, real X(2,N), the coordinates of the nodes.
%
%    Output, real W(N), the weights.
%
  xs = [ ...
    0.1885861387186414E+00, ...
    0.9535395282015320E+00, ...
   -0.1885861387186413E+00, ...
   -0.9535395282015320E+00, ...
   -0.6980761045495679E+00, ...
    0.9826392235408555E+00, ...
    0.6980761045495681E+00, ...
   -0.9826392235408555E+00, ...
   -0.9394863828167370E+00, ...
    0.8257758359029639E+00, ...
    0.9394863828167370E+00, ...
   -0.8257758359029637E+00, ...
   -0.7120019130753364E+00, ...
    0.5253202503645475E+00, ...
    0.7120019130753364E+00, ...
   -0.5253202503645475E+00, ...
   -0.3156234329152547E+00, ...
    0.8125205483048131E+00, ...
    0.3156234329152548E+00, ...
   -0.8125205483048131E+00, ...
   -0.4248472488486694E+00, ...
    0.4165807191202203E-01, ...
    0.4248472488486694E+00, ...
   -0.4165807191202197E-01 ];
  ys = [ ...
   -0.9535395282015320E+00, ...
    0.1885861387186414E+00, ...
    0.9535395282015320E+00, ...
   -0.1885861387186413E+00, ...
   -0.9826392235408555E+00, ...
   -0.6980761045495680E+00, ...
    0.9826392235408555E+00, ...
    0.6980761045495683E+00, ...
   -0.8257758359029640E+00, ...
   -0.9394863828167370E+00, ...
    0.8257758359029638E+00, ...
    0.9394863828167370E+00, ...
   -0.5253202503645475E+00, ...
   -0.7120019130753364E+00, ...
    0.5253202503645475E+00, ...
    0.7120019130753364E+00, ...
   -0.8125205483048131E+00, ...
   -0.3156234329152547E+00, ...
    0.8125205483048131E+00, ...
    0.3156234329152549E+00, ...
   -0.4165807191202205E-01, ...
   -0.4248472488486694E+00, ...
    0.4165807191202200E-01, ...
    0.4248472488486694E+00 ];
  ws = [ ...
    0.6886285066821880E-01, ...
    0.6886285066821880E-01, ...
    0.6886285066821880E-01, ...
    0.6886285066821880E-01, ...
    0.3395580740305121E-01, ...
    0.3395580740305121E-01, ...
    0.3395580740305121E-01, ...
    0.3395580740305121E-01, ...
    0.4671948489426224E-01, ...
    0.4671948489426224E-01, ...
    0.4671948489426224E-01, ...
    0.4671948489426224E-01, ...
    0.1595417182608939E+00, ...
    0.1595417182608939E+00, ...
    0.1595417182608939E+00, ...
    0.1595417182608939E+00, ...
    0.1497202089079448E+00, ...
    0.1497202089079448E+00, ...
    0.1497202089079448E+00, ...
    0.1497202089079448E+00, ...
    0.2483067110521767E+00, ...
    0.2483067110521767E+00, ...
    0.2483067110521767E+00, ...
    0.2483067110521767E+00 ];

  x(1,1:n) = xs(1:n);
  x(2,1:n) = ys(1:n);
  w(1:n) = ws(1:n);

  return
end