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

%*****************************************************************************80
%
%% rule03() returns the rule of precision 3.
%
%  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.32868114666534897772, ...
      0.01395656000395302174, ...
      0.32868114666534897772, ...
      0.32868114666534897772, ...
      0.11192072750929155101, ...
      0.66423781747212540250, ...
      0.11192072750929155101, ...
      0.11192072750929155101 ];

  b = [ ...
      0.32868114666534897772, ...
      0.32868114666534897772, ...
      0.01395656000395302174, ...
      0.32868114666534897772, ...
      0.11192072750929155101, ...
      0.11192072750929155101, ...
      0.66423781747212540250, ...
      0.11192072750929155101 ];

  c = [ ...
      0.32868114666534897772, ...
      0.32868114666534897772, ...
      0.32868114666534897772, ...
      0.01395656000395302174, ...
      0.11192072750929155101, ...
      0.11192072750929155101, ...
      0.11192072750929155101, ...
      0.66423781747212540250 ];

  d = [ ...
      0.01395656000395302174, ...
      0.32868114666534897772, ...
      0.32868114666534897772, ...
      0.32868114666534897772, ...
      0.66423781747212540250, ...
      0.11192072750929155101, ...
      0.11192072750929155101, ...
      0.11192072750929155101 ];

  w = [ ...
      0.12749131155750642597, ...
      0.12749131155750642597, ...
      0.12749131155750642597, ...
      0.12749131155750642597, ...
      0.12250868844249357403, ...
      0.12250868844249357403, ...
      0.12250868844249357403, ...
      0.12250868844249357403 ];

  return
end
