function [ w, xy ] = trig_unit_o03b ( ) %*****************************************************************************80 % %% TRIG_UNIT_O03B returns a 3 point quadrature rule for the unit triangle. % % Discussion: % % This rule is precise for monomials through degree 2. % % The integration region is: % % 0 <= X % 0 <= Y % X + Y <= 1. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 16 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(3), the weights. % % Output, real XY(2,3), the abscissas. % w(1:3) = [ ... 0.33333333333333333333, ... 0.33333333333333333333, ... 0.33333333333333333333 ]; xy(1:2,1:3) = [ ... 0.0, 0.5; ... 0.5, 0.0; ... 0.5, 0.5 ]'; return end