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

%*****************************************************************************80
%
%% rule03() returns the prism rule of precision 3.
%
%  Discussion:
%
%    We suppose we are given a triangular prism P with vertices
%    (1,0,0), (0,1,0), (0,0,0),
%    (1,0,1), (0,1,1), (0,0,1),
%    We call a rule with n points, returning coordinates
%    x, y, z, and weights w.  Then the integral I of f(x,y,z) over P is 
%    approximated by Q as follows:
%
%    Q = volume(P) * sum ( 1 <= i <= n ) w(i) * f(x(i),y(i),z(i)) 
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 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 coordinates of quadrature points.
%
%    real w(n): the quadrature weights, which sum to 1.
%
  x = [ ...
          0.3333333333333334, ...
          0.3333333333333334, ...
          0.2388834359565783, ...
          0.7611141478748917, ...
          0.0000024161685299, ...
          0.7611141478748917, ...
          0.0000024161685299, ...
          0.2388834359565783 ];

  y = [ ...
          0.3333333333333334, ...
          0.3333333333333334, ...
          0.7611141478748917, ...
          0.2388834359565783, ...
          0.7611141478748917, ...
          0.0000024161685299, ...
          0.2388834359565783, ...
          0.0000024161685299 ];

  z = [ ...
          0.0696653977676110, ...
          0.9303346022323890, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000 ];

  w = [ ...
          0.2249967381449005, ...
          0.2249967381449005, ...
          0.0916677539516998, ...
          0.0916677539516998, ...
          0.0916677539516998, ...
          0.0916677539516998, ...
          0.0916677539516998, ...
          0.0916677539516998 ];

  return
end
