function [ x, w ] = rule14 ( n )

%*****************************************************************************80
%
%% RULE14 returns the rule of degree 14.
%
%  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 = [ ...
    -.5752422835841802,0.4314967658691802, ...
    0.1437455177139820,-.3303076984155172, ...
    0.4866309056595519,-.1563232072429510, ...
    -.5770168798465761E-02,-.7016819527781105, ...
    0.7074521215770434,-.3032416710412216, ...
    -.2339888323701999,0.5372305034104569, ...
    0.2995840525991514,-.4325354814520043, ...
    0.1329514288534004,0.2313978508942549, ...
    -.4060579401191659E-01,-.1907920568806182, ...
    0.1198459969693036,-.5485013403177168, ...
    0.4286553433493205,-.4223067018453286, ...
    0.2051376117542425,0.2171690900904567, ...
    -.1995552059487330,-.3336302067365579, ...
    0.5331854126840413,-.3362367775957516E-02, ...
    -.2082502914064486,0.2116126591830406, ...
    0.3901789196843061,-.4123770748876975E-03, ...
    -.3897665426036371,0.5440475521812093E-02, ...
    -.5671976659757272,0.5617571904593656, ...
    0.5109903009675820E-01,-.8812309166767075, ...
    0.8301318865798517,-.3334033396451877, ...
    -.4849473999181729E-01,0.3818980796337723, ...
    0.2967209217147687,0.6320475373066934E-02, ...
    -.3030413970906470,0.3947081540530285, ...
    -.2978075731654519,-.9690058088341083E-01, ...
    0.4602277425410929,-.2588695285519879, ...
    -.2013582139898412,0.4320204013442107, ...
    0.2158666376867163,-.6478870390304328, ...
    0.3243502588043465E-02,-.8153377567221353, ...
    0.8120942541315551,-.2929639748058975, ...
    0.3937181324850053E-01,0.2535921615554882, ...
    -.2911712364207900,0.4448737339859005, ...
    -.1537024975672874,0.3770577628402459, ...
    -.4566844608555435,0.7962669801609278E-01, ...
    -.7343568438702067E-03,-.6012198115212343E-01, ...
    0.6085633799849959E-01,-.7860612444751536, ...
    0.7072341550237046,0.7882708945288715E-01, ...
    -.1798079430257987,-.5716591672723068, ...
    0.7514671102985679,0.2349121749284232E-01, ...
    -.2977965988756665,0.2743053813811669, ...
    -.3508185900315901,0.3561089208016359, ...
    -.5290330768361618E-02,-.4799997070573949, ...
    0.3284477153105494,0.1515519917450605, ...
    0.5503749362395663,-.1236979845612246, ...
    -.4266769516797990,-.1160913996018244, ...
    0.1218716230766462,-.5780223478460763E-02, ...
    -.1795966192456130,-.5071498846594161, ...
    0.6867465039037227,-.4731311596169461E-02, ...
    -.6889415863849245,0.6936728979813912, ...
    0.1838019755826437,-.7414338401434005, ...
    0.5576318645605018,-.3157482778904093, ...
    0.1186260398816200E-01,0.3038856739015107, ...
    -.3760156844932397,0.2533165859904101, ...
    0.1226990985037814,0.3132847887437243E-01, ...
    0.1567813343830147,-.1881098132555542, ...
    -.5940398288585815,0.6767061397330466, ...
    -.8266631087504343E-01,0.5799063749491890, ...
    0.7755651500224905E-01,-.6574628899522570, ...
    0.1959288531923632,0.8941019681549953E-01, ...
    -.2853390500081148,0.2938476934905306, ...
    0.2019773488401272E-02,-.2958674669799366, ...
    0.3655020525321305,-.5615458414677339, ...
    0.1960437889355228,-.5706595245720943E-01, ...
    -.7715171223939032,0.8285830748522059, ...
    0.1011528057210596,-.1051837271533038, ...
    0.4030921431232027E-02,-.2124197258439737, ...
    0.3605072524272380,-.1480875265845512, ...
    -.1651782199629099,0.7878215733569789E-02, ...
    0.1573000042284481,-.3617927525610758, ...
    -.2009201308789826,0.5627128834404685, ...
    -.5015820600281335,0.4144850071548899, ...
    0.8709705287395679E-01,0.9434068372117834, ...
    0.4463509082121593E-02,-.9478703462960307, ...
    0.2005751720829750,-.1945620110873523, ...
    -.6013160997523850E-02,-.1255658338458569E-01, ...
    -.4674319437690188,0.4799885271519170, ...
    -.1716908737168969E-01,0.1956591346765856, ...
    -.1784900473056204,-.5462757915789873E-03, ...
    -.5780834828017836,0.5786297585932533, ...
    -.1833877013210589,0.2818210581349795, ...
    -.9843335681437262E-01,0.1916617895075464, ...
    -.7885465203364792E-03,-.1908732429835174, ...
    -.4813891231174998E-01,-.8618855209039119, ...
    0.9100244332179739,-.4424462871708599, ...
    0.5232153544540827,-.8076906728405848E-01, ...
    0.2330164669103972,-.5137198179676699, ...
    0.2807033510564895,0.3967080654003286D-12, ...
    0.1722425458471176D-11,0.3502410373140708D-12, ...
    -.2947942461866533D-11,-.1032091026644403D-11, ...
    -.4359393565820349D-12 ];
  ys = [ ...
    -.1661332605832194,-.4151078006247312, ...
    0.5812410612053462,-.3712097301616572, ...
    -.1004499928153783,0.4716597229753685, ...
    0.8135639371543177,-.4117790813394923, ...
    -.4017848558132318,0.4452636911188574, ...
    -.4852468361674822,0.3998314505168596E-01, ...
    0.3264840198869604,0.9620539017564665E-01, ...
    -.4226894100630985,-.8671007929617915E-01, ...
    0.2437514569045547,-.1570413776087273, ...
    0.5641616743542007,-.1782911592597502, ...
    -.3858705150939825,0.6946377256844247E-02, ...
    -.3692015206135402,0.3622551433574067, ...
    0.5004562312099742,-.4230479934143149, ...
    -.7740823779440852E-01,0.2424079875448238, ...
    -.1241158896833233,-.1182920978621629, ...
    -.2247937322813834,0.4503017226062891, ...
    -.2255079903239726,0.6518023902669200, ...
    -.3211896051207328,-.3306127851443094, ...
    0.9880557751410730,-.4497748293987996, ...
    -.5382809457428603,0.2484874102685690, ...
    -.4129794669742624,0.1644920567082871, ...
    -.1786101603431211,0.3462729362116060, ...
    -.1676627758691386,0.1159937060740129, ...
    0.2838304354535469,-.3998241415280471, ...
    0.3320417294495800E-01,0.3819668300942372, ...
    -.4151710030395980,-.4986884177668357, ...
    0.6234848514007479,-.1247964336323278, ...
    0.9395983095546842,-.4669901991392865, ...
    -.4726081104148907,0.1236801757609007, ...
    -.3155543324553964,0.1918741566946638, ...
    -.3455881484181401,-.7936761338079117E-01, ...
    0.4249557617992578,0.3096393919455638, ...
    0.1717219053442890,-.4813612972863747, ...
    0.6984686512807867E-01,-.3555940424550629E-01, ...
    -.3428746088226146E-01,-.3628109884665136, ...
    -.4993435124130320,0.8621545008801837, ...
    0.7639073125277335,-.5376719027263360, ...
    -.2262354098013041,0.3303032323049931, ...
    -.1448076250378262,-.1854956072669932, ...
    -.2086539551781068,-.1994908334986071, ...
    0.4081447886767858,-.1021307936198597, ...
    -.3646265433107137,0.4667573369306311, ...
    -.1749249882226239,0.5641011705032603, ...
    -.3891761822782046,-.7369982797233314E-01, ...
    -.6368818722810367E-01,0.1373880152000548, ...
    0.6892964013212863,-.5001834353611165, ...
    -.1891129659598641,0.7982528447344757, ...
    -.4032238584029919,-.3950289863308680, ...
    0.7500159343054114,-.2158307870331475, ...
    -.5341851472730395,0.1685995980230182, ...
    -.3577458288655779,0.1891462308433379, ...
    -.7541204156110640E-01,-.2879331142125014, ...
    0.3633451557721906,-.1991229969303482, ...
    0.1266927570309605,0.7243023989959384E-01, ...
    -.4384238887740483,-.2952416382641486, ...
    0.7336655270377042,-.4243636513101600, ...
    0.7143954781786902,-.2900318268675506, ...
    -.2163615785319861,0.2778601534641544, ...
    -.6149857493356037E-01,-.1719852784726787, ...
    0.3404722066425572,-.1684869281697858, ...
    0.4373945770482864,0.9783677410376379E-01, ...
    -.5352313511523523,0.9238182796099402, ...
    -.5113297043238586,-.4124885752868345, ...
    0.6305510675913090E-01,0.5607334603928896E-01, ...
    -.1191284527989022,-.2936373325714834, ...
    -.3714221255853142E-01,0.3307795451305264, ...
    0.8626870981050186E-01,-.1861828895445977, ...
    0.9991417973422896E-01,0.4408837263795412, ...
    -.5337635778128931,0.9287985143315733E-01, ...
    -.1890175235323525,-.3398740442993634, ...
    0.5288915678318241,-.5498302077599997, ...
    0.1091929391010154D+01,-.5420991832506766, ...
    0.1088587293550235,0.1192738297139006, ...
    -.2281325590696736,0.5469934639217403, ...
    -.2843710521572813,-.2626224117648735, ...
    -.2160151309343958,0.9313869964408443E-01, ...
    0.1228764312899015,0.6678287012945778, ...
    -.3343874393606580,-.3334412619346900, ...
    -.2195399888316988,-.4904841366906035E-01, ...
    0.2685884025019004,-.1097454506740659, ...
    0.2208567039838767,-.1111112533091888, ...
    0.1023012688991847D+01,-.5531958654682623, ...
    -.4698168235239601,-.3487105684781340, ...
    -.2088144402600705,0.5575250087387288, ...
    0.4586604304883936,-.2753203539748657E-01, ...
    -.4311283950878784,0.1424849530503414D-12, ...
    0.4163207520226179D-12,0.2564407634679153D-12, ...
    -.9489253825677672D-12,0.5725707601904812D-12, ...
    -.4307858177802721D-12 ];
  zs = [ ...
    -.3002408419822953,-.3002408419833086, ...
    -.3002408419833821,-.2367243537500485, ...
    -.2367243537456669,-.2367243537470976, ...
    -.1124874139319764E-01,-.1124874139141120E-01, ...
    -.1124874139183386E-01,-.2091200491939335, ...
    -.2091200491951212,-.2091200491943568, ...
    -.3871070169557922,-.3871070169557220, ...
    -.3871070169561885,0.1576758205577684, ...
    0.1576758205557184,0.1576758205553296, ...
    -.3804994466636671,-.3804994466631279, ...
    -.3804994466634047,-.2566785126781401, ...
    -.2566785126792934,-.2566785126782982, ...
    -.7550445623527601E-02,-.7550445625559176E-02, ...
    -.7550445625114355E-02,0.3966685271521035, ...
    0.3966685271469443,0.3966685271536675, ...
    0.5436295368746583,0.5436295368772041, ...
    0.5436295368824269,0.2108533972691848, ...
    0.2108533972755834,0.2108533972664533, ...
    -.3846227632566736,-.3846227632563715, ...
    -.3846227632570768,0.4320199156927147E-01, ...
    0.4320199156864359E-01,0.4320199157222126E-01, ...
    -.3942552261036596,-.3942552261036111, ...
    -.3942552261035123,-.2900823721656310, ...
    -.2900823721654074,-.2900823721650085, ...
    -.4001954700908103,-.4001954700902223, ...
    -.4001954700893645,-.2514599966999538, ...
    -.2514599967001752,-.2514599967005651, ...
    -.2052993465249218,-.2052993465263826, ...
    -.2052993465223245,0.2946594740406009, ...
    0.2946594740416467,0.2946594740425612, ...
    -.5795226862357377E-01,-.5795226862121653E-01, ...
    -.5795226862189089E-01,-.2212157144490026, ...
    -.2212157144492802,-.2212157144486162, ...
    0.1031915041617615D+01,0.1031915041621368D+01, ...
    0.1031915041615854D+01,-.2843664701680810, ...
    -.2843664701691355,-.2843664701684534, ...
    -.3916632709551901,-.3916632709550742, ...
    -.3916632709550005,-.5853404503565347E-01, ...
    -.5853404503336719E-01,-.5853404503471410E-01, ...
    0.4349032593314631,0.4349032593318472, ...
    0.4349032593321483,-.7166469320204438E-01, ...
    -.7166469320319802E-01,-.7166469320166638E-01, ...
    -.3651020078507813,-.3651020078509204, ...
    -.3651020078510956,0.6666741608359100, ...
    0.6666741608427517,0.6666741608415513, ...
    -.2850607980246553,-.2850607980246767, ...
    -.2850607980239678,-.3767139049041499, ...
    -.3767139049041446,-.3767139049041464, ...
    -.3847323113293710,-.3847323113294659, ...
    -.3847323113294736,-.1430711791014896E-01, ...
    -.1430711790970269E-01,-.1430711791041984E-01, ...
    0.2226893434846138,0.2226893434844011, ...
    0.2226893434848597,0.1861368718435910, ...
    0.1861368718416253,0.1861368718431125, ...
    -.1072795622749953,-.1072795622745489, ...
    -.1072795622748554,-.6485516948547954E-01, ...
    -.6485516948561629E-01,-.6485516948569679E-01, ...
    0.5725622693459446,0.5725622693472699, ...
    0.5725622693460108,-.2791087112264201, ...
    -.2791087112266160,-.2791087112254542, ...
    -.3714154371111505,-.3714154371112492, ...
    -.3714154371110855,-.3161738417128371, ...
    -.3161738417122791,-.3161738417134797, ...
    0.8373277100424955,0.8373277100425663, ...
    0.8373277100420310,0.2498873918545072, ...
    0.2498873918552929,0.2498873918556660, ...
    0.5108904140436563,0.5108904140435110, ...
    0.5108904140435037,-.3706147756740159, ...
    -.3706147756740524,-.3706147756740479, ...
    0.2433004560275582,0.2433004560300772, ...
    0.2433004560291551,-.3538702545014873, ...
    -.3538702545021283,-.3538702545024522, ...
    -.3582651744000784,-.3582651743999515, ...
    -.3582651744000865,0.8755062971445479E-01, ...
    0.8755062971455986E-01,0.8755062971379197E-01, ...
    -.1397307998126365,-.1397307998123260, ...
    -.1397307998124737,-.2183761124774179, ...
    -.2183761124772129,-.2183761124776710, ...
    0.5763507816362148,0.5763507816368744, ...
    0.5763507816365103,0.8062208425433149, ...
    0.8062208425454057,0.8062208425485021, ...
    -.4049658784349283,-.4049658784337947, ...
    -.4049658784361176,0.2225706813796632, ...
    0.2225706813790471,0.2225706813801265, ...
    -.4096725239466332E-02,-.4096725240921904E-02, ...
    -.4096725238250503E-02,-.2592447810085974, ...
    0.1191149121741652D+01,0.4120653127511454, ...
    0.8435262601344188,-.4003639673386698, ...
    0.3321002545060888E-01 ];
  ws = [ ...
    0.4194830168311239E-02,0.4194830168326290E-02, ...
    0.4194830168354955E-02,0.6505251369757091E-02, ...
    0.6505251369749837E-02,0.6505251369724089E-02, ...
    0.1511857423469778E-02,0.1511857423531536E-02, ...
    0.1511857423435278E-02,0.3576693638591392E-02, ...
    0.3576693638610991E-02,0.3576693638618915E-02, ...
    0.3373656058688358E-02,0.3373656058691433E-02, ...
    0.3373656058671795E-02,0.1076784154760114E-01, ...
    0.1076784154761919E-01,0.1076784154751974E-01, ...
    0.3758938857122322E-02,0.3758938857165091E-02, ...
    0.3758938857143189E-02,0.8302444588410703E-02, ...
    0.8302444588357655E-02,0.8302444588429193E-02, ...
    0.2942777031213149E-02,0.2942777031243674E-02, ...
    0.2942777031245480E-02,0.8843589566618218E-02, ...
    0.8843589566569863E-02,0.8843589566624911E-02, ...
    0.9759028519288406E-03,0.9759028519397565E-03, ...
    0.9759028519575427E-03,0.2004802238525724E-02, ...
    0.2004802238518510E-02,0.2004802238530063E-02, ...
    0.9695765259457370E-03,0.9695765259577475E-03, ...
    0.9695765259399248E-03,0.1954897938090337E-02, ...
    0.1954897938078232E-02,0.1954897938036924E-02, ...
    0.3691846518220940E-02,0.3691846518218663E-02, ...
    0.3691846518232707E-02,0.7970801887754822E-02, ...
    0.7970801887704541E-02,0.7970801887626933E-02, ...
    0.1979189926163023E-02,0.1979189926220139E-02, ...
    0.1979189926268928E-02,0.3698742482337427E-02, ...
    0.3698742482364018E-02,0.3698742482353030E-02, ...
    0.1687317723859350E-02,0.1687317723863163E-02, ...
    0.1687317723875827E-02,0.3835254087109209E-02, ...
    0.3835254087144783E-02,0.3835254087114301E-02, ...
    0.1016260451104831E-01,0.1016260451098046E-01, ...
    0.1016260451102241E-01,0.5267012161743862E-02, ...
    0.5267012161757533E-02,0.5267012161774349E-02, ...
    0.1528430187195588E-02,0.1528430187157122E-02, ...
    0.1528430187208298E-02,0.2982437800867588E-02, ...
    0.2982437800865273E-02,0.2982437800863566E-02, ...
    0.1466557323209961E-02,0.1466557323217223E-02, ...
    0.1466557323219012E-02,0.1461057795662250E-01, ...
    0.1461057795662684E-01,0.1461057795667047E-01, ...
    0.5561076940885510E-02,0.5561076940819906E-02, ...
    0.5561076940859880E-02,0.9751977499183117E-02, ...
    0.9751977499261835E-02,0.9751977499259098E-02, ...
    0.5302530732607095E-02,0.5302530732562353E-02, ...
    0.5302530732501225E-02,0.7136244952723934E-02, ...
    0.7136244952687442E-02,0.7136244952687213E-02, ...
    0.3962851386077182E-02,0.3962851386075291E-02, ...
    0.3962851386117417E-02,0.3518864309482585E-02, ...
    0.3518864309488224E-02,0.3518864309487660E-02, ...
    0.1910503466789297E-02,0.1910503466785413E-02, ...
    0.1910503466785542E-02,0.1114372702758599E-01, ...
    0.1114372702763622E-01,0.1114372702759230E-01, ...
    0.9339073844350225E-02,0.9339073844312899E-02, ...
    0.9339073844325385E-02,0.1427519172629088E-01, ...
    0.1427519172633135E-01,0.1427519172637184E-01, ...
    0.4705321020321325E-02,0.4705321020382762E-02, ...
    0.4705321020369120E-02,0.4787930353379107E-02, ...
    0.4787930353341169E-02,0.4787930353337981E-02, ...
    0.3363836009342347E-02,0.3363836009325845E-02, ...
    0.3363836009335837E-02,0.1284569887457350E-01, ...
    0.1284569887456974E-01,0.1284569887463706E-01, ...
    0.2752818417406538E-02,0.2752818417393949E-02, ...
    0.2752818417406429E-02,0.2544892612698709E-02, ...
    0.2544892612676544E-02,0.2544892612707782E-02, ...
    0.3052619386398206E-02,0.3052619386307692E-02, ...
    0.3052619386349196E-02,0.8865680919273325E-02, ...
    0.8865680919243184E-02,0.8865680919267345E-02, ...
    0.9030103498125034E-02,0.9030103498122236E-02, ...
    0.9030103498131978E-02,0.2991177381103681E-02, ...
    0.2991177381087045E-02,0.2991177381095963E-02, ...
    0.2211164766946887E-02,0.2211164766969601E-02, ...
    0.2211164766996503E-02,0.2973562062279324E-03, ...
    0.2973562062207861E-03,0.2973562062075669E-03, ...
    0.9172628789611696E-02,0.9172628789611484E-02, ...
    0.9172628789627685E-02,0.9783236108387362E-02, ...
    0.9783236108363432E-02,0.9783236108405431E-02, ...
    0.1738125981964304E-01,0.1738125981965133E-01, ...
    0.1738125981965202E-01,0.9766706161581359E-02, ...
    0.9766706161581049E-02,0.9766706161590663E-02, ...
    0.3005216389199320E-02,0.3005216389178637E-02, ...
    0.3005216389160241E-02,0.2785222700150757E-02, ...
    0.2785222700144989E-02,0.2785222700178524E-02, ...
    0.3753359578155891E-03,0.3753359578293081E-03, ...
    0.3753359577958143E-03,0.2191182863239439E-02, ...
    0.2191182863316704E-02,0.2191182863281961E-02, ...
    0.2531026444894308E-02,0.2531026444936393E-02, ...
    0.2531026444945725E-02,0.1445748928029682E-01, ...
    0.1287820052356487E-03,0.1574864463007665E-01, ...
    0.4621613088145150E-02,0.2792502892512972E-02, ...
    0.1851564470805342E-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
