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,-.7093619453993043, ...
    0.6128501676297941,-.4527836424396549E-02, ...
    -.4612438490926584,0.4657716855189367, ...
    0.2438655531438615E-01,0.3220723301923039, ...
    -.3464588855081770,-.1267500664585161, ...
    -.5368057828378728,0.6635558492970384, ...
    -.9547972451775022E-01,-.2357077639614438, ...
    0.3311874884792527,-.7908328086591814E-02, ...
    -.7854922635641037,0.7934005916498822, ...
    -.1494644432070149,-.3155198764172914, ...
    0.4649843196230657,0.1165276860785583, ...
    -.4038862538014747,0.2873585677227137, ...
    -.2047755067090988E-02,-.9205200026937792E-01, ...
    0.9409975533966558E-01,0.3468354574885807, ...
    0.1682368211989309,-.5150722786890125, ...
    -.1144319727418180,-.7020417246489494, ...
    0.8164736973908203,-.3048702567593000, ...
    -.1613129802547456,0.4661832370146523, ...
    0.2101640308259509,0.3270815374994656, ...
    -.5372455683250684,-.6404070599046534E-01, ...
    -.5801912598472644,0.6442319658370544, ...
    0.5470009647103604E-02,-.2517469475214085, ...
    0.2462769378777770,0.1008461981380965E-01, ...
    0.1731441764929287,-.1832287963083161, ...
    0.1748982078445799,-.3794913490849509, ...
    0.2045931412407059,0.1065391638487668E-01, ...
    -.3452291078932529,0.3345751915058239, ...
    -.7083686826885625E-03,0.2101573677291210, ...
    -.2094489990466886,-.2851273048890965, ...
    -.3267460563855006,0.6118733612746845, ...
    -.2323209396920720E-02,-.2164769352136706, ...
    0.2188001446096009,-.2051577904029304E-01, ...
    -.5570838828147304,0.5775996618543481, ...
    -.3026455196997997E-02,0.1457949533626576, ...
    -.1427684981666913,-.1973538549140939, ...
    -.1582348302473636,0.3555886851614904, ...
    0.1068857744362264,-.4126086236419754, ...
    0.3057228492051779,-.3003364082942412, ...
    0.3997857603256970,-.9944935203203158E-01, ...
    0.1221835246093986E-01,-.8799955089249785, ...
    0.8677771564639284,0.1534568838650121, ...
    -.7253511736488428,0.5718942897840599, ...
    0.2235456216473980E-02,-.5785135622840735, ...
    0.5762781060658508,0.9436416592156352E-01, ...
    0.3995572440244000,-.4939214099453045, ...
    0.1578951817317316D-11,-.7234508899977211D-12, ...
    -.1195010503052243D-12,0.1273193864088492D-12, ...
    -.1398313045262104D-12 ];
  ys = [ ...
    0.7633795193833395,-.2981081083795290, ...
    -.4652714110037153,0.5352126684505152, ...
    -.2715275555928822,-.2636851128574337, ...
    -.3859766773459927,0.2141077150870582, ...
    0.1718689622588539,0.6930291114382893, ...
    -.4562833332036821,-.2367457782343889, ...
    0.3272971265990525,-.2463364302786462, ...
    -.8096069632058686E-01,0.9115742149797984, ...
    -.4626359205144959,-.4489382944649009, ...
    0.4506243076880464,-.3547521586231100, ...
    -.9587214906505584E-01,0.3990903837832518, ...
    -.9862925550286258E-01,-.3004611282798994, ...
    0.1074747662091034,-.5551079101315480E-01, ...
    -.5196397519770712E-01,-.3945086927598004, ...
    0.4976226634994518,-.1031139707392109, ...
    0.8767152876835527,-.5374586392410802, ...
    -.3392566484421098,0.3622851099556234, ...
    -.4451679421897679,0.8288283223322354E-01, ...
    -.4990194872156122,0.4315171332646398, ...
    0.6750235395125617E-01,0.7069210789517217, ...
    -.4089214177391241,-.2979996612119608, ...
    0.2875342242963981,-.1390299448345922, ...
    -.1485042794638735,-.2057520317788134, ...
    0.1116095528368255,0.9414247894240614E-01, ...
    0.3372213377187678,-.1714437779017452E-01, ...
    -.3200769599289869,0.3924851952555710, ...
    -.1870160353880812,-.2054691598668353, ...
    -.2422598488114232,0.1205164591315570, ...
    0.1217433896809788,0.5419121734527502, ...
    -.5178835760728716,-.2402859737978143E-01, ...
    0.2513073392081394,-.1276656279597885, ...
    -.1236417112471668,0.6551098499602489, ...
    -.3453221108076170,-.3097877391525884, ...
    -.1666021864185573,0.8068010612598300E-01, ...
    0.8592208029345208E-01,0.2966561449375769, ...
    -.3192415243590572,0.2258537942164062E-01, ...
    0.4147288692159332,-.1147986386430089, ...
    -.2999302305730746,-.2882335265091744, ...
    -.1159821960086673,0.4042157225193962, ...
    0.1009077018844530D+01,-.4939571057987255, ...
    -.5151199130457724,0.7489650175178515, ...
    -.2415849489462737,-.5073800685715635, ...
    0.6667192805807411,-.3314236784178127, ...
    -.3352956021620059,-.5158501413847826, ...
    0.3396468355868865,0.1762033057983631, ...
    -.8069526265224892D-12,0.4596851666550035D-12, ...
    0.1156254386801148D-12,0.5765654131403360D-13, ...
    -.1226198587930237D-12 ];
  zs = [ ...
    -.1868268863122697,-.1868268863123053, ...
    -.1868268863112705,0.4194136456710284, ...
    0.4194136456717518,0.4194136456711013, ...
    0.5030086583798776E-01,0.5030086583729960E-01, ...
    0.5030086583707338E-01,-.1505956145194099, ...
    -.1505956145190243,-.1505956145192429, ...
    -.1725275785423899,-.1725275785429845, ...
    -.1725275785414913,-.1709810615420194, ...
    -.1709810615421794,-.1709810615408042, ...
    0.7674742839401762E-01,0.7674742839470597E-01, ...
    0.7674742839681360E-01,-.3720134569923326, ...
    -.3720134569922893,-.3720134569921418, ...
    0.9342960665019454,0.9342960665021878, ...
    0.9342960664953203,-.3611736289802844E-01, ...
    -.3611736289860155E-01,-.3611736289902880E-01, ...
    -.3535560367475518,-.3535560367476202, ...
    -.3535560367476884,-.1926114352197085, ...
    -.1926114352198034,-.1926114352197086, ...
    -.2818523519641055,-.2818523519643090, ...
    -.2818523519648298,-.3888552761464975, ...
    -.3888552761464523,-.3888552761454053, ...
    0.6654848063127317,0.6654848063130780, ...
    0.6654848063078891,0.1794683181875785E-01, ...
    0.1794683181975163E-01,0.1794683181866871E-01, ...
    -.2272794453431112,-.2272794453432979, ...
    -.2272794453429204,0.8078480103364902E-01, ...
    0.8078480103319574E-01,0.8078480103608091E-01, ...
    0.3406111942551650,0.3406111942551089, ...
    0.3406111942537021,-.3549131236009490, ...
    -.3549131236011042,-.3549131236012491, ...
    0.4213057676587053,0.4213057676584742, ...
    0.4213057676619541,-.2430250873757710, ...
    -.2430250873755122,-.2430250873736784, ...
    0.6939507005767215,0.6939507005768448, ...
    0.6939507005757009,-.3547895907184612, ...
    -.3547895907186004,-.3547895907184947, ...
    0.3273634204692249,0.3273634204691543, ...
    0.3273634204697847,0.3797479097987934, ...
    0.3797479098019154,0.3797479097984070, ...
    -.3626672020688875,-.3626672020689380, ...
    -.3626672020686431,-.3656623860600263, ...
    -.3656623860600038,-.3656623860598407, ...
    0.1056953360682411,0.1056953360682777, ...
    0.1056953360707847,-.4015122352990265, ...
    -.4015122352990430,-.4015122352995484, ...
    0.1118223609071020D+01,0.6664104583675564, ...
    -.3809990858052303,-.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
