function [ x, w ] = rule14 ( n )

%*****************************************************************************80
%
%% RULE14 returns the rule of degree 14.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    01 July 2014
%
%  Author:
%
%    Original FORTRAN77 version by Hong Xiao, Zydrunas Gimbutas.
%    This MATLAB version by John Burkardt.
%
%  Reference:
%
%    Hong Xiao, Zydrunas Gimbutas,
%    A numerical algorithm for the construction of efficient quadrature
%    rules in two and higher dimensions,
%    Computers and Mathematics with Applications,
%    Volume 59, 2010, pages 663-676.
%
%  Parameters:
%
%    Input, integer N, the number of nodes.
%
%    Output, real X(2,N), the coordinates of the nodes.
%
%    Output, real W(N), the weights.
%
  xs = [ ...
   -0.6714783701550190E+00, ...
    0.9859876542016408E+00, ...
    0.6714783701550192E+00, ...
   -0.9859876542016408E+00, ...
   -0.9318844245957986E+00, ...
    0.9382770335701854E+00, ...
    0.9318844245957988E+00, ...
   -0.9382770335701852E+00, ...
    0.6776977793098985E+00, ...
    0.9773357693271729E+00, ...
   -0.6776977793098983E+00, ...
   -0.9773357693271729E+00, ...
    0.4073679548284153E+00, ...
    0.8648066658739809E+00, ...
   -0.4073679548284151E+00, ...
   -0.8648066658739809E+00, ...
    0.6518175069036650E-01, ...
    0.9759935658724420E+00, ...
   -0.6518175069036639E-01, ...
   -0.9759935658724420E+00, ...
   -0.7473119631960774E+00, ...
    0.7834652444128232E+00, ...
    0.7473119631960774E+00, ...
   -0.7834652444128232E+00, ...
    0.1328305205898269E+00, ...
    0.6241210323620054E+00, ...
   -0.1328305205898269E+00, ...
   -0.6241210323620054E+00, ...
   -0.4781379108769722E+00, ...
    0.5501448214169192E+00, ...
    0.4781379108769723E+00, ...
   -0.5501448214169192E+00, ...
   -0.1803286643164523E+00, ...
    0.8053335984690123E+00, ...
    0.1803286643164524E+00, ...
   -0.8053335984690123E+00, ...
   -0.4134760830488010E+00, ...
    0.9261965849285028E+00, ...
    0.4134760830488011E+00, ...
   -0.9261965849285028E+00, ...
   -0.1307639250027494E+00, ...
    0.2910908755606336E+00, ...
    0.1307639250027494E+00, ...
   -0.2910908755606336E+00 ];
  ys = [ ...
   -0.9859876542016408E+00, ...
   -0.6714783701550191E+00, ...
    0.9859876542016408E+00, ...
    0.6714783701550193E+00, ...
   -0.9382770335701855E+00, ...
   -0.9318844245957987E+00, ...
    0.9382770335701853E+00, ...
    0.9318844245957989E+00, ...
   -0.9773357693271729E+00, ...
    0.6776977793098984E+00, ...
    0.9773357693271729E+00, ...
   -0.6776977793098982E+00, ...
   -0.8648066658739809E+00, ...
    0.4073679548284152E+00, ...
    0.8648066658739809E+00, ...
   -0.4073679548284151E+00, ...
   -0.9759935658724420E+00, ...
    0.6518175069036644E-01, ...
    0.9759935658724420E+00, ...
   -0.6518175069036633E-01, ...
   -0.7834652444128232E+00, ...
   -0.7473119631960774E+00, ...
    0.7834652444128232E+00, ...
    0.7473119631960774E+00, ...
   -0.6241210323620054E+00, ...
    0.1328305205898269E+00, ...
    0.6241210323620054E+00, ...
   -0.1328305205898269E+00, ...
   -0.5501448214169192E+00, ...
   -0.4781379108769723E+00, ...
    0.5501448214169192E+00, ...
    0.4781379108769724E+00, ...
   -0.8053335984690123E+00, ...
   -0.1803286643164524E+00, ...
    0.8053335984690123E+00, ...
    0.1803286643164525E+00, ...
   -0.9261965849285028E+00, ...
   -0.4134760830488011E+00, ...
    0.9261965849285028E+00, ...
    0.4134760830488012E+00, ...
   -0.2910908755606336E+00, ...
   -0.1307639250027494E+00, ...
    0.2910908755606336E+00, ...
    0.1307639250027494E+00 ];
  ws = [ ...
    0.1410384661573933E-01, ...
    0.1410384661573933E-01, ...
    0.1410384661573933E-01, ...
    0.1410384661573933E-01, ...
    0.1896652423210582E-01, ...
    0.1896652423210582E-01, ...
    0.1896652423210582E-01, ...
    0.1896652423210582E-01, ...
    0.2088141025507279E-01, ...
    0.2088141025507279E-01, ...
    0.2088141025507279E-01, ...
    0.2088141025507279E-01, ...
    0.7331394692154988E-01, ...
    0.7331394692154988E-01, ...
    0.7331394692154988E-01, ...
    0.7331394692154988E-01, ...
    0.3078002143226069E-01, ...
    0.3078002143226069E-01, ...
    0.3078002143226069E-01, ...
    0.3078002143226069E-01, ...
    0.6693059666394105E-01, ...
    0.6693059666394105E-01, ...
    0.6693059666394105E-01, ...
    0.6693059666394105E-01, ...
    0.1122840307920054E+00, ...
    0.1122840307920054E+00, ...
    0.1122840307920054E+00, ...
    0.1122840307920054E+00, ...
    0.1159261595200915E+00, ...
    0.1159261595200915E+00, ...
    0.1159261595200915E+00, ...
    0.1159261595200915E+00, ...
    0.7346051498025349E-01, ...
    0.7346051498025349E-01, ...
    0.7346051498025349E-01, ...
    0.7346051498025349E-01, ...
    0.4099703937729331E-01, ...
    0.4099703937729331E-01, ...
    0.4099703937729331E-01, ...
    0.4099703937729331E-01, ...
    0.1394626903962344E+00, ...
    0.1394626903962344E+00, ...
    0.1394626903962344E+00, ...
    0.1394626903962344E+00 ];

  x(1,1:n) = xs(1:n);
  x(2,1:n) = ys(1:n);
  w(1:n) = ws(1:n);

  return
end