function [ x, w ] = rule11 ( n )

%*****************************************************************************80
%
%% RULE11 returns the rule of degree 11.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    09 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(3,N), the coordinates of the nodes.
%
%    Output, real W(N), the weights.
%
  xs = [ ...
    0.9651177776899700E-01,-0.7093619453993043, ...
    0.6128501676297941,-0.4527836424396549E-02, ...
    -0.4612438490926584,0.4657716855189367, ...
    0.2438655531438615E-01,0.3220723301923039, ...
    -0.3464588855081770,-0.1267500664585161, ...
    -0.5368057828378728,0.6635558492970384, ...
    -0.9547972451775022E-01,-0.2357077639614438, ...
    0.3311874884792527,-0.7908328086591814E-02, ...
    -0.7854922635641037,0.7934005916498822, ...
    -0.1494644432070149,-0.3155198764172914, ...
    0.4649843196230657,0.1165276860785583, ...
    -0.4038862538014747,0.2873585677227137, ...
    -0.2047755067090988E-02,-0.9205200026937792E-01, ...
    0.9409975533966558E-01,0.3468354574885807, ...
    0.1682368211989309,-0.5150722786890125, ...
    -0.1144319727418180,-0.7020417246489494, ...
    0.8164736973908203,-0.3048702567593000, ...
    -0.1613129802547456,0.4661832370146523, ...
    0.2101640308259509,0.3270815374994656, ...
    -0.5372455683250684,-0.6404070599046534E-01, ...
    -0.5801912598472644,0.6442319658370544, ...
    0.5470009647103604E-02,-0.2517469475214085, ...
    0.2462769378777770,0.1008461981380965E-01, ...
    0.1731441764929287,-0.1832287963083161, ...
    0.1748982078445799,-0.3794913490849509, ...
    0.2045931412407059,0.1065391638487668E-01, ...
    -0.3452291078932529,0.3345751915058239, ...
    -0.7083686826885625E-03,0.2101573677291210, ...
    -0.2094489990466886,-0.2851273048890965, ...
    -0.3267460563855006,0.6118733612746845, ...
    -0.2323209396920720E-02,-0.2164769352136706, ...
    0.2188001446096009,-0.2051577904029304E-01, ...
    -0.5570838828147304,0.5775996618543481, ...
    -0.3026455196997997E-02,0.1457949533626576, ...
    -0.1427684981666913,-0.1973538549140939, ...
    -0.1582348302473636,0.3555886851614904, ...
    0.1068857744362264,-0.4126086236419754, ...
    0.3057228492051779,-0.3003364082942412, ...
    0.3997857603256970,-0.9944935203203158E-01, ...
    0.1221835246093986E-01,-0.8799955089249785, ...
    0.8677771564639284,0.1534568838650121, ...
    -0.7253511736488428,0.5718942897840599, ...
    0.2235456216473980E-02,-0.5785135622840735, ...
    0.5762781060658508,0.9436416592156352E-01, ...
    0.3995572440244000,-0.4939214099453045, ...
    0.1578951817317316E-11,-0.7234508899977211E-12, ...
    -0.1195010503052243E-12,0.1273193864088492E-12, ...
    -0.1398313045262104E-12 ];
  ys = [ ...
    0.7633795193833395,-0.2981081083795290, ...
    -0.4652714110037153,0.5352126684505152, ...
    -0.2715275555928822,-0.2636851128574337, ...
    -0.3859766773459927,0.2141077150870582, ...
    0.1718689622588539,0.6930291114382893, ...
    -0.4562833332036821,-0.2367457782343889, ...
    0.3272971265990525,-0.2463364302786462, ...
    -0.8096069632058686E-01,0.9115742149797984, ...
    -0.4626359205144959,-0.4489382944649009, ...
    0.4506243076880464,-0.3547521586231100, ...
    -0.9587214906505584E-01,0.3990903837832518, ...
    -0.9862925550286258E-01,-0.3004611282798994, ...
    0.1074747662091034,-0.5551079101315480E-01, ...
    -0.5196397519770712E-01,-0.3945086927598004, ...
    0.4976226634994518,-0.1031139707392109, ...
    0.8767152876835527,-0.5374586392410802, ...
    -0.3392566484421098,0.3622851099556234, ...
    -0.4451679421897679,0.8288283223322354E-01, ...
    -0.4990194872156122,0.4315171332646398, ...
    0.6750235395125617E-01,0.7069210789517217, ...
    -0.4089214177391241,-0.2979996612119608, ...
    0.2875342242963981,-0.1390299448345922, ...
    -0.1485042794638735,-0.2057520317788134, ...
    0.1116095528368255,0.9414247894240614E-01, ...
    0.3372213377187678,-0.1714437779017452E-01, ...
    -0.3200769599289869,0.3924851952555710, ...
    -0.1870160353880812,-0.2054691598668353, ...
    -0.2422598488114232,0.1205164591315570, ...
    0.1217433896809788,0.5419121734527502, ...
    -0.5178835760728716,-0.2402859737978143E-01, ...
    0.2513073392081394,-0.1276656279597885, ...
    -0.1236417112471668,0.6551098499602489, ...
    -0.3453221108076170,-0.3097877391525884, ...
    -0.1666021864185573,0.8068010612598300E-01, ...
    0.8592208029345208E-01,0.2966561449375769, ...
    -0.3192415243590572,0.2258537942164062E-01, ...
    0.4147288692159332,-0.1147986386430089, ...
    -0.2999302305730746,-0.2882335265091744, ...
    -0.1159821960086673,0.4042157225193962, ...
    0.1009077018844530E+01,-0.4939571057987255, ...
    -0.5151199130457724,0.7489650175178515, ...
    -0.2415849489462737,-0.5073800685715635, ...
    0.6667192805807411,-0.3314236784178127, ...
    -0.3352956021620059,-0.5158501413847826, ...
    0.3396468355868865,0.1762033057983631, ...
    -0.8069526265224892E-12,0.4596851666550035E-12, ...
    0.1156254386801148E-12,0.5765654131403360E-13, ...
    -0.1226198587930237E-12 ];
  zs = [ ...
    -0.1868268863122697,-0.1868268863123053, ...
    -0.1868268863112705,0.4194136456710284, ...
    0.4194136456717518,0.4194136456711013, ...
    0.5030086583798776E-01,0.5030086583729960E-01, ...
    0.5030086583707338E-01,-0.1505956145194099, ...
    -0.1505956145190243,-0.1505956145192429, ...
    -0.1725275785423899,-0.1725275785429845, ...
    -0.1725275785414913,-0.1709810615420194, ...
    -0.1709810615421794,-0.1709810615408042, ...
    0.7674742839401762E-01,0.7674742839470597E-01, ...
    0.7674742839681360E-01,-0.3720134569923326, ...
    -0.3720134569922893,-0.3720134569921418, ...
    0.9342960665019454,0.9342960665021878, ...
    0.9342960664953203,-0.3611736289802844E-01, ...
    -0.3611736289860155E-01,-0.3611736289902880E-01, ...
    -0.3535560367475518,-0.3535560367476202, ...
    -0.3535560367476884,-0.1926114352197085, ...
    -0.1926114352198034,-0.1926114352197086, ...
    -0.2818523519641055,-0.2818523519643090, ...
    -0.2818523519648298,-0.3888552761464975, ...
    -0.3888552761464523,-0.3888552761454053, ...
    0.6654848063127317,0.6654848063130780, ...
    0.6654848063078891,0.1794683181875785E-01, ...
    0.1794683181975163E-01,0.1794683181866871E-01, ...
    -0.2272794453431112,-0.2272794453432979, ...
    -0.2272794453429204,0.8078480103364902E-01, ...
    0.8078480103319574E-01,0.8078480103608091E-01, ...
    0.3406111942551650,0.3406111942551089, ...
    0.3406111942537021,-0.3549131236009490, ...
    -0.3549131236011042,-0.3549131236012491, ...
    0.4213057676587053,0.4213057676584742, ...
    0.4213057676619541,-0.2430250873757710, ...
    -0.2430250873755122,-0.2430250873736784, ...
    0.6939507005767215,0.6939507005768448, ...
    0.6939507005757009,-0.3547895907184612, ...
    -0.3547895907186004,-0.3547895907184947, ...
    0.3273634204692249,0.3273634204691543, ...
    0.3273634204697847,0.3797479097987934, ...
    0.3797479098019154,0.3797479097984070, ...
    -0.3626672020688875,-0.3626672020689380, ...
    -0.3626672020686431,-0.3656623860600263, ...
    -0.3656623860600038,-0.3656623860598407, ...
    0.1056953360682411,0.1056953360682777, ...
    0.1056953360707847,-0.4015122352990265, ...
    -0.4015122352990430,-0.4015122352995484, ...
    0.1118223609071020E+01,0.6664104583675564, ...
    -0.3809990858052303,-0.2253945502682283, ...
    0.2604940999755755 ];
  ws = [ ...
    0.6188005592967251E-02,0.6188005592972490E-02, ...
    0.6188005592984317E-02,0.1421063031043561E-02, ...
    0.1421063031047919E-02,0.1421063030985486E-02, ...
    0.9481646089825704E-02,0.9481646089870772E-02, ...
    0.9481646089801222E-02,0.6814905118771046E-02, ...
    0.6814905118757536E-02,0.6814905118753749E-02, ...
    0.1912041674313553E-01,0.1912041674309802E-01, ...
    0.1912041674324984E-01,0.3076029506690844E-02, ...
    0.3076029506690773E-02,0.3076029506710983E-02, ...
    0.1135836724916717E-01,0.1135836724921729E-01, ...
    0.1135836724932070E-01,0.1091603321391938E-01, ...
    0.1091603321391454E-01,0.1091603321395138E-01, ...
    0.4213691001392970E-02,0.4213691001384827E-02, ...
    0.4213691001487200E-02,0.1206837849134008E-01, ...
    0.1206837849134312E-01,0.1206837849132945E-01, ...
    0.2578861292324762E-02,0.2578861292345221E-02, ...
    0.2578861292334968E-02,0.1252456101442731E-01, ...
    0.1252456101442267E-01,0.1252456101444618E-01, ...
    0.8063913155156468E-02,0.8063913155154395E-02, ...
    0.8063913155182456E-02,0.4993280626450522E-02, ...
    0.4993280626459499E-02,0.4993280626580781E-02, ...
    0.6150188384809636E-02,0.6150188384813883E-02, ...
    0.6150188384677927E-02,0.2678388417077401E-01, ...
    0.2678388417077927E-01,0.2678388417078649E-01, ...
    0.1946856127752551E-01,0.1946856127748248E-01, ...
    0.1946856127749281E-01,0.2102094189170934E-01, ...
    0.2102094189169974E-01,0.2102094189174428E-01, ...
    0.1685367818736497E-01,0.1685367818729912E-01, ...
    0.1685367818732997E-01,0.5900869705091857E-02, ...
    0.5900869705093673E-02,0.5900869705073673E-02, ...
    0.1690563324458130E-01,0.1690563324459602E-01, ...
    0.1690563324456019E-01,0.1476341187397782E-01, ...
    0.1476341187398414E-01,0.1476341187397479E-01, ...
    0.6992794755775152E-02,0.6992794755747075E-02, ...
    0.6992794755746150E-02,0.1513056742691520E-01, ...
    0.1513056742688911E-01,0.1513056742692685E-01, ...
    0.7015883109811540E-02,0.7015883109809210E-02, ...
    0.7015883109746114E-02,0.4965174122051565E-02, ...
    0.4965174121903291E-02,0.4965174122041231E-02, ...
    0.2712699778890213E-02,0.2712699778885687E-02, ...
    0.2712699778899985E-02,0.5900718944404856E-02, ...
    0.5900718944405426E-02,0.5900718944424988E-02, ...
    0.8768888887154097E-02,0.8768888887160882E-02, ...
    0.8768888887196669E-02,0.3175432879836244E-02, ...
    0.3175432879833069E-02,0.3175432879794895E-02, ...
    0.1078986495318477E-02,0.1747404076054822E-01, ...
    0.1129982873905144E-01,0.2890093028298477E-01, ...
    0.2624431483486055E-01 ];

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

  return
end
