function [ a, b, c, d, w ] = rule02 ( )

%*****************************************************************************80
%
%% rule02() returns the rule of precision 2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 April 2023
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Jan Jaskowiec, Natarajan Sukumar,
%    High order symmetric cubature rules for tetrahedra and pyramids,
%    International Journal of Numerical Methods in Engineering,
%    Volume 122, Number 1, pages 148-171, 24 August 2020.
%
%  Output:
%
%    a(n), b(n), c(n), d(n): the barycentric coordinates of quadrature points.
%
%    w(n): the quadrature weights.
%
  a = [ ...
      0.13819660112501050420, ...
      0.58541019662496840414, ...
      0.13819660112501050420, ...
      0.13819660112501050420 ];

  b = [ ...
      0.13819660112501050420, ...
      0.13819660112501050420, ...
      0.58541019662496840414, ...
      0.13819660112501050420 ];

  c = [ ...
      0.13819660112501050420, ...
      0.13819660112501050420, ...
      0.13819660112501050420, ...
      0.58541019662496840414 ];

  d = [ ...
      0.58541019662496840414, ...
      0.13819660112501050420, ...
      0.13819660112501050420, ...
      0.13819660112501050420 ];

  w = [ ...
      0.25000000000000000000, ...
      0.25000000000000000000, ...
      0.25000000000000000000, ...
      0.25000000000000000000 ];

  return
end
