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

%*****************************************************************************80
%
%% rule05() returns the prism rule of precision 5.
%
%  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.4872999645502457, ...
          0.0254000708995087, ...
          0.4872999645502457, ...
          0.4455981046703720, ...
          0.1088037906592560, ...
          0.4455981046703720, ...
          0.4455981046703720, ...
          0.1088037906592560, ...
          0.4455981046703720, ...
          0.1008589459827085, ...
          0.7982821080345830, ...
          0.1008589459827085, ...
          0.1008589459827085, ...
          0.7982821080345830, ...
          0.1008589459827085 ];

  y = [ ...
          0.3333333333333334, ...
          0.0254000708995087, ...
          0.4872999645502457, ...
          0.4872999645502457, ...
          0.1088037906592560, ...
          0.4455981046703720, ...
          0.4455981046703720, ...
          0.1088037906592560, ...
          0.4455981046703720, ...
          0.4455981046703720, ...
          0.7982821080345830, ...
          0.1008589459827085, ...
          0.1008589459827085, ...
          0.7982821080345830, ...
          0.1008589459827085, ...
          0.1008589459827085 ];

  z = [ ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.0644985325672780, ...
          0.0644985325672780, ...
          0.0644985325672780, ...
          0.9355014674327220, ...
          0.9355014674327220, ...
          0.9355014674327220, ...
          0.2147865096474204, ...
          0.2147865096474204, ...
          0.2147865096474204, ...
          0.7852134903525796, ...
          0.7852134903525796, ...
          0.7852134903525796 ];

  w = [ ...
          0.1778638889828717, ...
          0.0561775168070667, ...
          0.0561775168070667, ...
          0.0561775168070667, ...
          0.0464153553290395, ...
          0.0464153553290395, ...
          0.0464153553290395, ...
          0.0464153553290395, ...
          0.0464153553290395, ...
          0.0464153553290395, ...
          0.0625185714369485, ...
          0.0625185714369485, ...
          0.0625185714369485, ...
          0.0625185714369485, ...
          0.0625185714369485, ...
          0.0625185714369485 ];

  return
end
