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

%*****************************************************************************80
%
%% rule07() returns the hexahedron rule of precision 7.
%
%  Discussion:
%
%    We suppose we are given a hexahedron H with vertices
%    (0,0,0), (1,0,0), (1,1,0), (0,1,0), (0,0,1), (1,0,1), (1,1,1), (0,1,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 H is 
%    approximated by Q as follows:
%
%    Q = volume(H) * sum ( 1 <= i <= n ) w(i) * f(x(i),y(i),z(i)) 
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 May 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.0059569194056617, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.9940430805943383, ...
          0.5000000000000000, ...
          0.7039775836791597, ...
          0.2960224163208403, ...
          0.2960224163208403, ...
          0.2960224163208403, ...
          0.2960224163208403, ...
          0.7039775836791597, ...
          0.7039775836791597, ...
          0.7039775836791597, ...
          0.8905514105020593, ...
          0.1094485894979407, ...
          0.1094485894979407, ...
          0.1094485894979407, ...
          0.1094485894979407, ...
          0.8905514105020593, ...
          0.8905514105020593, ...
          0.8905514105020593, ...
          0.0759738621579806, ...
          0.9240261378420194, ...
          0.5000000000000000, ...
          0.9240261378420194, ...
          0.9240261378420194, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.0759738621579806, ...
          0.0759738621579806, ...
          0.9240261378420194, ...
          0.5000000000000000, ...
          0.0759738621579806 ];

  y = [ ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.9940430805943383, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.0059569194056617, ...
          0.2960224163208403, ...
          0.7039775836791597, ...
          0.7039775836791597, ...
          0.2960224163208403, ...
          0.2960224163208403, ...
          0.7039775836791597, ...
          0.7039775836791597, ...
          0.2960224163208403, ...
          0.1094485894979407, ...
          0.8905514105020593, ...
          0.8905514105020593, ...
          0.1094485894979407, ...
          0.1094485894979407, ...
          0.8905514105020593, ...
          0.8905514105020593, ...
          0.1094485894979407, ...
          0.0759738621579806, ...
          0.5000000000000000, ...
          0.9240261378420194, ...
          0.9240261378420194, ...
          0.5000000000000000, ...
          0.0759738621579806, ...
          0.0759738621579806, ...
          0.5000000000000000, ...
          0.9240261378420194, ...
          0.0759738621579806, ...
          0.9240261378420194, ...
          0.5000000000000000 ];

  z = [ ...
          0.5000000000000000, ...
          0.9940430805943383, ...
          0.5000000000000000, ...
          0.0059569194056617, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.2960224163208403, ...
          0.7039775836791597, ...
          0.2960224163208403, ...
          0.2960224163208403, ...
          0.7039775836791597, ...
          0.2960224163208403, ...
          0.7039775836791597, ...
          0.7039775836791597, ...
          0.1094485894979407, ...
          0.8905514105020593, ...
          0.1094485894979407, ...
          0.1094485894979407, ...
          0.8905514105020593, ...
          0.1094485894979407, ...
          0.8905514105020593, ...
          0.8905514105020593, ...
          0.5000000000000000, ...
          0.0759738621579806, ...
          0.0759738621579806, ...
          0.5000000000000000, ...
          0.9240261378420194, ...
          0.9240261378420194, ...
          0.0759738621579806, ...
          0.9240261378420194, ...
          0.5000000000000000, ...
          0.5000000000000000, ...
          0.9240261378420194, ...
          0.0759738621579806 ];

  w = [ ...
          0.0250162363729459, ...
          0.0250162363729459, ...
          0.0250162363729459, ...
          0.0250162363729459, ...
          0.0250162363729459, ...
          0.0250162363729459, ...
          0.0571442320087316, ...
          0.0571442320087316, ...
          0.0571442320087316, ...
          0.0571442320087316, ...
          0.0571442320087316, ...
          0.0571442320087316, ...
          0.0571442320087316, ...
          0.0571442320087316, ...
          0.0192245175082448, ...
          0.0192245175082448, ...
          0.0192245175082448, ...
          0.0192245175082448, ...
          0.0192245175082448, ...
          0.0192245175082448, ...
          0.0192245175082448, ...
          0.0192245175082448, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761, ...
          0.0199127154688761 ];

  return
end
