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

%*****************************************************************************80
%
%% rule03() returns the rule of precision 3.
%
%  Discussion:
%
%    This is a copy of rule04.m.
%
%    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.4459484909159649, ...
      0.1081030181680702, ...
      0.4459484909159649, ...
      0.0915762135097707, ...
      0.8168475729804585, ...
      0.0915762135097707 ];

  y = [ ...
      0.1081030181680702, ...
      0.4459484909159649, ...
      0.4459484909159649, ...
      0.8168475729804585, ...
      0.0915762135097707, ...
      0.0915762135097707 ];

  z = [ ...
      0.4459484909159649, ...
      0.4459484909159649, ...
      0.1081030181680702, ...
      0.0915762135097707, ...
      0.0915762135097707, ...
      0.8168475729804585 ];

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

  return
end
