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:
%
%    02 May 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:
%
%    real x(n), y(n), z(n): the coordinates of quadrature points.
%
%    real w(n): the quadrature weights, which sum to 1.
%
  x = [ ...
          0.3333333333333333, ...
          0.0517646178271648, ...
          0.0517646178271648, ...
          0.8964707643456705, ...
          0.1663967696311171, ...
          0.1663967696311171, ...
          0.6672064607377658, ...
          0.1663967696311171, ...
          0.1663967696311171, ...
          0.6672064607377658, ...
          0.4976649895838920, ...
          0.4976649895838920, ...
          0.0046700208322159, ...
          0.4976649895838920, ...
          0.4976649895838920, ...
          0.0046700208322159 ];

  y = [ ...
          0.3333333333333333, ...
          0.0517646178271648, ...
          0.8964707643456705, ...
          0.0517646178271648, ...
          0.1663967696311171, ...
          0.6672064607377658, ...
          0.1663967696311171, ...
          0.1663967696311171, ...
          0.6672064607377658, ...
          0.1663967696311171, ...
          0.4976649895838920, ...
          0.0046700208322159, ...
          0.4976649895838920, ...
          0.4976649895838920, ...
          0.0046700208322159, ...
          0.4976649895838920 ];

  z = [ ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.9035817431942219, ...
          0.9035817431942219, ...
          0.9035817431942219, ...
          0.0964182568057780, ...
          0.0964182568057780, ...
          0.0964182568057780, ...
          0.3013691627751696, ...
          0.3013691627751696, ...
          0.3013691627751696, ...
          0.6986308372248304, ...
          0.6986308372248304, ...
          0.6986308372248304 ];

  w = [ ...
          0.2071428343483058, ...
          0.0380755890309976, ...
          0.0380755890309976, ...
          0.0380755890309976, ...
          0.0763742613922619, ...
          0.0763742613922619, ...
          0.0763742613922619, ...
          0.0763742613922619, ...
          0.0763742613922619, ...
          0.0763742613922619, ...
          0.0367308050341883, ...
          0.0367308050341883, ...
          0.0367308050341883, ...
          0.0367308050341883, ...
          0.0367308050341883, ...
          0.0367308050341883 ];

  return
end
