function [ n, x, y, w, s ] = hexagon_rule_lyness01 ( )

%*****************************************************************************80
%
%% hexagon_rule_lyness01 sets the Lyness hexagon quadrature rule #01.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    20 April 2019
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    James Lyness, Giovanni Monegato,
%    Quadrature rules for regions having regular hexagonal symmetry,
%    SIAM Journal on Numerical Analysis.
%    Volume 14 Number 2, April 1977, pages 283-295.
%
%  Parameters:
%
%    Output, integer n, the number of points.
%
%    Output, real x(n), y(n), the points.
%
%    Output, real w(n), the weights.
%
%    Output, integer s, the strength.
%
  n = 6;
  x = zeros ( n, 1 );
  y = zeros ( n, 1 );
  w = zeros ( n, 1 );
  
  x(1) = 0.6454972243679028;
  y(1) = 0.0;
  w(1) = 1.0 / 6.0;
  for i = 2 : 6
    x(i) = cosd ( 60.0 ) * x(i-1) - sind ( 60.0 ) * y(i-1);
    y(i) = sind ( 60.0 ) * x(i-1) + cosd ( 60.0 ) * y(i-1);
    w(i) = w(i-1);
  end
  s = 3;

  return
end
