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

%*****************************************************************************80
%
%% rule03() returns the pyramid quadrature rule of precision 3.
%
%  Discussion:
%
%    The unit pyramid with square base is the region
%
%      -1 <= X <= 1
%      -1 <= Y <= 1
%       0 <= Z <= 1.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2023
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Jan Jaskowiec, Natarajan Sukumar,
%    High order symmetric cubature rules for tetrahedra and pyramids,
%    International Journal for Numerical Methods in Engineering,
%    Volume 122, Number 1, pages 148-171, 24 August 2020.
%
%  Output:
%
%    x(n), y(n), z(n): the coordinates of quadrature points.
%
%    w(n): the quadrature weights.
%
  x = [ ...
      0.00000000000000000000, ...
      0.00000000000000000000, ...
      0.58459636639471157515, ...
     -0.58459636639471157515, ...
      0.58459636639471157515, ...
     -0.58459636639471157515 ];

  y = [ ...
      0.00000000000000000000, ...
      0.00000000000000000000, ...
      0.58459636639471157515, ...
      0.58459636639471157515, ...
     -0.58459636639471157515, ...
     -0.58459636639471157515 ];

  z = [ ...
      0.03032132711145601317, ...
      0.56560718797897435728, ...
      0.16666666666666665741, ...
      0.16666666666666665741, ...
      0.16666666666666665741, ...
      0.16666666666666665741 ];

  w = [ ...
      0.15345064748545933497, ...
      0.26133122207480513621, ...
      0.14630453260993386833, ...
      0.14630453260993386833, ...
      0.14630453260993386833, ...
      0.14630453260993386833 ];

  return
end
