function [ x, y, z, w ] = rule01 ( )

%*****************************************************************************80
%
%% rule01() returns the rule of precision 1.
%
%  Discussion:
%
%    The data is given for the following triangle:
%
%     (0,1) 
%       |   \ 
%       |    \ 
%       |     \ 
%       |      \ 
%     (0,0)----(1,0)
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 April 2023
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Freddie Witherden, Peter Vincent,
%    On the identification of symmetric quadrature rules for finite element methods,
%    Computers and Mathematics with Applications,
%    Volume 69, pages 1232-1241, 2015.
%
%  Output:
%
%    real x(n), y(n), z(n): the barycentric coordinates of quadrature points.
%
%    real w(n): the quadrature weights.
%
  x = [ ...
      0.3333333333333334 ];

  y = [ ...
      0.3333333333333334 ];

  z = [ ...
      0.3333333333333333 ];

  w = [ ...
      0.5000000000000000 ];
%
%  The weights should sum to 1, not 1/2!
%
  w = w * 2.0;

  return
end
