function [ w, xyz ] = tetrahedron_unit_o08 ( )

%*****************************************************************************80
%
%% TETRAHEDRON_UNIT_O08 returns an 8 point quadrature rule for the unit tetrahedron.
%
%  Discussion:
%
%    The integration region is:
%
%      0 <= X
%      0 <= Y
%      0 <= Z
%      X + Y + Z <= 1.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    19 April 2009
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Carlos Felippa,
%    A compendium of FEM integration formulas for symbolic work,
%    Engineering Computation,
%    Volume 21, Number 8, 2004, pages 867-890.
%
%  Parameters:
%
%    Output, real W(8), the weights.
%
%    Output, real XYZ(3,8), the abscissas.
%
  w(1:8,1) = [ ...
    0.13852796651186214232, ...
    0.13852796651186214232, ...
    0.13852796651186214232, ...
    0.13852796651186214232, ...
    0.11147203348813785768, ...
    0.11147203348813785768, ...
    0.11147203348813785768, ...
    0.11147203348813785768 ];

  xyz(1:3,1:8) = [ ...
    0.015835909865720057993,  0.32805469671142664734,  0.32805469671142664734; ...
    0.32805469671142664734,  0.015835909865720057993,  0.32805469671142664734; ...
    0.32805469671142664734,  0.32805469671142664734,  0.015835909865720057993; ...
    0.32805469671142664734,  0.32805469671142664734,  0.32805469671142664734; ...
    0.67914317820120795168,  0.10695227393293068277,  0.10695227393293068277; ...
    0.10695227393293068277,  0.67914317820120795168,  0.10695227393293068277; ...
    0.10695227393293068277,  0.10695227393293068277,  0.67914317820120795168; ...
    0.10695227393293068277,  0.10695227393293068277,  0.10695227393293068277 ]';

  return
end
