function [ x, w ] = rule14 ( n )

%*****************************************************************************80
%
%% rule14() returns the rule of degree 14.
%
%  Licensing:
%
%    This code is distributed under the MIT 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.
%
%  Input:
%
%    integer N, the number of nodes.
%
%  Output:
%
%    real X(3,N), the coordinates of the nodes.
%
%    real W(N), the weights.
%
  xs = [ ...
    -0.5752422835841802,0.4314967658691802, ...
    0.1437455177139820,-0.3303076984155172, ...
    0.4866309056595519,-0.1563232072429510, ...
    -0.5770168798465761E-02,-0.7016819527781105, ...
    0.7074521215770434,-0.3032416710412216, ...
    -0.2339888323701999,0.5372305034104569, ...
    0.2995840525991514,-0.4325354814520043, ...
    0.1329514288534004,0.2313978508942549, ...
    -0.4060579401191659E-01,-0.1907920568806182, ...
    0.1198459969693036,-0.5485013403177168, ...
    0.4286553433493205,-0.4223067018453286, ...
    0.2051376117542425,0.2171690900904567, ...
    -0.1995552059487330,-0.3336302067365579, ...
    0.5331854126840413,-0.3362367775957516E-02, ...
    -0.2082502914064486,0.2116126591830406, ...
    0.3901789196843061,-0.4123770748876975E-03, ...
    -0.3897665426036371,0.5440475521812093E-02, ...
    -0.5671976659757272,0.5617571904593656, ...
    0.5109903009675820E-01,-0.8812309166767075, ...
    0.8301318865798517,-0.3334033396451877, ...
    -0.4849473999181729E-01,0.3818980796337723, ...
    0.2967209217147687,0.6320475373066934E-02, ...
    -0.3030413970906470,0.3947081540530285, ...
    -0.2978075731654519,-0.9690058088341083E-01, ...
    0.4602277425410929,-0.2588695285519879, ...
    -0.2013582139898412,0.4320204013442107, ...
    0.2158666376867163,-0.6478870390304328, ...
    0.3243502588043465E-02,-0.8153377567221353, ...
    0.8120942541315551,-0.2929639748058975, ...
    0.3937181324850053E-01,0.2535921615554882, ...
    -0.2911712364207900,0.4448737339859005, ...
    -0.1537024975672874,0.3770577628402459, ...
    -0.4566844608555435,0.7962669801609278E-01, ...
    -0.7343568438702067E-03,-0.6012198115212343E-01, ...
    0.6085633799849959E-01,-0.7860612444751536, ...
    0.7072341550237046,0.7882708945288715E-01, ...
    -0.1798079430257987,-0.5716591672723068, ...
    0.7514671102985679,0.2349121749284232E-01, ...
    -0.2977965988756665,0.2743053813811669, ...
    -0.3508185900315901,0.3561089208016359, ...
    -0.5290330768361618E-02,-0.4799997070573949, ...
    0.3284477153105494,0.1515519917450605, ...
    0.5503749362395663,-0.1236979845612246, ...
    -0.4266769516797990,-0.1160913996018244, ...
    0.1218716230766462,-0.5780223478460763E-02, ...
    -0.1795966192456130,-0.5071498846594161, ...
    0.6867465039037227,-0.4731311596169461E-02, ...
    -0.6889415863849245,0.6936728979813912, ...
    0.1838019755826437,-0.7414338401434005, ...
    0.5576318645605018,-0.3157482778904093, ...
    0.1186260398816200E-01,0.3038856739015107, ...
    -0.3760156844932397,0.2533165859904101, ...
    0.1226990985037814,0.3132847887437243E-01, ...
    0.1567813343830147,-0.1881098132555542, ...
    -0.5940398288585815,0.6767061397330466, ...
    -0.8266631087504343E-01,0.5799063749491890, ...
    0.7755651500224905E-01,-0.6574628899522570, ...
    0.1959288531923632,0.8941019681549953E-01, ...
    -0.2853390500081148,0.2938476934905306, ...
    0.2019773488401272E-02,-0.2958674669799366, ...
    0.3655020525321305,-0.5615458414677339, ...
    0.1960437889355228,-0.5706595245720943E-01, ...
    -0.7715171223939032,0.8285830748522059, ...
    0.1011528057210596,-0.1051837271533038, ...
    0.4030921431232027E-02,-0.2124197258439737, ...
    0.3605072524272380,-0.1480875265845512, ...
    -0.1651782199629099,0.7878215733569789E-02, ...
    0.1573000042284481,-0.3617927525610758, ...
    -0.2009201308789826,0.5627128834404685, ...
    -0.5015820600281335,0.4144850071548899, ...
    0.8709705287395679E-01,0.9434068372117834, ...
    0.4463509082121593E-02,-0.9478703462960307, ...
    0.2005751720829750,-0.1945620110873523, ...
    -0.6013160997523850E-02,-0.1255658338458569E-01, ...
    -0.4674319437690188,0.4799885271519170, ...
    -0.1716908737168969E-01,0.1956591346765856, ...
    -0.1784900473056204,-0.5462757915789873E-03, ...
    -0.5780834828017836,0.5786297585932533, ...
    -0.1833877013210589,0.2818210581349795, ...
    -0.9843335681437262E-01,0.1916617895075464, ...
    -0.7885465203364792E-03,-0.1908732429835174, ...
    -0.4813891231174998E-01,-0.8618855209039119, ...
    0.9100244332179739,-0.4424462871708599, ...
    0.5232153544540827,-0.8076906728405848E-01, ...
    0.2330164669103972,-0.5137198179676699, ...
    0.2807033510564895,0.3967080654003286E-12, ...
    0.1722425458471176E-11,0.3502410373140708E-12, ...
    -0.2947942461866533E-11,-0.1032091026644403E-11, ...
    -0.4359393565820349E-12 ];
  ys = [ ...
    -0.1661332605832194,-0.4151078006247312, ...
    0.5812410612053462,-0.3712097301616572, ...
    -0.1004499928153783,0.4716597229753685, ...
    0.8135639371543177,-0.4117790813394923, ...
    -0.4017848558132318,0.4452636911188574, ...
    -0.4852468361674822,0.3998314505168596E-01, ...
    0.3264840198869604,0.9620539017564665E-01, ...
    -0.4226894100630985,-0.8671007929617915E-01, ...
    0.2437514569045547,-0.1570413776087273, ...
    0.5641616743542007,-0.1782911592597502, ...
    -0.3858705150939825,0.6946377256844247E-02, ...
    -0.3692015206135402,0.3622551433574067, ...
    0.5004562312099742,-0.4230479934143149, ...
    -0.7740823779440852E-01,0.2424079875448238, ...
    -0.1241158896833233,-0.1182920978621629, ...
    -0.2247937322813834,0.4503017226062891, ...
    -0.2255079903239726,0.6518023902669200, ...
    -0.3211896051207328,-0.3306127851443094, ...
    0.9880557751410730,-0.4497748293987996, ...
    -0.5382809457428603,0.2484874102685690, ...
    -0.4129794669742624,0.1644920567082871, ...
    -0.1786101603431211,0.3462729362116060, ...
    -0.1676627758691386,0.1159937060740129, ...
    0.2838304354535469,-0.3998241415280471, ...
    0.3320417294495800E-01,0.3819668300942372, ...
    -0.4151710030395980,-0.4986884177668357, ...
    0.6234848514007479,-0.1247964336323278, ...
    0.9395983095546842,-0.4669901991392865, ...
    -0.4726081104148907,0.1236801757609007, ...
    -0.3155543324553964,0.1918741566946638, ...
    -0.3455881484181401,-0.7936761338079117E-01, ...
    0.4249557617992578,0.3096393919455638, ...
    0.1717219053442890,-0.4813612972863747, ...
    0.6984686512807867E-01,-0.3555940424550629E-01, ...
    -0.3428746088226146E-01,-0.3628109884665136, ...
    -0.4993435124130320,0.8621545008801837, ...
    0.7639073125277335,-0.5376719027263360, ...
    -0.2262354098013041,0.3303032323049931, ...
    -0.1448076250378262,-0.1854956072669932, ...
    -0.2086539551781068,-0.1994908334986071, ...
    0.4081447886767858,-0.1021307936198597, ...
    -0.3646265433107137,0.4667573369306311, ...
    -0.1749249882226239,0.5641011705032603, ...
    -0.3891761822782046,-0.7369982797233314E-01, ...
    -0.6368818722810367E-01,0.1373880152000548, ...
    0.6892964013212863,-0.5001834353611165, ...
    -0.1891129659598641,0.7982528447344757, ...
    -0.4032238584029919,-0.3950289863308680, ...
    0.7500159343054114,-0.2158307870331475, ...
    -0.5341851472730395,0.1685995980230182, ...
    -0.3577458288655779,0.1891462308433379, ...
    -0.7541204156110640E-01,-0.2879331142125014, ...
    0.3633451557721906,-0.1991229969303482, ...
    0.1266927570309605,0.7243023989959384E-01, ...
    -0.4384238887740483,-0.2952416382641486, ...
    0.7336655270377042,-0.4243636513101600, ...
    0.7143954781786902,-0.2900318268675506, ...
    -0.2163615785319861,0.2778601534641544, ...
    -0.6149857493356037E-01,-0.1719852784726787, ...
    0.3404722066425572,-0.1684869281697858, ...
    0.4373945770482864,0.9783677410376379E-01, ...
    -0.5352313511523523,0.9238182796099402, ...
    -0.5113297043238586,-0.4124885752868345, ...
    0.6305510675913090E-01,0.5607334603928896E-01, ...
    -0.1191284527989022,-0.2936373325714834, ...
    -0.3714221255853142E-01,0.3307795451305264, ...
    0.8626870981050186E-01,-0.1861828895445977, ...
    0.9991417973422896E-01,0.4408837263795412, ...
    -0.5337635778128931,0.9287985143315733E-01, ...
    -0.1890175235323525,-0.3398740442993634, ...
    0.5288915678318241,-0.5498302077599997, ...
    0.1091929391010154E+01,-0.5420991832506766, ...
    0.1088587293550235,0.1192738297139006, ...
    -0.2281325590696736,0.5469934639217403, ...
    -0.2843710521572813,-0.2626224117648735, ...
    -0.2160151309343958,0.9313869964408443E-01, ...
    0.1228764312899015,0.6678287012945778, ...
    -0.3343874393606580,-0.3334412619346900, ...
    -0.2195399888316988,-0.4904841366906035E-01, ...
    0.2685884025019004,-0.1097454506740659, ...
    0.2208567039838767,-0.1111112533091888, ...
    0.1023012688991847E+01,-0.5531958654682623, ...
    -0.4698168235239601,-0.3487105684781340, ...
    -0.2088144402600705,0.5575250087387288, ...
    0.4586604304883936,-0.2753203539748657E-01, ...
    -0.4311283950878784,0.1424849530503414E-12, ...
    0.4163207520226179E-12,0.2564407634679153E-12, ...
    -0.9489253825677672E-12,0.5725707601904812E-12, ...
    -0.4307858177802721E-12 ];
  zs = [ ...
    -0.3002408419822953,-0.3002408419833086, ...
    -0.3002408419833821,-0.2367243537500485, ...
    -0.2367243537456669,-0.2367243537470976, ...
    -0.1124874139319764E-01,-0.1124874139141120E-01, ...
    -0.1124874139183386E-01,-0.2091200491939335, ...
    -0.2091200491951212,-0.2091200491943568, ...
    -0.3871070169557922,-0.3871070169557220, ...
    -0.3871070169561885,0.1576758205577684, ...
    0.1576758205557184,0.1576758205553296, ...
    -0.3804994466636671,-0.3804994466631279, ...
    -0.3804994466634047,-0.2566785126781401, ...
    -0.2566785126792934,-0.2566785126782982, ...
    -0.7550445623527601E-02,-0.7550445625559176E-02, ...
    -0.7550445625114355E-02,0.3966685271521035, ...
    0.3966685271469443,0.3966685271536675, ...
    0.5436295368746583,0.5436295368772041, ...
    0.5436295368824269,0.2108533972691848, ...
    0.2108533972755834,0.2108533972664533, ...
    -0.3846227632566736,-0.3846227632563715, ...
    -0.3846227632570768,0.4320199156927147E-01, ...
    0.4320199156864359E-01,0.4320199157222126E-01, ...
    -0.3942552261036596,-0.3942552261036111, ...
    -0.3942552261035123,-0.2900823721656310, ...
    -0.2900823721654074,-0.2900823721650085, ...
    -0.4001954700908103,-0.4001954700902223, ...
    -0.4001954700893645,-0.2514599966999538, ...
    -0.2514599967001752,-0.2514599967005651, ...
    -0.2052993465249218,-0.2052993465263826, ...
    -0.2052993465223245,0.2946594740406009, ...
    0.2946594740416467,0.2946594740425612, ...
    -0.5795226862357377E-01,-0.5795226862121653E-01, ...
    -0.5795226862189089E-01,-0.2212157144490026, ...
    -0.2212157144492802,-0.2212157144486162, ...
    0.1031915041617615E+01,0.1031915041621368E+01, ...
    0.1031915041615854E+01,-0.2843664701680810, ...
    -0.2843664701691355,-0.2843664701684534, ...
    -0.3916632709551901,-0.3916632709550742, ...
    -0.3916632709550005,-0.5853404503565347E-01, ...
    -0.5853404503336719E-01,-0.5853404503471410E-01, ...
    0.4349032593314631,0.4349032593318472, ...
    0.4349032593321483,-0.7166469320204438E-01, ...
    -0.7166469320319802E-01,-0.7166469320166638E-01, ...
    -0.3651020078507813,-0.3651020078509204, ...
    -0.3651020078510956,0.6666741608359100, ...
    0.6666741608427517,0.6666741608415513, ...
    -0.2850607980246553,-0.2850607980246767, ...
    -0.2850607980239678,-0.3767139049041499, ...
    -0.3767139049041446,-0.3767139049041464, ...
    -0.3847323113293710,-0.3847323113294659, ...
    -0.3847323113294736,-0.1430711791014896E-01, ...
    -0.1430711790970269E-01,-0.1430711791041984E-01, ...
    0.2226893434846138,0.2226893434844011, ...
    0.2226893434848597,0.1861368718435910, ...
    0.1861368718416253,0.1861368718431125, ...
    -0.1072795622749953,-0.1072795622745489, ...
    -0.1072795622748554,-0.6485516948547954E-01, ...
    -0.6485516948561629E-01,-0.6485516948569679E-01, ...
    0.5725622693459446,0.5725622693472699, ...
    0.5725622693460108,-0.2791087112264201, ...
    -0.2791087112266160,-0.2791087112254542, ...
    -0.3714154371111505,-0.3714154371112492, ...
    -0.3714154371110855,-0.3161738417128371, ...
    -0.3161738417122791,-0.3161738417134797, ...
    0.8373277100424955,0.8373277100425663, ...
    0.8373277100420310,0.2498873918545072, ...
    0.2498873918552929,0.2498873918556660, ...
    0.5108904140436563,0.5108904140435110, ...
    0.5108904140435037,-0.3706147756740159, ...
    -0.3706147756740524,-0.3706147756740479, ...
    0.2433004560275582,0.2433004560300772, ...
    0.2433004560291551,-0.3538702545014873, ...
    -0.3538702545021283,-0.3538702545024522, ...
    -0.3582651744000784,-0.3582651743999515, ...
    -0.3582651744000865,0.8755062971445479E-01, ...
    0.8755062971455986E-01,0.8755062971379197E-01, ...
    -0.1397307998126365,-0.1397307998123260, ...
    -0.1397307998124737,-0.2183761124774179, ...
    -0.2183761124772129,-0.2183761124776710, ...
    0.5763507816362148,0.5763507816368744, ...
    0.5763507816365103,0.8062208425433149, ...
    0.8062208425454057,0.8062208425485021, ...
    -0.4049658784349283,-0.4049658784337947, ...
    -0.4049658784361176,0.2225706813796632, ...
    0.2225706813790471,0.2225706813801265, ...
    -0.4096725239466332E-02,-0.4096725240921904E-02, ...
    -0.4096725238250503E-02,-0.2592447810085974, ...
    0.1191149121741652E+01,0.4120653127511454, ...
    0.8435262601344188,-0.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
