function [ x, w ] = legendre_set ( n )

%*****************************************************************************80
%
%% legendre_set() sets abscissas and weights for Gauss-Legendre quadrature.
%
%  Discussion:
%
%    The integral:
%
%      Integral ( -1 <= X <= 1 ) F(X) dX
%
%    Quadrature rule:
%
%      Sum ( 1 <= I <= N ) W(I) * F ( X(I) )
%
%    The quadrature rule will is exact for all polynomials through degree 2*N-1.
%
%    The abscissas are the zeroes of the Legendre polynomial P(N)(X).
%
%    Mathematica can compute the abscissas and weights of a Gauss-Legendre
%    rule of order N for the interval [A,B] with P digits of precision
%    by the commands:
%
%    Needs["NumericalDifferentialEquationAnalysis`"]
%    GaussianQuadratureWeights [ n, a, b, p ]
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 April 2010
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Milton Abramowitz, Irene Stegun,
%    Handbook of Mathematical Functions,
%    National Bureau of Standards, 1964,
%    ISBN: 0-486-61272-4,
%    LC: QA47.A34.
%
%    Vladimir Krylov,
%    Approximate Calculation of Integrals,
%    Dover, 2006,
%    ISBN: 0486445798,
%    LC: QA311.K713.
%
%    Arthur Stroud, Don Secrest,
%    Gaussian Quadrature Formulas,
%    Prentice Hall, 1966,
%    LC: QA299.4G3S7.
%
%    Stephen Wolfram,
%    The Mathematica Book,
%    Fourth Edition,
%    Cambridge University Press, 1999,
%    ISBN: 0-521-64314-7,
%    LC: QA76.95.W65.
%
%    Daniel Zwillinger, editor,
%    CRC Standard Mathematical Tables and Formulae,
%    30th Edition,
%    CRC Press, 1996,
%    ISBN: 0-8493-2479-3,
%    LC: QA47.M315.
%
%  Input:
%
%    Input, integer N, the order.
%    N must be between 1 and 33 or 63/64/65, 127/128/129, 
%    255/256/257.
%
%  Output:
%
%    real X(N), the abscissas.
%
%    real W(N), the weights.
%
  x = zeros ( n, 1 );
  w = zeros ( n, 1 );

  if ( n == 1 )

    x(1) = 0.000000000000000000000000000000;

    w(1) = 2.000000000000000000000000000000;

  elseif ( n == 2 )

    x(1) = -0.577350269189625764509148780502;
    x(2) = 0.577350269189625764509148780502;

    w(1) = 1.000000000000000000000000000000;
    w(2) = 1.000000000000000000000000000000;

  elseif ( n == 3 )

    x(1) = -0.774596669241483377035853079956;
    x(2) = 0.000000000000000000000000000000;
    x(3) = 0.774596669241483377035853079956;

    w(1) = 0.555555555555555555555555555556;
    w(2) = 0.888888888888888888888888888889;
    w(3) = 0.555555555555555555555555555556;

  elseif ( n == 4 )

    x(1) = -0.861136311594052575223946488893;
    x(2) = -0.339981043584856264802665759103;
    x(3) = 0.339981043584856264802665759103;
    x(4) = 0.861136311594052575223946488893;

    w(1) = 0.347854845137453857373063949222;
    w(2) = 0.652145154862546142626936050778;
    w(3) = 0.652145154862546142626936050778;
    w(4) = 0.347854845137453857373063949222;

  elseif ( n == 5 )

    x(1) = -0.906179845938663992797626878299;
    x(2) = -0.538469310105683091036314420700;
    x(3) = 0.000000000000000000000000000000;
    x(4) = 0.538469310105683091036314420700;
    x(5) = 0.906179845938663992797626878299;

    w(1) = 0.236926885056189087514264040720;
    w(2) = 0.478628670499366468041291514836;
    w(3) = 0.568888888888888888888888888889;
    w(4) = 0.478628670499366468041291514836;
    w(5) = 0.236926885056189087514264040720;

  elseif ( n == 6 )

    x(1) = -0.932469514203152027812301554494;
    x(2) = -0.661209386466264513661399595020;
    x(3) = -0.238619186083196908630501721681;
    x(4) = 0.238619186083196908630501721681;
    x(5) = 0.661209386466264513661399595020;
    x(6) = 0.932469514203152027812301554494;

    w(1) = 0.171324492379170345040296142173;
    w(2) = 0.360761573048138607569833513838;
    w(3) = 0.467913934572691047389870343990;
    w(4) = 0.467913934572691047389870343990;
    w(5) = 0.360761573048138607569833513838;
    w(6) = 0.171324492379170345040296142173;

  elseif ( n == 7 )

    x(1) = -0.949107912342758524526189684048;
    x(2) = -0.741531185599394439863864773281;
    x(3) = -0.405845151377397166906606412077;
    x(4) = 0.000000000000000000000000000000;
    x(5) = 0.405845151377397166906606412077;
    x(6) = 0.741531185599394439863864773281;
    x(7) = 0.949107912342758524526189684048;

    w(1) = 0.129484966168869693270611432679;
    w(2) = 0.279705391489276667901467771424;
    w(3) = 0.381830050505118944950369775489;
    w(4) = 0.417959183673469387755102040816;
    w(5) = 0.381830050505118944950369775489;
    w(6) = 0.279705391489276667901467771424;
    w(7) = 0.129484966168869693270611432679;

  elseif ( n == 8 )

    x(1) = -0.960289856497536231683560868569;
    x(2) = -0.796666477413626739591553936476;
    x(3) = -0.525532409916328985817739049189;
    x(4) = -0.183434642495649804939476142360;
    x(5) = 0.183434642495649804939476142360;
    x(6) = 0.525532409916328985817739049189;
    x(7) = 0.796666477413626739591553936476;
    x(8) = 0.960289856497536231683560868569;

    w(1) = 0.101228536290376259152531354310;
    w(2) = 0.222381034453374470544355994426;
    w(3) = 0.313706645877887287337962201987;
    w(4) = 0.362683783378361982965150449277;
    w(5) = 0.362683783378361982965150449277;
    w(6) = 0.313706645877887287337962201987;
    w(7) = 0.222381034453374470544355994426;
    w(8) = 0.101228536290376259152531354310;

  elseif ( n == 9 )

    x(1) = -0.968160239507626089835576203;
    x(2) = -0.836031107326635794299429788;
    x(3) = -0.613371432700590397308702039;
    x(4) = -0.324253423403808929038538015;
    x(5) = 0.000000000000000000000000000;
    x(6) = 0.324253423403808929038538015;
    x(7) = 0.613371432700590397308702039;
    x(8) = 0.836031107326635794299429788;
    x(9) = 0.968160239507626089835576203;

    w(1) = 0.081274388361574411971892158111;
    w(2) = 0.18064816069485740405847203124;
    w(3) = 0.26061069640293546231874286942;
    w(4) = 0.31234707704000284006863040658;
    w(5) = 0.33023935500125976316452506929;
    w(6) = 0.31234707704000284006863040658;
    w(7) = 0.26061069640293546231874286942;
    w(8) = 0.18064816069485740405847203124;
    w(9) = 0.081274388361574411971892158111;

  elseif ( n == 10 )

    x(1) = -0.973906528517171720077964012;
    x(2) = -0.865063366688984510732096688;
    x(3) = -0.679409568299024406234327365;
    x(4) = -0.433395394129247190799265943;
    x(5) = -0.148874338981631210884826001;
    x(6) = 0.148874338981631210884826001;
    x(7) = 0.433395394129247190799265943;
    x(8) = 0.679409568299024406234327365;
    x(9) = 0.865063366688984510732096688;
    x(10) = 0.973906528517171720077964012;

    w(1) = 0.066671344308688137593568809893;
    w(2) = 0.14945134915058059314577633966;
    w(3) = 0.21908636251598204399553493423;
    w(4) = 0.26926671930999635509122692157;
    w(5) = 0.29552422471475287017389299465;
    w(6) = 0.29552422471475287017389299465;
    w(7) = 0.26926671930999635509122692157;
    w(8) = 0.21908636251598204399553493423;
    w(9) = 0.14945134915058059314577633966;
    w(10) = 0.066671344308688137593568809893;

  elseif ( n == 11 )

    x(1) = -0.978228658146056992803938001;
    x(2) = -0.887062599768095299075157769;
    x(3) = -0.730152005574049324093416252;
    x(4) = -0.519096129206811815925725669;
    x(5) = -0.269543155952344972331531985;
    x(6) = 0.000000000000000000000000000;
    x(7) = 0.269543155952344972331531985;
    x(8) = 0.519096129206811815925725669;
    x(9) = 0.730152005574049324093416252;
    x(10) = 0.887062599768095299075157769;
    x(11) = 0.978228658146056992803938001;

    w(1) = 0.055668567116173666482753720443;
    w(2) = 0.12558036946490462463469429922;
    w(3) = 0.18629021092773425142609764143;
    w(4) = 0.23319376459199047991852370484;
    w(5) = 0.26280454451024666218068886989;
    w(6) = 0.27292508677790063071448352834;
    w(7) = 0.26280454451024666218068886989;
    w(8) = 0.23319376459199047991852370484;
    w(9) = 0.18629021092773425142609764143;
    w(10) = 0.12558036946490462463469429922;
    w(11) = 0.055668567116173666482753720443;

  elseif ( n == 12 )

    x(1) = -0.981560634246719250690549090;
    x(2) = -0.904117256370474856678465866;
    x(3) = -0.769902674194304687036893833;
    x(4) = -0.587317954286617447296702419;
    x(5) = -0.367831498998180193752691537;
    x(6) = -0.125233408511468915472441369;
    x(7) = 0.125233408511468915472441369;
    x(8) = 0.367831498998180193752691537;
    x(9) = 0.587317954286617447296702419;
    x(10) = 0.769902674194304687036893833;
    x(11) = 0.904117256370474856678465866;
    x(12) = 0.981560634246719250690549090;

    w(1) = 0.047175336386511827194615961485;
    w(2) = 0.10693932599531843096025471819;
    w(3) = 0.16007832854334622633465252954;
    w(4) = 0.20316742672306592174906445581;
    w(5) = 0.23349253653835480876084989892;
    w(6) = 0.24914704581340278500056243604;
    w(7) = 0.24914704581340278500056243604;
    w(8) = 0.23349253653835480876084989892;
    w(9) = 0.20316742672306592174906445581;
    w(10) = 0.16007832854334622633465252954;
    w(11) = 0.10693932599531843096025471819;
    w(12) = 0.047175336386511827194615961485;

  elseif ( n == 13 )

    x(1) = -0.984183054718588149472829449;
    x(2) = -0.917598399222977965206547837;
    x(3) = -0.801578090733309912794206490;
    x(4) = -0.642349339440340220643984607;
    x(5) = -0.448492751036446852877912852;
    x(6) = -0.230458315955134794065528121;
    x(7) = 0.000000000000000000000000000;
    x(8) = 0.230458315955134794065528121;
    x(9) = 0.448492751036446852877912852;
    x(10) = 0.642349339440340220643984607;
    x(11) = 0.80157809073330991279420649;
    x(12) = 0.91759839922297796520654784;
    x(13) = 0.98418305471858814947282945;

    w(1) = 0.040484004765315879520021592201;
    w(2) = 0.092121499837728447914421775954;
    w(3) = 0.13887351021978723846360177687;
    w(4) = 0.17814598076194573828004669200;
    w(5) = 0.20781604753688850231252321931;
    w(6) = 0.22628318026289723841209018604;
    w(7) = 0.23255155323087391019458951527;
    w(8) = 0.22628318026289723841209018604;
    w(9) = 0.20781604753688850231252321931;
    w(10) = 0.17814598076194573828004669200;
    w(11) = 0.13887351021978723846360177687;
    w(12) = 0.092121499837728447914421775954;
    w(13) = 0.040484004765315879520021592201;

  elseif ( n == 14 )

    x(1) = -0.986283808696812338841597267;
    x(2) = -0.928434883663573517336391139;
    x(3) = -0.827201315069764993189794743;
    x(4) = -0.687292904811685470148019803;
    x(5) = -0.515248636358154091965290719;
    x(6) = -0.319112368927889760435671824;
    x(7) = -0.108054948707343662066244650;
    x(8) = 0.108054948707343662066244650;
    x(9) = 0.31911236892788976043567182;
    x(10) = 0.51524863635815409196529072;
    x(11) = 0.68729290481168547014801980;
    x(12) = 0.82720131506976499318979474;
    x(13) = 0.92843488366357351733639114;
    x(14) = 0.98628380869681233884159727;

    w(1) = 0.035119460331751863031832876138;
    w(2) = 0.08015808715976020980563327706;
    w(3) = 0.12151857068790318468941480907;
    w(4) = 0.15720316715819353456960193862;
    w(5) = 0.18553839747793781374171659013;
    w(6) = 0.20519846372129560396592406566;
    w(7) = 0.21526385346315779019587644332;
    w(8) = 0.21526385346315779019587644332;
    w(9) = 0.20519846372129560396592406566;
    w(10) = 0.18553839747793781374171659013;
    w(11) = 0.15720316715819353456960193862;
    w(12) = 0.12151857068790318468941480907;
    w(13) = 0.08015808715976020980563327706;
    w(14) = 0.035119460331751863031832876138;

  elseif ( n == 15 )

    x(1) = -0.987992518020485428489565719;
    x(2) = -0.937273392400705904307758948;
    x(3) = -0.848206583410427216200648321;
    x(4) = -0.724417731360170047416186055;
    x(5) = -0.570972172608538847537226737;
    x(6) = -0.394151347077563369897207371;
    x(7) = -0.201194093997434522300628303;
    x(8) = 0.00000000000000000000000000;
    x(9) = 0.20119409399743452230062830;
    x(10) = 0.39415134707756336989720737;
    x(11) = 0.57097217260853884753722674;
    x(12) = 0.72441773136017004741618605;
    x(13) = 0.84820658341042721620064832;
    x(14) = 0.93727339240070590430775895;
    x(15) = 0.98799251802048542848956572;

    w(1) = 0.030753241996117268354628393577;
    w(2) = 0.070366047488108124709267416451;
    w(3) = 0.107159220467171935011869546686;
    w(4) = 0.13957067792615431444780479451;
    w(5) = 0.16626920581699393355320086048;
    w(6) = 0.18616100001556221102680056187;
    w(7) = 0.19843148532711157645611832644;
    w(8) = 0.20257824192556127288062019997;
    w(9) = 0.19843148532711157645611832644;
    w(10) = 0.18616100001556221102680056187;
    w(11) = 0.16626920581699393355320086048;
    w(12) = 0.13957067792615431444780479451;
    w(13) = 0.107159220467171935011869546686;
    w(14) = 0.070366047488108124709267416451;
    w(15) = 0.030753241996117268354628393577;

  elseif ( n == 16 )

    x(1) = -0.989400934991649932596154173;
    x(2) = -0.944575023073232576077988416;
    x(3) = -0.865631202387831743880467898;
    x(4) = -0.755404408355003033895101195;
    x(5) = -0.617876244402643748446671764;
    x(6) = -0.458016777657227386342419443;
    x(7) = -0.281603550779258913230460501;
    x(8) = -0.09501250983763744018531934;
    x(9) = 0.09501250983763744018531934;
    x(10) = 0.28160355077925891323046050;
    x(11) = 0.45801677765722738634241944;
    x(12) = 0.61787624440264374844667176;
    x(13) = 0.75540440835500303389510119;
    x(14) = 0.86563120238783174388046790;
    x(15) = 0.94457502307323257607798842;
    x(16) = 0.98940093499164993259615417;

    w(1) = 0.027152459411754094851780572456;
    w(2) = 0.062253523938647892862843836994;
    w(3) = 0.09515851168249278480992510760;
    w(4) = 0.12462897125553387205247628219;
    w(5) = 0.14959598881657673208150173055;
    w(6) = 0.16915651939500253818931207903;
    w(7) = 0.18260341504492358886676366797;
    w(8) = 0.18945061045506849628539672321;
    w(9) = 0.18945061045506849628539672321;
    w(10) = 0.18260341504492358886676366797;
    w(11) = 0.16915651939500253818931207903;
    w(12) = 0.14959598881657673208150173055;
    w(13) = 0.12462897125553387205247628219;
    w(14) = 0.09515851168249278480992510760;
    w(15) = 0.062253523938647892862843836994;
    w(16) = 0.027152459411754094851780572456;

  elseif ( n == 17 )

    x(1) = -0.990575475314417335675434020;
    x(2) = -0.950675521768767761222716958;
    x(3) = -0.880239153726985902122955694;
    x(4) = -0.781514003896801406925230056;
    x(5) = -0.657671159216690765850302217;
    x(6) = -0.512690537086476967886246569;
    x(7) = -0.35123176345387631529718552;
    x(8) = -0.17848418149584785585067749;
    x(9) = 0.00000000000000000000000000;
    x(10) = 0.17848418149584785585067749;
    x(11) = 0.35123176345387631529718552;
    x(12) = 0.51269053708647696788624657;
    x(13) = 0.65767115921669076585030222;
    x(14) = 0.78151400389680140692523006;
    x(15) = 0.88023915372698590212295569;
    x(16) = 0.95067552176876776122271696;
    x(17) = 0.99057547531441733567543402;

    w(1) = 0.024148302868547931960110026288;
    w(2) = 0.055459529373987201129440165359;
    w(3) = 0.085036148317179180883535370191;
    w(4) = 0.111883847193403971094788385626;
    w(5) = 0.13513636846852547328631998170;
    w(6) = 0.15404576107681028808143159480;
    w(7) = 0.16800410215645004450997066379;
    w(8) = 0.17656270536699264632527099011;
    w(9) = 0.17944647035620652545826564426;
    w(10) = 0.17656270536699264632527099011;
    w(11) = 0.16800410215645004450997066379;
    w(12) = 0.15404576107681028808143159480;
    w(13) = 0.13513636846852547328631998170;
    w(14) = 0.111883847193403971094788385626;
    w(15) = 0.085036148317179180883535370191;
    w(16) = 0.055459529373987201129440165359;
    w(17) = 0.024148302868547931960110026288;

  elseif ( n == 18 )

    x(1) = -0.991565168420930946730016005;
    x(2) = -0.955823949571397755181195893;
    x(3) = -0.892602466497555739206060591;
    x(4) = -0.803704958972523115682417455;
    x(5) = -0.691687043060353207874891081;
    x(6) = -0.55977083107394753460787155;
    x(7) = -0.41175116146284264603593179;
    x(8) = -0.25188622569150550958897285;
    x(9) = -0.08477501304173530124226185;
    x(10) = 0.08477501304173530124226185;
    x(11) = 0.25188622569150550958897285;
    x(12) = 0.41175116146284264603593179;
    x(13) = 0.55977083107394753460787155;
    x(14) = 0.69168704306035320787489108;
    x(15) = 0.80370495897252311568241746;
    x(16) = 0.89260246649755573920606059;
    x(17) = 0.95582394957139775518119589;
    x(18) = 0.99156516842093094673001600;

    w(1) = 0.021616013526483310313342710266;
    w(2) = 0.049714548894969796453334946203;
    w(3) = 0.07642573025488905652912967762;
    w(4) = 0.10094204410628716556281398492;
    w(5) = 0.12255520671147846018451912680;
    w(6) = 0.14064291467065065120473130375;
    w(7) = 0.15468467512626524492541800384;
    w(8) = 0.16427648374583272298605377647;
    w(9) = 0.16914238296314359184065647013;
    w(10) = 0.16914238296314359184065647013;
    w(11) = 0.16427648374583272298605377647;
    w(12) = 0.15468467512626524492541800384;
    w(13) = 0.14064291467065065120473130375;
    w(14) = 0.12255520671147846018451912680;
    w(15) = 0.10094204410628716556281398492;
    w(16) = 0.07642573025488905652912967762;
    w(17) = 0.049714548894969796453334946203;
    w(18) = 0.021616013526483310313342710266;

  elseif ( n == 19 )

    x(1) = -0.992406843843584403189017670;
    x(2) = -0.960208152134830030852778841;
    x(3) = -0.903155903614817901642660929;
    x(4) = -0.822714656537142824978922487;
    x(5) = -0.72096617733522937861709586;
    x(6) = -0.60054530466168102346963816;
    x(7) = -0.46457074137596094571726715;
    x(8) = -0.31656409996362983199011733;
    x(9) = -0.16035864564022537586809612;
    x(10) = 0.00000000000000000000000000;
    x(11) = 0.16035864564022537586809612;
    x(12) = 0.31656409996362983199011733;
    x(13) = 0.46457074137596094571726715;
    x(14) = 0.60054530466168102346963816;
    x(15) = 0.72096617733522937861709586;
    x(16) = 0.82271465653714282497892249;
    x(17) = 0.90315590361481790164266093;
    x(18) = 0.96020815213483003085277884;
    x(19) = 0.99240684384358440318901767;

    w(1) = 0.019461788229726477036312041464;
    w(2) = 0.044814226765699600332838157402;
    w(3) = 0.069044542737641226580708258006;
    w(4) = 0.091490021622449999464462094124;
    w(5) = 0.111566645547333994716023901682;
    w(6) = 0.12875396253933622767551578486;
    w(7) = 0.14260670217360661177574610944;
    w(8) = 0.15276604206585966677885540090;
    w(9) = 0.15896884339395434764995643946;
    w(10) = 0.16105444984878369597916362532;
    w(11) = 0.15896884339395434764995643946;
    w(12) = 0.15276604206585966677885540090;
    w(13) = 0.14260670217360661177574610944;
    w(14) = 0.12875396253933622767551578486;
    w(15) = 0.111566645547333994716023901682;
    w(16) = 0.091490021622449999464462094124;
    w(17) = 0.069044542737641226580708258006;
    w(18) = 0.044814226765699600332838157402;
    w(19) = 0.019461788229726477036312041464;

  elseif ( n == 20 )

    x(1) = -0.993128599185094924786122388;
    x(2) = -0.963971927277913791267666131;
    x(3) = -0.912234428251325905867752441;
    x(4) = -0.83911697182221882339452906;
    x(5) = -0.74633190646015079261430507;
    x(6) = -0.63605368072651502545283670;
    x(7) = -0.51086700195082709800436405;
    x(8) = -0.37370608871541956067254818;
    x(9) = -0.22778585114164507808049620;
    x(10) = -0.07652652113349733375464041;
    x(11) = 0.07652652113349733375464041;
    x(12) = 0.22778585114164507808049620;
    x(13) = 0.37370608871541956067254818;
    x(14) = 0.51086700195082709800436405;
    x(15) = 0.63605368072651502545283670;
    x(16) = 0.74633190646015079261430507;
    x(17) = 0.83911697182221882339452906;
    x(18) = 0.91223442825132590586775244;
    x(19) = 0.96397192727791379126766613;
    x(20) = 0.99312859918509492478612239;

    w(1) = 0.017614007139152118311861962352;
    w(2) = 0.040601429800386941331039952275;
    w(3) = 0.062672048334109063569506535187;
    w(4) = 0.08327674157670474872475814322;
    w(5) = 0.10193011981724043503675013548;
    w(6) = 0.11819453196151841731237737771;
    w(7) = 0.13168863844917662689849449975;
    w(8) = 0.14209610931838205132929832507;
    w(9) = 0.14917298647260374678782873700;
    w(10) = 0.15275338713072585069808433195;
    w(11) = 0.15275338713072585069808433195;
    w(12) = 0.14917298647260374678782873700;
    w(13) = 0.14209610931838205132929832507;
    w(14) = 0.13168863844917662689849449975;
    w(15) = 0.11819453196151841731237737771;
    w(16) = 0.10193011981724043503675013548;
    w(17) = 0.08327674157670474872475814322;
    w(18) = 0.062672048334109063569506535187;
    w(19) = 0.040601429800386941331039952275;
    w(20) = 0.017614007139152118311861962352;

  elseif ( n == 21 )

    x( 1) =  -0.99375217062038950026024204;
    x( 2) =  -0.96722683856630629431662221;
    x( 3) =  -0.92009933415040082879018713;
    x( 4) =  -0.85336336458331728364725064;
    x( 5) =  -0.76843996347567790861587785;
    x( 6) =  -0.66713880419741231930596667;
    x( 7) =  -0.55161883588721980705901880;
    x( 8) =  -0.42434212020743878357366889;
    x( 9) =  -0.28802131680240109660079252;
    x(10) =  -0.14556185416089509093703098;
    x(11) =   0.00000000000000000000000000;
    x(12) =  +0.14556185416089509093703098;
    x(13) =  +0.28802131680240109660079252;
    x(14) =  +0.42434212020743878357366889;
    x(15) =  +0.55161883588721980705901880;
    x(16) =  +0.66713880419741231930596667;
    x(17) =  +0.76843996347567790861587785;
    x(18) =  +0.85336336458331728364725064;
    x(19) =  +0.92009933415040082879018713;
    x(20) =  +0.96722683856630629431662221;
    x(21) =  +0.99375217062038950026024204;

    w( 1) =   0.016017228257774333324224616858;
    w( 2) =   0.036953789770852493799950668299; 
    w( 3) =   0.057134425426857208283635826472;
    w( 4) =   0.076100113628379302017051653300;
    w( 5) =   0.093444423456033861553289741114;
    w( 6) =   0.108797299167148377663474578070;
    w( 7) =   0.12183141605372853419536717713;
    w( 8) =   0.13226893863333746178105257450;
    w( 9) =   0.13988739479107315472213342387;
    w(10) =   0.14452440398997005906382716655;
    w(11) =   0.14608113364969042719198514768;
    w(12) =   0.14452440398997005906382716655; 
    w(13) =   0.13988739479107315472213342387; 
    w(14) =   0.13226893863333746178105257450;
    w(15) =   0.12183141605372853419536717713;
    w(16) =   0.108797299167148377663474578070;
    w(17) =   0.093444423456033861553289741114;
    w(18) =   0.076100113628379302017051653300;
    w(19) =   0.057134425426857208283635826472;
    w(20) =   0.036953789770852493799950668299;
    w(21) =   0.016017228257774333324224616858;

  elseif ( n == 22 )

    x(1) = -0.99429458548239929207303142;
    x(2) = -0.97006049783542872712395099;
    x(3) = -0.92695677218717400052069294;
    x(4) = -0.86581257772030013653642564;
    x(5) = -0.78781680597920816200427796;
    x(6) = -0.69448726318668278005068984;
    x(7) = -0.58764040350691159295887693;
    x(8) = -0.46935583798675702640633071;
    x(9) = -0.34193582089208422515814742;
    x(10) = -0.20786042668822128547884653;
    x(11) = -0.06973927331972222121384180;
    x(12) = 0.06973927331972222121384180;
    x(13) = 0.20786042668822128547884653;
    x(14) = 0.34193582089208422515814742;
    x(15) = 0.46935583798675702640633071;
    x(16) = 0.58764040350691159295887693;
    x(17) = 0.69448726318668278005068984;
    x(18) = 0.78781680597920816200427796;
    x(19) = 0.86581257772030013653642564;
    x(20) = 0.92695677218717400052069294;
    x(21) = 0.97006049783542872712395099;
    x(22) = 0.99429458548239929207303142;
 
    w(1) = 0.014627995298272200684991098047;
    w(2) = 0.033774901584814154793302246866;
    w(3) = 0.052293335152683285940312051273;
    w(4) = 0.06979646842452048809496141893;
    w(5) = 0.08594160621706772741444368137;
    w(6) = 0.10041414444288096493207883783;
    w(7) = 0.11293229608053921839340060742;
    w(8) = 0.12325237681051242428556098615;
    w(9) = 0.13117350478706237073296499253;
    w(10) = 0.13654149834601517135257383123;
    w(11) = 0.13925187285563199337541024834;
    w(12) = 0.13925187285563199337541024834;
    w(13) = 0.13654149834601517135257383123;
    w(14) = 0.13117350478706237073296499253;
    w(15) = 0.12325237681051242428556098615;
    w(16) = 0.11293229608053921839340060742;
    w(17) = 0.10041414444288096493207883783;
    w(18) = 0.08594160621706772741444368137;
    w(19) = 0.06979646842452048809496141893;
    w(20) = 0.052293335152683285940312051273;
    w(21) = 0.033774901584814154793302246866;
    w(22) = 0.014627995298272200684991098047;

  elseif ( n == 23 )

    x(1) = -0.99476933499755212352392572;
    x(2) = -0.97254247121811523195602408;
    x(3) = -0.93297108682601610234919699;
    x(4) = -0.87675235827044166737815689;
    x(5) = -0.80488840161883989215111841;
    x(6) = -0.71866136313195019446162448;
    x(7) = -0.61960987576364615638509731;
    x(8) = -0.50950147784600754968979305;
    x(9) = -0.39030103803029083142148887;
    x(10) = -0.26413568097034493053386954;
    x(11) = -0.13325682429846611093174268;
    x(12) = 0.00000000000000000000000000;
    x(13) = 0.13325682429846611093174268;
    x(14) = 0.26413568097034493053386954;
    x(15) = 0.39030103803029083142148887;
    x(16) = 0.50950147784600754968979305;
    x(17) = 0.61960987576364615638509731;
    x(18) = 0.71866136313195019446162448;
    x(19) = 0.80488840161883989215111841;
    x(20) = 0.87675235827044166737815689;
    x(21) = 0.93297108682601610234919699;
    x(22) = 0.97254247121811523195602408;
    x(23) = 0.99476933499755212352392572;

    w(1) = 0.013411859487141772081309493459;
    w(2) = 0.030988005856979444310694219642;
    w(3) = 0.048037671731084668571641071632;
    w(4) = 0.064232421408525852127169615159;
    w(5) = 0.079281411776718954922892524742;
    w(6) = 0.092915766060035147477018617370;
    w(7) = 0.104892091464541410074086185015;
    w(8) = 0.11499664022241136494164351293;
    w(9) = 0.12304908430672953046757840067;
    w(10) = 0.12890572218808214997859533940;
    w(11) = 0.13246203940469661737164246470;
    w(12) = 0.13365457218610617535145711055;
    w(13) = 0.13246203940469661737164246470;
    w(14) = 0.12890572218808214997859533940;
    w(15) = 0.12304908430672953046757840067;
    w(16) = 0.11499664022241136494164351293;
    w(17) = 0.104892091464541410074086185015;
    w(18) = 0.092915766060035147477018617370;
    w(19) = 0.079281411776718954922892524742;
    w(20) = 0.064232421408525852127169615159;
    w(21) = 0.048037671731084668571641071632;
    w(22) = 0.030988005856979444310694219642;
    w(23) = 0.013411859487141772081309493459;

  elseif ( n == 24 )

    x(1) = -0.99518721999702136017999741;
    x(2) = -0.97472855597130949819839199;
    x(3) = -0.93827455200273275852364900;
    x(4) = -0.88641552700440103421315434;
    x(5) = -0.82000198597390292195394987;
    x(6) = -0.74012419157855436424382810;
    x(7) = -0.64809365193697556925249579;
    x(8) = -0.54542147138883953565837562;
    x(9) = -0.43379350762604513848708423;
    x(10) = -0.31504267969616337438679329;
    x(11) = -0.19111886747361630915863982;
    x(12) = -0.06405689286260562608504308;
    x(13) = 0.06405689286260562608504308;
    x(14) = 0.19111886747361630915863982;
    x(15) = 0.31504267969616337438679329;
    x(16) = 0.43379350762604513848708423;
    x(17) = 0.54542147138883953565837562;
    x(18) = 0.64809365193697556925249579;
    x(19) = 0.74012419157855436424382810;
    x(20) = 0.82000198597390292195394987;
    x(21) = 0.88641552700440103421315434;
    x(22) = 0.93827455200273275852364900;
    x(23) = 0.97472855597130949819839199;
    x(24) = 0.99518721999702136017999741;

    w(1) = 0.012341229799987199546805667070;
    w(2) = 0.028531388628933663181307815952;
    w(3) = 0.044277438817419806168602748211;
    w(4) = 0.059298584915436780746367758500;
    w(5) = 0.07334648141108030573403361525;
    w(6) = 0.08619016153195327591718520298;
    w(7) = 0.09761865210411388826988066446;
    w(8) = 0.10744427011596563478257734245;
    w(9) = 0.11550566805372560135334448391;
    w(10) = 0.12167047292780339120446315348;
    w(11) = 0.12583745634682829612137538251;
    w(12) = 0.12793819534675215697405616522;
    w(13) = 0.12793819534675215697405616522;
    w(14) = 0.12583745634682829612137538251;
    w(15) = 0.12167047292780339120446315348;
    w(16) = 0.11550566805372560135334448391;
    w(17) = 0.10744427011596563478257734245;
    w(18) = 0.09761865210411388826988066446;
    w(19) = 0.08619016153195327591718520298;
    w(20) = 0.07334648141108030573403361525;
    w(21) = 0.059298584915436780746367758500;
    w(22) = 0.044277438817419806168602748211;
    w(23) = 0.028531388628933663181307815952;
    w(24) = 0.012341229799987199546805667070;

  elseif ( n == 25 )

    x(1) = -0.99555696979049809790878495;
    x(2) = -0.97666392145951751149831539;
    x(3) = -0.94297457122897433941401117;
    x(4) = -0.89499199787827536885104201;
    x(5) = -0.83344262876083400142102111;
    x(6) = -0.75925926303735763057728287;
    x(7) = -0.67356636847346836448512063;
    x(8) = -0.57766293024122296772368984;
    x(9) = -0.47300273144571496052218212;
    x(10) = -0.36117230580938783773582173;
    x(11) = -0.24386688372098843204519036;
    x(12) = -0.12286469261071039638735982;
    x(13) = 0.00000000000000000000000000;
    x(14) = 0.12286469261071039638735982;
    x(15) = 0.24386688372098843204519036;
    x(16) = 0.36117230580938783773582173;
    x(17) = 0.47300273144571496052218212;
    x(18) = 0.57766293024122296772368984;
    x(19) = 0.67356636847346836448512063;
    x(20) = 0.75925926303735763057728287;
    x(21) = 0.83344262876083400142102111;
    x(22) = 0.89499199787827536885104201;
    x(23) = 0.94297457122897433941401117;
    x(24) = 0.97666392145951751149831539;
    x(25) = 0.99555696979049809790878495;

    w(1) = 0.0113937985010262879479029641132;
    w(2) = 0.026354986615032137261901815295;
    w(3) = 0.040939156701306312655623487712;
    w(4) = 0.054904695975835191925936891541;
    w(5) = 0.068038333812356917207187185657;
    w(6) = 0.080140700335001018013234959669;
    w(7) = 0.091028261982963649811497220703;
    w(8) = 0.100535949067050644202206890393;
    w(9) = 0.108519624474263653116093957050;
    w(10) = 0.11485825914571164833932554587;
    w(11) = 0.11945576353578477222817812651;
    w(12) = 0.12224244299031004168895951895;
    w(13) = 0.12317605372671545120390287308;
    w(14) = 0.12224244299031004168895951895;
    w(15) = 0.11945576353578477222817812651;
    w(16) = 0.11485825914571164833932554587;
    w(17) = 0.108519624474263653116093957050;
    w(18) = 0.100535949067050644202206890393;
    w(19) = 0.091028261982963649811497220703;
    w(20) = 0.080140700335001018013234959669;
    w(21) = 0.068038333812356917207187185657;
    w(22) = 0.054904695975835191925936891541;
    w(23) = 0.040939156701306312655623487712;
    w(24) = 0.026354986615032137261901815295;
    w(25) = 0.0113937985010262879479029641132;

  elseif ( n == 26 )

    x(1) = -0.99588570114561692900321696;
    x(2) = -0.97838544595647099110058035;
    x(3) = -0.94715906666171425013591528;
    x(4) = -0.90263786198430707421766560;
    x(5) = -0.84544594278849801879750706;
    x(6) = -0.77638594882067885619296725;
    x(7) = -0.69642726041995726486381391;
    x(8) = -0.60669229301761806323197875;
    x(9) = -0.50844071482450571769570306;
    x(10) = -0.40305175512348630648107738;
    x(11) = -0.29200483948595689514283538;
    x(12) = -0.17685882035689018396905775;
    x(13) = -0.05923009342931320709371858;
    x(14) = 0.05923009342931320709371858;
    x(15) = 0.17685882035689018396905775;
    x(16) = 0.29200483948595689514283538;
    x(17) = 0.40305175512348630648107738;
    x(18) = 0.50844071482450571769570306;
    x(19) = 0.60669229301761806323197875;
    x(20) = 0.69642726041995726486381391;
    x(21) = 0.77638594882067885619296725;
    x(22) = 0.84544594278849801879750706;
    x(23) = 0.90263786198430707421766560;
    x(24) = 0.94715906666171425013591528;
    x(25) = 0.97838544595647099110058035;
    x(26) = 0.99588570114561692900321696;

    w(1) = 0.010551372617343007155651187685;
    w(2) = 0.024417851092631908789615827520;
    w(3) = 0.037962383294362763950303141249;
    w(4) = 0.050975825297147811998319900724;
    w(5) = 0.063274046329574835539453689907;
    w(6) = 0.07468414976565974588707579610;
    w(7) = 0.08504589431348523921044776508;
    w(8) = 0.09421380035591414846366488307;
    w(9) = 0.10205916109442542323841407025;
    w(10) = 0.10847184052857659065657942673;
    w(11) = 0.11336181654631966654944071844;
    w(12) = 0.11666044348529658204466250754;
    w(13) = 0.11832141527926227651637108570;
    w(14) = 0.11832141527926227651637108570;
    w(15) = 0.11666044348529658204466250754;
    w(16) = 0.11336181654631966654944071844;
    w(17) = 0.10847184052857659065657942673;
    w(18) = 0.10205916109442542323841407025;
    w(19) = 0.09421380035591414846366488307;
    w(20) = 0.08504589431348523921044776508;
    w(21) = 0.07468414976565974588707579610;
    w(22) = 0.063274046329574835539453689907;
    w(23) = 0.050975825297147811998319900724;
    w(24) = 0.037962383294362763950303141249;
    w(25) = 0.024417851092631908789615827520;
    w(26) = 0.010551372617343007155651187685;

  elseif ( n == 27 )

    x(1) = -0.99617926288898856693888721;
    x(2) = -0.97992347596150122285587336;
    x(3) = -0.95090055781470500685190803;
    x(4) = -0.90948232067749110430064502;
    x(5) = -0.85620790801829449030273722;
    x(6) = -0.79177163907050822714439734;
    x(7) = -0.71701347373942369929481621;
    x(8) = -0.63290797194649514092773464;
    x(9) = -0.54055156457945689490030094;
    x(10) = -0.44114825175002688058597416;
    x(11) = -0.33599390363850889973031903;
    x(12) = -0.22645936543953685885723911;
    x(13) = -0.11397258560952996693289498;
    x(14) = 0.00000000000000000000000000;
    x(15) = 0.11397258560952996693289498;
    x(16) = 0.22645936543953685885723911;
    x(17) = 0.33599390363850889973031903;
    x(18) = 0.44114825175002688058597416;
    x(19) = 0.54055156457945689490030094;
    x(20) = 0.63290797194649514092773464;
    x(21) = 0.71701347373942369929481621;
    x(22) = 0.79177163907050822714439734;
    x(23) = 0.85620790801829449030273722;
    x(24) = 0.90948232067749110430064502;
    x(25) = 0.95090055781470500685190803;
    x(26) = 0.97992347596150122285587336;
    x(27) = 0.99617926288898856693888721;

    w(1) = 0.0097989960512943602611500550912;
    w(2) = 0.022686231596180623196034206447;
    w(3) = 0.035297053757419711022578289305;
    w(4) = 0.047449412520615062704096710114;
    w(5) = 0.058983536859833599110300833720;
    w(6) = 0.069748823766245592984322888357;
    w(7) = 0.079604867773057771263074959010;
    w(8) = 0.088423158543756950194322802854;
    w(9) = 0.096088727370028507565652646558;
    w(10) = 0.102501637817745798671247711533;
    w(11) = 0.107578285788533187212162984427;
    w(12) = 0.111252488356845192672163096043;
    w(13) = 0.113476346108965148620369948092;
    w(14) = 0.11422086737895698904504573690;
    w(15) = 0.113476346108965148620369948092;
    w(16) = 0.111252488356845192672163096043;
    w(17) = 0.107578285788533187212162984427;
    w(18) = 0.102501637817745798671247711533;
    w(19) = 0.096088727370028507565652646558;
    w(20) = 0.088423158543756950194322802854;
    w(21) = 0.079604867773057771263074959010;
    w(22) = 0.069748823766245592984322888357;
    w(23) = 0.058983536859833599110300833720;
    w(24) = 0.047449412520615062704096710114;
    w(25) = 0.035297053757419711022578289305;
    w(26) = 0.022686231596180623196034206447;
    w(27) = 0.0097989960512943602611500550912;

  elseif ( n == 28 )

    x(1) = -0.99644249757395444995043639;
    x(2) = -0.98130316537087275369455995;
    x(3) = -0.95425928062893819725410184;
    x(4) = -0.91563302639213207386968942;
    x(5) = -0.86589252257439504894225457;
    x(6) = -0.80564137091717917144788596;
    x(7) = -0.73561087801363177202814451;
    x(8) = -0.65665109403886496121989818;
    x(9) = -0.56972047181140171930800328;
    x(10) = -0.47587422495511826103441185;
    x(11) = -0.37625151608907871022135721;
    x(12) = -0.27206162763517807767682636;
    x(13) = -0.16456928213338077128147178;
    x(14) = -0.05507928988403427042651653;
    x(15) = 0.05507928988403427042651653;
    x(16) = 0.16456928213338077128147178;
    x(17) = 0.27206162763517807767682636;
    x(18) = 0.37625151608907871022135721;
    x(19) = 0.47587422495511826103441185;
    x(20) = 0.56972047181140171930800328;
    x(21) = 0.65665109403886496121989818;
    x(22) = 0.73561087801363177202814451;
    x(23) = 0.80564137091717917144788596;
    x(24) = 0.86589252257439504894225457;
    x(25) = 0.91563302639213207386968942;
    x(26) = 0.95425928062893819725410184;
    x(27) = 0.98130316537087275369455995;
    x(28) = 0.99644249757395444995043639;

    w(1) = 0.009124282593094517738816153923;
    w(2) = 0.021132112592771259751500380993;
    w(3) = 0.032901427782304379977630819171;
    w(4) = 0.044272934759004227839587877653;
    w(5) = 0.055107345675716745431482918227;
    w(6) = 0.06527292396699959579339756678;
    w(7) = 0.07464621423456877902393188717;
    w(8) = 0.08311341722890121839039649824;
    w(9) = 0.09057174439303284094218603134;
    w(10) = 0.09693065799792991585048900610;
    w(11) = 0.10211296757806076981421663851;
    w(12) = 0.10605576592284641791041643700;
    w(13) = 0.10871119225829413525357151930;
    w(14) = 0.11004701301647519628237626560;
    w(15) = 0.11004701301647519628237626560;
    w(16) = 0.10871119225829413525357151930;
    w(17) = 0.10605576592284641791041643700;
    w(18) = 0.10211296757806076981421663851;
    w(19) = 0.09693065799792991585048900610;
    w(20) = 0.09057174439303284094218603134;
    w(21) = 0.08311341722890121839039649824;
    w(22) = 0.07464621423456877902393188717;
    w(23) = 0.06527292396699959579339756678;
    w(24) = 0.055107345675716745431482918227;
    w(25) = 0.044272934759004227839587877653;
    w(26) = 0.032901427782304379977630819171;
    w(27) = 0.021132112592771259751500380993;
    w(28) = 0.009124282593094517738816153923;

  elseif ( n == 29 )

    x(1) = -0.99667944226059658616319153;
    x(2) = -0.98254550526141317487092602;
    x(3) = -0.95728559577808772579820804;
    x(4) = -0.92118023295305878509375344;
    x(5) = -0.87463780492010279041779342;
    x(6) = -0.81818548761525244498957221;
    x(7) = -0.75246285173447713391261008;
    x(8) = -0.67821453760268651515618501;
    x(9) = -0.59628179713822782037958621;
    x(10) = -0.50759295512422764210262792;
    x(11) = -0.41315288817400866389070659;
    x(12) = -0.31403163786763993494819592;
    x(13) = -0.21135228616600107450637573;
    x(14) = -0.10627823013267923017098239;
    x(15) = 0.00000000000000000000000000;
    x(16) = 0.10627823013267923017098239;
    x(17) = 0.21135228616600107450637573;
    x(18) = 0.31403163786763993494819592;
    x(19) = 0.41315288817400866389070659;
    x(20) = 0.50759295512422764210262792;
    x(21) = 0.59628179713822782037958621;
    x(22) = 0.67821453760268651515618501;
    x(23) = 0.75246285173447713391261008;
    x(24) = 0.81818548761525244498957221;
    x(25) = 0.87463780492010279041779342;
    x(26) = 0.92118023295305878509375344;
    x(27) = 0.95728559577808772579820804;
    x(28) = 0.98254550526141317487092602;
    x(29) = 0.99667944226059658616319153;

    w(1) = 0.0085169038787464096542638133022;
    w(2) = 0.019732085056122705983859801640;
    w(3) = 0.030740492202093622644408525375;
    w(4) = 0.041402062518682836104830010114;
    w(5) = 0.051594826902497923912594381180;
    w(6) = 0.061203090657079138542109848024;
    w(7) = 0.070117933255051278569581486949;
    w(8) = 0.078238327135763783828144888660;
    w(9) = 0.085472257366172527545344849297;
    w(10) = 0.091737757139258763347966411077;
    w(11) = 0.096963834094408606301900074883;
    w(12) = 0.101091273759914966121820546907;
    w(13) = 0.104073310077729373913328471285;
    w(14) = 0.105876155097320941406591327852;
    w(15) = 0.10647938171831424424651112691;
    w(16) = 0.105876155097320941406591327852;
    w(17) = 0.104073310077729373913328471285;
    w(18) = 0.101091273759914966121820546907;
    w(19) = 0.096963834094408606301900074883;
    w(20) = 0.091737757139258763347966411077;
    w(21) = 0.085472257366172527545344849297;
    w(22) = 0.078238327135763783828144888660;
    w(23) = 0.070117933255051278569581486949;
    w(24) = 0.061203090657079138542109848024;
    w(25) = 0.051594826902497923912594381180;
    w(26) = 0.041402062518682836104830010114;
    w(27) = 0.030740492202093622644408525375;
    w(28) = 0.019732085056122705983859801640;
    w(29) = 0.0085169038787464096542638133022;

  elseif ( n == 30 )

    x(1) = -0.99689348407464954027163005;
    x(2) = -0.98366812327974720997003258;
    x(3) = -0.96002186496830751221687103;
    x(4) = -0.92620004742927432587932428;
    x(5) = -0.88256053579205268154311646;
    x(6) = -0.82956576238276839744289812;
    x(7) = -0.76777743210482619491797734;
    x(8) = -0.69785049479331579693229239;
    x(9) = -0.62052618298924286114047756;
    x(10) = -0.53662414814201989926416979;
    x(11) = -0.44703376953808917678060990;
    x(12) = -0.35270472553087811347103721;
    x(13) = -0.25463692616788984643980513;
    x(14) = -0.15386991360858354696379467;
    x(15) = -0.05147184255531769583302521;
    x(16) = 0.05147184255531769583302521;
    x(17) = 0.15386991360858354696379467;
    x(18) = 0.25463692616788984643980513;
    x(19) = 0.35270472553087811347103721;
    x(20) = 0.44703376953808917678060990;
    x(21) = 0.53662414814201989926416979;
    x(22) = 0.62052618298924286114047756;
    x(23) = 0.69785049479331579693229239;
    x(24) = 0.76777743210482619491797734;
    x(25) = 0.82956576238276839744289812;
    x(26) = 0.88256053579205268154311646;
    x(27) = 0.92620004742927432587932428;
    x(28) = 0.96002186496830751221687103;
    x(29) = 0.98366812327974720997003258;
    x(30) = 0.99689348407464954027163005;

    w(1) = 0.007968192496166605615465883475;
    w(2) = 0.018466468311090959142302131912;
    w(3) = 0.028784707883323369349719179611;
    w(4) = 0.038799192569627049596801936446;
    w(5) = 0.048402672830594052902938140423;
    w(6) = 0.057493156217619066481721689402;
    w(7) = 0.06597422988218049512812851512;
    w(8) = 0.07375597473770520626824385002;
    w(9) = 0.08075589522942021535469493846;
    w(10) = 0.08689978720108297980238753072;
    w(11) = 0.09212252223778612871763270709;
    w(12) = 0.09636873717464425963946862635;
    w(13) = 0.09959342058679526706278028210;
    w(14) = 0.10176238974840550459642895217;
    w(15) = 0.10285265289355884034128563671;
    w(16) = 0.10285265289355884034128563671;
    w(17) = 0.10176238974840550459642895217;
    w(18) = 0.09959342058679526706278028210;
    w(19) = 0.09636873717464425963946862635;
    w(20) = 0.09212252223778612871763270709;
    w(21) = 0.08689978720108297980238753072;
    w(22) = 0.08075589522942021535469493846;
    w(23) = 0.07375597473770520626824385002;
    w(24) = 0.06597422988218049512812851512;
    w(25) = 0.057493156217619066481721689402;
    w(26) = 0.048402672830594052902938140423;
    w(27) = 0.038799192569627049596801936446;
    w(28) = 0.028784707883323369349719179611;
    w(29) = 0.018466468311090959142302131912;
    w(30) = 0.007968192496166605615465883475;

  elseif ( n == 31 )

    x(1) = -0.99708748181947707405562655;
    x(2) = -0.98468590966515248400246517;
    x(3) = -0.96250392509294966178905240;
    x(4) = -0.93075699789664816495694576;
    x(5) = -0.88976002994827104337419201;
    x(6) = -0.83992032014626734008690454;
    x(7) = -0.78173314841662494040636002;
    x(8) = -0.71577678458685328390597087;
    x(9) = -0.64270672292426034618441820;
    x(10) = -0.56324916140714926272094492;
    x(11) = -0.47819378204490248044059404;
    x(12) = -0.38838590160823294306135146;
    x(13) = -0.29471806998170161661790390;
    x(14) = -0.19812119933557062877241300;
    x(15) = -0.09955531215234152032517479;
    x(16) = 0.00000000000000000000000000;
    x(17) = 0.09955531215234152032517479;
    x(18) = 0.19812119933557062877241300;
    x(19) = 0.29471806998170161661790390;
    x(20) = 0.38838590160823294306135146;
    x(21) = 0.47819378204490248044059404;
    x(22) = 0.56324916140714926272094492;
    x(23) = 0.64270672292426034618441820;
    x(24) = 0.71577678458685328390597087;
    x(25) = 0.78173314841662494040636002;
    x(26) = 0.83992032014626734008690454;
    x(27) = 0.88976002994827104337419201;
    x(28) = 0.93075699789664816495694576;
    x(29) = 0.96250392509294966178905240;
    x(30) = 0.98468590966515248400246517;
    x(31) = 0.99708748181947707405562655;

    w(1) = 0.0074708315792487758586968750322;
    w(2) = 0.017318620790310582463157996087;
    w(3) = 0.027009019184979421800608708092;
    w(4) = 0.036432273912385464024392010468;
    w(5) = 0.045493707527201102902315857895;
    w(6) = 0.054103082424916853711666259087;
    w(7) = 0.062174786561028426910343543687;
    w(8) = 0.069628583235410366167756126255;
    w(9) = 0.076390386598776616426357674901;
    w(10) = 0.082392991761589263903823367432;
    w(11) = 0.087576740608477876126198069695;
    w(12) = 0.091890113893641478215362871607;
    w(13) = 0.095290242912319512807204197488;
    w(14) = 0.097743335386328725093474010979;
    w(15) = 0.099225011226672307874875514429;
    w(16) = 0.09972054479342645142753383373;
    w(17) = 0.099225011226672307874875514429;
    w(18) = 0.097743335386328725093474010979;
    w(19) = 0.095290242912319512807204197488;
    w(20) = 0.091890113893641478215362871607;
    w(21) = 0.087576740608477876126198069695;
    w(22) = 0.082392991761589263903823367432;
    w(23) = 0.076390386598776616426357674901;
    w(24) = 0.069628583235410366167756126255;
    w(25) = 0.062174786561028426910343543687;
    w(26) = 0.054103082424916853711666259087;
    w(27) = 0.045493707527201102902315857895;
    w(28) = 0.036432273912385464024392010468;
    w(29) = 0.027009019184979421800608708092;
    w(30) = 0.017318620790310582463157996087;
    w(31) = 0.0074708315792487758586968750322;

  elseif ( n == 32 )

    x(1) = -0.99726386184948156354498113;
    x(2) = -0.98561151154526833540017504;
    x(3) = -0.96476225558750643077381193;
    x(4) = -0.93490607593773968917091913;
    x(5) = -0.89632115576605212396530724;
    x(6) = -0.84936761373256997013369300;
    x(7) = -0.79448379596794240696309730;
    x(8) = -0.73218211874028968038742667;
    x(9) = -0.66304426693021520097511517;
    x(10) = -0.58771575724076232904074548;
    x(11) = -0.50689990893222939002374747;
    x(12) = -0.42135127613063534536411944;
    x(13) = -0.33186860228212764977991681;
    x(14) = -0.23928736225213707454460321;
    x(15) = -0.14447196158279649348518637;
    x(16) = -0.04830766568773831623481257;
    x(17) = 0.04830766568773831623481257;
    x(18) = 0.14447196158279649348518637;
    x(19) = 0.23928736225213707454460321;
    x(20) = 0.33186860228212764977991681;
    x(21) = 0.42135127613063534536411944;
    x(22) = 0.50689990893222939002374747;
    x(23) = 0.58771575724076232904074548;
    x(24) = 0.66304426693021520097511517;
    x(25) = 0.73218211874028968038742667;
    x(26) = 0.79448379596794240696309730;
    x(27) = 0.84936761373256997013369300;
    x(28) = 0.89632115576605212396530724;
    x(29) = 0.93490607593773968917091913;
    x(30) = 0.96476225558750643077381193;
    x(31) = 0.98561151154526833540017504;
    x(32) = 0.99726386184948156354498113;

    w(1) = 0.007018610009470096600407063739;
    w(2) = 0.016274394730905670605170562206;
    w(3) = 0.025392065309262059455752589789;
    w(4) = 0.034273862913021433102687732252;
    w(5) = 0.042835898022226680656878646606;
    w(6) = 0.050998059262376176196163244690;
    w(7) = 0.058684093478535547145283637300;
    w(8) = 0.06582222277636184683765006371;
    w(9) = 0.07234579410884850622539935648;
    w(10) = 0.07819389578707030647174091883;
    w(11) = 0.08331192422694675522219907460;
    w(12) = 0.08765209300440381114277146275;
    w(13) = 0.09117387869576388471286857711;
    w(14) = 0.09384439908080456563918023767;
    w(15) = 0.09563872007927485941908200220;
    w(16) = 0.09654008851472780056676483006;
    w(17) = 0.09654008851472780056676483006;
    w(18) = 0.09563872007927485941908200220;
    w(19) = 0.09384439908080456563918023767;
    w(20) = 0.09117387869576388471286857711;
    w(21) = 0.08765209300440381114277146275;
    w(22) = 0.08331192422694675522219907460;
    w(23) = 0.07819389578707030647174091883;
    w(24) = 0.07234579410884850622539935648;
    w(25) = 0.06582222277636184683765006371;
    w(26) = 0.058684093478535547145283637300;
    w(27) = 0.050998059262376176196163244690;
    w(28) = 0.042835898022226680656878646606;
    w(29) = 0.034273862913021433102687732252;
    w(30) = 0.025392065309262059455752589789;
    w(31) = 0.016274394730905670605170562206;
    w(32) = 0.007018610009470096600407063739;

  elseif ( n == 33 )

    x(1) = -0.99742469424645521726616802;
    x(2) = -0.98645572623064248811037570;
    x(3) = -0.96682290968999276892837771;
    x(4) = -0.93869437261116835035583512;
    x(5) = -0.90231676774343358304053133;
    x(6) = -0.85800965267650406464306148;
    x(7) = -0.80616235627416658979620087;
    x(8) = -0.74723049644956215785905512;
    x(9) = -0.68173195996974278626821595;
    x(10) = -0.61024234583637902730728751;
    x(11) = -0.53338990478634764354889426;
    x(12) = -0.45185001727245069572599328;
    x(13) = -0.36633925774807334107022062;
    x(14) = -0.27760909715249702940324807;
    x(15) = -0.18643929882799157233579876;
    x(16) = -0.09363106585473338567074292;
    x(17) = 0.00000000000000000000000000;
    x(18) = 0.09363106585473338567074292;
    x(19) = 0.18643929882799157233579876;
    x(20) = 0.27760909715249702940324807;
    x(21) = 0.36633925774807334107022062;
    x(22) = 0.45185001727245069572599328;
    x(23) = 0.53338990478634764354889426;
    x(24) = 0.61024234583637902730728751;
    x(25) = 0.68173195996974278626821595;
    x(26) = 0.74723049644956215785905512;
    x(27) = 0.80616235627416658979620087;
    x(28) = 0.85800965267650406464306148;
    x(29) = 0.90231676774343358304053133;
    x(30) = 0.93869437261116835035583512;
    x(31) = 0.96682290968999276892837771;
    x(32) = 0.98645572623064248811037570;
    x(33) = 0.99742469424645521726616802;

    w(1) = 0.0066062278475873780586492352085;
    w(2) = 0.015321701512934676127945768534;
    w(3) = 0.023915548101749480350533257529;
    w(4) = 0.032300358632328953281561447250;
    w(5) = 0.040401541331669591563409790527;
    w(6) = 0.048147742818711695670146880138;
    w(7) = 0.055470846631663561284944495439;
    w(8) = 0.062306482530317480031627725771;
    w(9) = 0.068594572818656712805955073015;
    w(10) = 0.074279854843954149342472175919;
    w(11) = 0.079312364794886738363908384942;
    w(12) = 0.083647876067038707613928014518;
    w(13) = 0.087248287618844337607281670945;
    w(14) = 0.090081958660638577239743705500;
    w(15) = 0.092123986643316846213240977717;
    w(16) = 0.093356426065596116160999126274;
    w(17) = 0.09376844616020999656730454155;
    w(18) = 0.093356426065596116160999126274;
    w(19) = 0.092123986643316846213240977717;
    w(20) = 0.090081958660638577239743705500;
    w(21) = 0.087248287618844337607281670945;
    w(22) = 0.083647876067038707613928014518;
    w(23) = 0.079312364794886738363908384942;
    w(24) = 0.074279854843954149342472175919;
    w(25) = 0.068594572818656712805955073015;
    w(26) = 0.062306482530317480031627725771;
    w(27) = 0.055470846631663561284944495439;
    w(28) = 0.048147742818711695670146880138;
    w(29) = 0.040401541331669591563409790527;
    w(30) = 0.032300358632328953281561447250;
    w(31) = 0.023915548101749480350533257529;
    w(32) = 0.015321701512934676127945768534;
    w(33) = 0.0066062278475873780586492352085;

  elseif ( n == 63 )

    x(1) = -0.99928298402912378037893614;
    x(2) = -0.99622401277797010860219336;
    x(3) = -0.99072854689218946681089467;
    x(4) = -0.98280881059372723486251141;
    x(5) = -0.97248403469757002280196068;
    x(6) = -0.95977944975894192707035417;
    x(7) = -0.94472613404100980296637532;
    x(8) = -0.92736092062184320544703138;
    x(9) = -0.90772630277853155803695313;
    x(10) = -0.88587032850785342629029846;
    x(11) = -0.86184648236412371953961184;
    x(12) = -0.83571355431950284347180777;
    x(13) = -0.80753549577345676005146599;
    x(14) = -0.7773812629903723355633302;
    x(15) = -0.7453246483178474178293217;
    x(16) = -0.7114440995848458078514315;
    x(17) = -0.6758225281149860901311033;
    x(18) = -0.6385471058213653850003070;
    x(19) = -0.5997090518776252357390089;
    x(20) = -0.5594034094862850132676978;
    x(21) = -0.5177288132900332481244776;
    x(22) = -0.4747872479948043999222123;
    x(23) = -0.4306837987951116006620889;
    x(24) = -0.3855263942122478924776150;
    x(25) = -0.3394255419745844024688344;
    x(26) = -0.2924940585862514400361572;
    x(27) = -0.2448467932459533627484046;
    x(28) = -0.1966003467915066845576275;
    x(29) = -0.1478727863578719685698391;
    x(30) = -0.0987833564469452795297037;
    x(31) = -0.0494521871161596272342338;
    x(32) = 0.0000000000000000000000000;
    x(33) = 0.0494521871161596272342338;
    x(34) = 0.0987833564469452795297037;
    x(35) = 0.1478727863578719685698391;
    x(36) = 0.1966003467915066845576275;
    x(37) = 0.2448467932459533627484046;
    x(38) = 0.2924940585862514400361572;
    x(39) = 0.3394255419745844024688344;
    x(40) = 0.3855263942122478924776150;
    x(41) = 0.4306837987951116006620889;
    x(42) = 0.4747872479948043999222123;
    x(43) = 0.5177288132900332481244776;
    x(44) = 0.5594034094862850132676978;
    x(45) = 0.5997090518776252357390089;
    x(46) = 0.6385471058213653850003070;
    x(47) = 0.6758225281149860901311033;
    x(48) = 0.7114440995848458078514315;
    x(49) = 0.7453246483178474178293217;
    x(50) = 0.7773812629903723355633302;
    x(51) = 0.8075354957734567600514660;
    x(52) = 0.8357135543195028434718078;
    x(53) = 0.8618464823641237195396118;
    x(54) = 0.8858703285078534262902985;
    x(55) = 0.9077263027785315580369531;
    x(56) = 0.9273609206218432054470314;
    x(57) = 0.9447261340410098029663753;
    x(58) = 0.9597794497589419270703542;
    x(59) = 0.9724840346975700228019607;
    x(60) = 0.9828088105937272348625114;
    x(61) = 0.9907285468921894668108947;
    x(62) = 0.9962240127779701086021934;
    x(63) = 0.9992829840291237803789361;

    w(1) = 0.0018398745955770841170924455540;
    w(2) = 0.0042785083468637618660784110826;
    w(3) = 0.0067102917659601362519069307298;
    w(4) = 0.0091259686763266563540586454218;
    w(5) = 0.011519376076880041750750606149;
    w(6) = 0.013884612616115610824866086368;
    w(7) = 0.016215878410338338882283672975;
    w(8) = 0.018507464460161270409260545805;
    w(9) = 0.020753761258039090775341953421;
    w(10) = 0.022949271004889933148942319562;
    w(11) = 0.025088620553344986618630138068;
    w(12) = 0.027166574359097933225189839439;
    w(13) = 0.029178047208280526945551502154;
    w(14) = 0.031118116622219817508215988557;
    w(15) = 0.032982034883779341765683179672;
    w(16) = 0.034765240645355877697180504643;
    w(17) = 0.036463370085457289630452409788;
    w(18) = 0.038072267584349556763638324928;
    w(19) = 0.039587995891544093984807928149;
    w(20) = 0.041006845759666398635110037009;
    w(21) = 0.042325345020815822982505485403;
    w(22) = 0.043540267083027590798964315704;
    w(23) = 0.044648638825941395370332669517;
    w(24) = 0.045647747876292608685885992609;
    w(25) = 0.046535149245383696510395418747;
    w(26) = 0.047308671312268919080604988339;
    w(27) = 0.047966421137995131411052756195;
    w(28) = 0.048506789097883847864090099146;
    w(29) = 0.048928452820511989944709361549;
    w(30) = 0.049230380423747560785043116988;
    w(31) = 0.049411833039918178967039646117;
    w(32) = 0.04947236662393102088866936042;
    w(33) = 0.049411833039918178967039646117;
    w(34) = 0.049230380423747560785043116988;
    w(35) = 0.048928452820511989944709361549;
    w(36) = 0.048506789097883847864090099146;
    w(37) = 0.047966421137995131411052756195;
    w(38) = 0.047308671312268919080604988339;
    w(39) = 0.046535149245383696510395418747;
    w(40) = 0.045647747876292608685885992609;
    w(41) = 0.044648638825941395370332669517;
    w(42) = 0.043540267083027590798964315704;
    w(43) = 0.042325345020815822982505485403;
    w(44) = 0.041006845759666398635110037009;
    w(45) = 0.039587995891544093984807928149;
    w(46) = 0.038072267584349556763638324928;
    w(47) = 0.036463370085457289630452409788;
    w(48) = 0.034765240645355877697180504643;
    w(49) = 0.032982034883779341765683179672;
    w(50) = 0.031118116622219817508215988557;
    w(51) = 0.029178047208280526945551502154;
    w(52) = 0.027166574359097933225189839439;
    w(53) = 0.025088620553344986618630138068;
    w(54) = 0.022949271004889933148942319562;
    w(55) = 0.020753761258039090775341953421;
    w(56) = 0.018507464460161270409260545805;
    w(57) = 0.016215878410338338882283672975;
    w(58) = 0.013884612616115610824866086368;
    w(59) = 0.011519376076880041750750606149;
    w(60) = 0.0091259686763266563540586454218;
    w(61) = 0.0067102917659601362519069307298;
    w(62) = 0.0042785083468637618660784110826;
    w(63) = 0.0018398745955770841170924455540;
 
  elseif ( n == 64 )

    x(1) = -0.99930504173577213945690562;
    x(2) = -0.99634011677195527934692450;
    x(3) = -0.99101337147674432073938238;
    x(4) = -0.98333625388462595693129930;
    x(5) = -0.97332682778991096374185351;
    x(6) = -0.96100879965205371891861412;
    x(7) = -0.94641137485840281606248149;
    x(8) = -0.92956917213193957582149015;
    x(9) = -0.91052213707850280575638067;
    x(10) = -0.88931544599511410585340404;
    x(11) = -0.86599939815409281976078339;
    x(12) = -0.8406292962525803627516915;
    x(13) = -0.8132653151227975597419233;
    x(14) = -0.7839723589433414076102205;
    x(15) = -0.7528199072605318966118638;
    x(16) = -0.7198818501716108268489402;
    x(17) = -0.6852363130542332425635584;
    x(18) = -0.6489654712546573398577612;
    x(19) = -0.6111553551723932502488530;
    x(20) = -0.5718956462026340342838781;
    x(21) = -0.5312794640198945456580139;
    x(22) = -0.4894031457070529574785263;
    x(23) = -0.4463660172534640879849477;
    x(24) = -0.4022701579639916036957668;
    x(25) = -0.3572201583376681159504426;
    x(26) = -0.3113228719902109561575127;
    x(27) = -0.2646871622087674163739642;
    x(28) = -0.2174236437400070841496487;
    x(29) = -0.1696444204239928180373136;
    x(30) = -0.1214628192961205544703765;
    x(31) = -0.0729931217877990394495429;
    x(32) = -0.0243502926634244325089558;
    x(33) = 0.0243502926634244325089558;
    x(34) = 0.0729931217877990394495429;
    x(35) = 0.1214628192961205544703765;
    x(36) = 0.1696444204239928180373136;
    x(37) = 0.2174236437400070841496487;
    x(38) = 0.2646871622087674163739642;
    x(39) = 0.3113228719902109561575127;
    x(40) = 0.3572201583376681159504426;
    x(41) = 0.4022701579639916036957668;
    x(42) = 0.4463660172534640879849477;
    x(43) = 0.4894031457070529574785263;
    x(44) = 0.5312794640198945456580139;
    x(45) = 0.5718956462026340342838781;
    x(46) = 0.6111553551723932502488530;
    x(47) = 0.6489654712546573398577612;
    x(48) = 0.6852363130542332425635584;
    x(49) = 0.7198818501716108268489402;
    x(50) = 0.7528199072605318966118638;
    x(51) = 0.7839723589433414076102205;
    x(52) = 0.8132653151227975597419233;
    x(53) = 0.8406292962525803627516915;
    x(54) = 0.8659993981540928197607834;
    x(55) = 0.8893154459951141058534040;
    x(56) = 0.9105221370785028057563807;
    x(57) = 0.9295691721319395758214902;
    x(58) = 0.9464113748584028160624815;
    x(59) = 0.9610087996520537189186141;
    x(60) = 0.9733268277899109637418535;
    x(61) = 0.9833362538846259569312993;
    x(62) = 0.9910133714767443207393824;
    x(63) = 0.9963401167719552793469245;
    x(64) = 0.9993050417357721394569056;

    w(1) = 0.0017832807216964329472960791450;
    w(2) = 0.0041470332605624676352875357286;
    w(3) = 0.006504457968978362856117360400;
    w(4) = 0.008846759826363947723030914660;
    w(5) = 0.011168139460131128818590493019;
    w(6) = 0.013463047896718642598060766686;
    w(7) = 0.015726030476024719321965995298;
    w(8) = 0.017951715775697343085045302001;
    w(9) = 0.020134823153530209372340316729;
    w(10) = 0.022270173808383254159298330384;
    w(11) = 0.024352702568710873338177550409;
    w(12) = 0.026377469715054658671691792625;
    w(13) = 0.028339672614259483227511305200;
    w(14) = 0.030234657072402478867974059820;
    w(15) = 0.032057928354851553585467504348;
    w(16) = 0.033805161837141609391565482111;
    w(17) = 0.035472213256882383810693146715;
    w(18) = 0.037055128540240046040415101810;
    w(19) = 0.038550153178615629128962496947;
    w(20) = 0.039953741132720341386656926128;
    w(21) = 0.041262563242623528610156297474;
    w(22) = 0.042473515123653589007339767909;
    w(23) = 0.043583724529323453376827860974;
    w(24) = 0.044590558163756563060134710031;
    w(25) = 0.045491627927418144479770996971;
    w(26) = 0.046284796581314417295953249232;
    w(27) = 0.046968182816210017325326285755;
    w(28) = 0.047540165714830308662282206944;
    w(29) = 0.04799938859645830772812617987;
    w(30) = 0.04834476223480295716976952716;
    w(31) = 0.04857546744150342693479906678;
    w(32) = 0.04869095700913972038336539073;
    w(33) = 0.04869095700913972038336539073;
    w(34) = 0.04857546744150342693479906678;
    w(35) = 0.04834476223480295716976952716;
    w(36) = 0.04799938859645830772812617987;
    w(37) = 0.047540165714830308662282206944;
    w(38) = 0.046968182816210017325326285755;
    w(39) = 0.046284796581314417295953249232;
    w(40) = 0.045491627927418144479770996971;
    w(41) = 0.044590558163756563060134710031;
    w(42) = 0.043583724529323453376827860974;
    w(43) = 0.042473515123653589007339767909;
    w(44) = 0.041262563242623528610156297474;
    w(45) = 0.039953741132720341386656926128;
    w(46) = 0.038550153178615629128962496947;
    w(47) = 0.037055128540240046040415101810;
    w(48) = 0.035472213256882383810693146715;
    w(49) = 0.033805161837141609391565482111;
    w(50) = 0.032057928354851553585467504348;
    w(51) = 0.030234657072402478867974059820;
    w(52) = 0.028339672614259483227511305200;
    w(53) = 0.026377469715054658671691792625;
    w(54) = 0.024352702568710873338177550409;
    w(55) = 0.022270173808383254159298330384;
    w(56) = 0.020134823153530209372340316729;
    w(57) = 0.017951715775697343085045302001;
    w(58) = 0.015726030476024719321965995298;
    w(59) = 0.013463047896718642598060766686;
    w(60) = 0.011168139460131128818590493019;
    w(61) = 0.008846759826363947723030914660;
    w(62) = 0.006504457968978362856117360400;
    w(63) = 0.0041470332605624676352875357286;
    w(64) = 0.0017832807216964329472960791450;

  elseif ( n == 65 )

    x(1) = -0.99932609707541287726569361;
    x(2) = -0.99645094806184916305579494;
    x(3) = -0.99128527617680166872182118;
    x(4) = -0.98383981218703494137763778;
    x(5) = -0.97413153983355116907496789;
    x(6) = -0.96218275471805523771198375;
    x(7) = -0.94802092816840750637376974;
    x(8) = -0.93167862822874933796567699;
    x(9) = -0.91319344054284626173654692;
    x(10) = -0.89260788050473893142328554;
    x(11) = -0.8699692949264070361941320;
    x(12) = -0.8453297528999302839424500;
    x(13) = -0.8187459259226514534339191;
    x(14) = -0.7902789574921218430473804;
    x(15) = -0.7599943224419997868739828;
    x(16) = -0.7279616763294246790119737;
    x(17) = -0.6942546952139916335526225;
    x(18) = -0.6589509061936251330409408;
    x(19) = -0.6221315090854002415825996;
    x(20) = -0.5838811896604873133271545;
    x(21) = -0.5442879248622271385455725;
    x(22) = -0.5034427804550068823410431;
    x(23) = -0.4614397015691450576978341;
    x(24) = -0.4183752966234090092641990;
    x(25) = -0.3743486151220660120087939;
    x(26) = -0.3294609198374864076452867;
    x(27) = -0.2838154539022487306176554;
    x(28) = -0.2375172033464168065707124;
    x(29) = -0.1906726556261427697749124;
    x(30) = -0.1433895546989751711312496;
    x(31) = -0.0957766532091975056522186;
    x(32) = -0.0479434623531718575225298;
    x(33) = 0.0000000000000000000000000;
    x(34) = 0.0479434623531718575225298;
    x(35) = 0.0957766532091975056522186;
    x(36) = 0.1433895546989751711312496;
    x(37) = 0.1906726556261427697749124;
    x(38) = 0.2375172033464168065707124;
    x(39) = 0.2838154539022487306176554;
    x(40) = 0.3294609198374864076452867;
    x(41) = 0.3743486151220660120087939;
    x(42) = 0.4183752966234090092641990;
    x(43) = 0.4614397015691450576978341;
    x(44) = 0.5034427804550068823410431;
    x(45) = 0.5442879248622271385455725;
    x(46) = 0.5838811896604873133271545;
    x(47) = 0.6221315090854002415825996;
    x(48) = 0.6589509061936251330409408;
    x(49) = 0.6942546952139916335526225;
    x(50) = 0.7279616763294246790119737;
    x(51) = 0.7599943224419997868739828;
    x(52) = 0.7902789574921218430473804;
    x(53) = 0.8187459259226514534339191;
    x(54) = 0.8453297528999302839424500;
    x(55) = 0.8699692949264070361941320;
    x(56) = 0.8926078805047389314232855;
    x(57) = 0.9131934405428462617365469;
    x(58) = 0.9316786282287493379656770;
    x(59) = 0.9480209281684075063737697;
    x(60) = 0.9621827547180552377119837;
    x(61) = 0.9741315398335511690749679;
    x(62) = 0.9838398121870349413776378;
    x(63) = 0.9912852761768016687218212;
    x(64) = 0.9964509480618491630557949;
    x(65) = 0.9993260970754128772656936;

    w(1) = 0.0017292582513002508983395851463;
    w(2) = 0.0040215241720037363470786599528;
    w(3) = 0.0063079425789717545501888719039;
    w(4) = 0.0085801482668814598936358121592;
    w(5) = 0.0108326787895979686215140551272;
    w(6) = 0.013060311639994846336168342922;
    w(7) = 0.015257912146448310349265388145;
    w(8) = 0.017420421997670248495365759969;
    w(9) = 0.019542865836750062826837429313;
    w(10) = 0.021620361284934062841654274667;
    w(11) = 0.023648129691287236698780978994;
    w(12) = 0.025621506938037758214084978694;
    w(13) = 0.027535954088450343942499722327;
    w(14) = 0.029387067789310668062644859210;
    w(15) = 0.031170590380189142464431845777;
    w(16) = 0.032882419676368574984049638008;
    w(17) = 0.034518618398549058625221276859;
    w(18) = 0.036075423225565273932166270524;
    w(19) = 0.037549253448257709809772223198;
    w(20) = 0.038936719204051197616673806364;
    w(21) = 0.040234629273005533815446337743;
    w(22) = 0.041439998417240293022686299233;
    w(23) = 0.042550054246755802719217150803;
    w(24) = 0.043562243595800486532284821661;
    w(25) = 0.044474238395082974427323504000;
    w(26) = 0.045283941026300230657128240574;
    w(27) = 0.045989489146651696963893390818;
    w(28) = 0.046589259972233498302255136790;
    w(29) = 0.047081874010454522246006808290;
    w(30) = 0.047466198232885503152644458740;
    w(31) = 0.047741348681240621559038972227;
    w(32) = 0.047906692500495862031347289176;
    w(33) = 0.04796184939446661812070762137;
    w(34) = 0.047906692500495862031347289176;
    w(35) = 0.047741348681240621559038972227;
    w(36) = 0.047466198232885503152644458740;
    w(37) = 0.047081874010454522246006808290;
    w(38) = 0.046589259972233498302255136790;
    w(39) = 0.045989489146651696963893390818;
    w(40) = 0.045283941026300230657128240574;
    w(41) = 0.044474238395082974427323504000;
    w(42) = 0.043562243595800486532284821661;
    w(43) = 0.042550054246755802719217150803;
    w(44) = 0.041439998417240293022686299233;
    w(45) = 0.040234629273005533815446337743;
    w(46) = 0.038936719204051197616673806364;
    w(47) = 0.037549253448257709809772223198;
    w(48) = 0.036075423225565273932166270524;
    w(49) = 0.034518618398549058625221276859;
    w(50) = 0.032882419676368574984049638008;
    w(51) = 0.031170590380189142464431845777;
    w(52) = 0.029387067789310668062644859210;
    w(53) = 0.027535954088450343942499722327;
    w(54) = 0.025621506938037758214084978694;
    w(55) = 0.023648129691287236698780978994;
    w(56) = 0.021620361284934062841654274667;
    w(57) = 0.019542865836750062826837429313;
    w(58) = 0.017420421997670248495365759969;
    w(59) = 0.015257912146448310349265388145;
    w(60) = 0.013060311639994846336168342922;
    w(61) = 0.0108326787895979686215140551272;
    w(62) = 0.0085801482668814598936358121592;
    w(63) = 0.0063079425789717545501888719039;
    w(64) = 0.0040215241720037363470786599528;
    w(65) = 0.0017292582513002508983395851463;
    
  elseif ( n == 127 )
  
    x(1) = -0.9998221304153061462673512;
    x(2) = -0.9990629343553118951383159;
    x(3) = -0.9976975661898046210744170;
    x(4) = -0.9957265513520272266354334;
    x(5) = -0.9931510492545171473611308;
    x(6) = -0.9899726145914841576077867;
    x(7) = -0.9861931740169316667104383;
    x(8) = -0.9818150208038141100334631;
    x(9) = -0.9768408123430703268174439;
    x(10) = -0.9712735681615291922889469;
    x(11) = -0.9651166679452921210908251;
    x(12) = -0.9583738494252387711491029;
    x(13) = -0.9510492060778803105479076;
    x(14) = -0.9431471846248148273454496;
    x(15) = -0.9346725823247379685736349;
    x(16) = -0.9256305440562338491274647;
    x(17) = -0.9160265591914658093130886;
    x(18) = -0.9058664582618213828024613;
    x(19) = -0.8951564094170837089690438;
    x(20) = -0.8839029146800265699452579;
    x(21) = -0.8721128059985607114196375;
    x(22) = -0.8597932410977408098120313;
    x(23) = -0.8469516991340975984533393;
    x(24) = -0.8335959761548995143795572;
    x(25) = -0.8197341803650786741551191;
    x(26) = -0.8053747272046802146665608;
    x(27) = -0.7905263342398137999454500;
    x(28) = -0.7751980158702023824449628;
    x(29) = -0.7593990778565366715566637;
    x(30) = -0.7431391116709545129205669;
    x(31) = -0.7264279886740726855356929;
    x(32) = -0.7092758541221045609994446;
    x(33) = -0.6916931210077006701564414;
    x(34) = -0.6736904637382504853466825;
    x(35) = -0.6552788116554826302767651;
    x(36) = -0.6364693424002972413476082;
    x(37) = -0.6172734751268582838576392;
    x(38) = -0.5977028635700652293844120;
    x(39) = -0.5777693889706125800032517;
    x(40) = -0.5574851528619322329218619;
    x(41) = -0.5368624697233975674581664;
    x(42) = -0.5159138595042493572772773;
    x(43) = -0.4946520400227821173949402;
    x(44) = -0.4730899192454052416450999;
    x(45) = -0.4512405874502662273318986;
    x(46) = -0.4291173092801933762625441;
    x(47) = -0.4067335156897825634086729;
    x(48) = -0.3841027957915169357790778;
    x(49) = -0.3612388886058697060709248;
    x(50) = -0.3381556747203985013760003;
    x(51) = -0.3148671678628949814860148;
    x(52) = -0.2913875063937056207945188;
    x(53) = -0.2677309447223886208883435;
    x(54) = -0.2439118446539178579707132;
    x(55) = -0.2199446666696875424545234;
    x(56) = -0.1958439611486108515042816;
    x(57) = -0.1716243595336421650083449;
    x(58) = -0.1473005654490856693893293;
    x(59) = -0.1228873457740829717260337;
    x(60) = -0.0983995216776989707510918;
    x(61) = -0.0738519596210485452734404;
    x(62) = -0.0492595623319266303153793;
    x(63) = -0.0246372597574209446148971;
    x(64) = 0.0000000000000000000000000;
    x(65) = 0.0246372597574209446148971;
    x(66) = 0.0492595623319266303153793;
    x(67) = 0.0738519596210485452734404;
    x(68) = 0.0983995216776989707510918;
    x(69) = 0.1228873457740829717260337;
    x(70) = 0.1473005654490856693893293;
    x(71) = 0.1716243595336421650083449;
    x(72) = 0.1958439611486108515042816;
    x(73) = 0.2199446666696875424545234;
    x(74) = 0.2439118446539178579707132;
    x(75) = 0.2677309447223886208883435;
    x(76) = 0.2913875063937056207945188;
    x(77) = 0.3148671678628949814860148;
    x(78) = 0.3381556747203985013760003;
    x(79) = 0.3612388886058697060709248;
    x(80) = 0.3841027957915169357790778;
    x(81) = 0.4067335156897825634086729;
    x(82) = 0.4291173092801933762625441;
    x(83) = 0.4512405874502662273318986;
    x(84) = 0.4730899192454052416450999;
    x(85) = 0.4946520400227821173949402;
    x(86) = 0.5159138595042493572772773;
    x(87) = 0.5368624697233975674581664;
    x(88) = 0.5574851528619322329218619;
    x(89) = 0.5777693889706125800032517;
    x(90) = 0.5977028635700652293844120;
    x(91) = 0.6172734751268582838576392;
    x(92) = 0.6364693424002972413476082;
    x(93) = 0.6552788116554826302767651;
    x(94) = 0.6736904637382504853466825;
    x(95) = 0.6916931210077006701564414;
    x(96) = 0.7092758541221045609994446;
    x(97) = 0.7264279886740726855356929;
    x(98) = 0.7431391116709545129205669;
    x(99) = 0.7593990778565366715566637;
    x(100) = 0.7751980158702023824449628;
    x(101) = 0.7905263342398137999454500;
    x(102) = 0.8053747272046802146665608;
    x(103) = 0.8197341803650786741551191;
    x(104) = 0.8335959761548995143795572;
    x(105) = 0.8469516991340975984533393;
    x(106) = 0.8597932410977408098120313;
    x(107) = 0.8721128059985607114196375;
    x(108) = 0.8839029146800265699452579;
    x(109) = 0.8951564094170837089690438;
    x(110) = 0.9058664582618213828024613;
    x(111) = 0.9160265591914658093130886;
    x(112) = 0.9256305440562338491274647;
    x(113) = 0.9346725823247379685736349;
    x(114) = 0.9431471846248148273454496;
    x(115) = 0.9510492060778803105479076;
    x(116) = 0.9583738494252387711491029;
    x(117) = 0.965116667945292121090825;
    x(118) = 0.971273568161529192288947;
    x(119) = 0.976840812343070326817444;
    x(120) = 0.981815020803814110033463;
    x(121) = 0.986193174016931666710438;
    x(122) = 0.989972614591484157607787;
    x(123) = 0.993151049254517147361131;
    x(124) = 0.995726551352027226635433;
    x(125) = 0.997697566189804621074417;
    x(126) = 0.999062934355311895138316;
    x(127) = 0.999822130415306146267351;

    w(1) = 0.00045645726109586662791936519265;
    w(2) = 0.00106227668695384869596523598532;
    w(3) = 0.0016683488125171936761028862915;
    w(4) = 0.0022734860707492547802810840776;
    w(5) = 0.0028772587656289004082883197514;
    w(6) = 0.0034792893810051465908910894100;
    w(7) = 0.0040792095178254605327114733457;
    w(8) = 0.0046766539777779034772638165663;
    w(9) = 0.0052712596565634400891303815906;
    w(10) = 0.0058626653903523901033648343751;
    w(11) = 0.0064505120486899171845442463869;
    w(12) = 0.0070344427036681608755685893033;
    w(13) = 0.0076141028256526859356393930849;
    w(14) = 0.0081891404887415730817235884719;
    w(15) = 0.0087592065795403145773316804234;
    w(16) = 0.0093239550065309714787536985834;
    w(17) = 0.0098830429087554914716648010900;
    w(18) = 0.0104361308631410052256731719977;
    w(19) = 0.0109828830900689757887996573761;
    w(20) = 0.011522967656921087154811609735;
    w(21) = 0.012056056679400848183529562145;
    w(22) = 0.012581826520465013101514365424;
    w(23) = 0.013099957986718627426172681913;
    w(24) = 0.013610136522139249906034237534;
    w(25) = 0.014112052399003395774044161634;
    w(26) = 0.014605400905893418351737288079;
    w(27) = 0.015089882532666922992635733981;
    w(28) = 0.015565203152273955098532590263;
    w(29) = 0.016031074199309941802254151843;
    w(30) = 0.016487212845194879399346060358;
    w(31) = 0.016933342169871654545878815295;
    w(32) = 0.017369191329918731922164721250;
    w(33) = 0.017794495722974774231027912900;
    w(34) = 0.018208997148375106468721469154;
    w(35) = 0.018612443963902310429440419899;
    w(36) = 0.019004591238555646611148901045;
    w(37) = 0.019385200901246454628112623489;
    w(38) = 0.019754041885329183081815217323;
    w(39) = 0.020110890268880247225644623956;
    w(40) = 0.020455529410639508279497065713;
    w(41) = 0.020787750081531811812652137291;
    w(42) = 0.021107350591688713643523847922;
    w(43) = 0.021414136912893259295449693234;
    w(44) = 0.021707922796373466052301324695;
    w(45) = 0.021988529885872983756478409759;
    w(46) = 0.022255787825930280235631416460;
    w(47) = 0.022509534365300608085694429903;
    w(48) = 0.022749615455457959852242553241;
    w(49) = 0.022975885344117206754377437839;
    w(50) = 0.023188206663719640249922582982;
    w(51) = 0.023386450514828194170722043497;
    w(52) = 0.023570496544381716050033676844;
    w(53) = 0.023740233018760777777714726703;
    w(54) = 0.023895556891620665983864481754;
    w(55) = 0.024036373866450369675132086026;
    w(56) = 0.024162598453819584716522917711;
    w(57) = 0.024274154023278979833195063937;
    w(58) = 0.024370972849882214952813561907;
    w(59) = 0.024452996155301467956140198472;
    w(60) = 0.024520174143511508275183033290;
    w(61) = 0.024572466031020653286354137335;
    w(62) = 0.024609840071630254092545634003;
    w(63) = 0.024632273575707679066033370218;
    w(64) = 0.02463975292396109441957941748;
    w(65) = 0.024632273575707679066033370218;
    w(66) = 0.024609840071630254092545634003;
    w(67) = 0.024572466031020653286354137335;
    w(68) = 0.024520174143511508275183033290;
    w(69) = 0.024452996155301467956140198472;
    w(70) = 0.024370972849882214952813561907;
    w(71) = 0.024274154023278979833195063937;
    w(72) = 0.024162598453819584716522917711;
    w(73) = 0.024036373866450369675132086026;
    w(74) = 0.023895556891620665983864481754;
    w(75) = 0.023740233018760777777714726703;
    w(76) = 0.023570496544381716050033676844;
    w(77) = 0.023386450514828194170722043497;
    w(78) = 0.023188206663719640249922582982;
    w(79) = 0.022975885344117206754377437839;
    w(80) = 0.022749615455457959852242553241;
    w(81) = 0.022509534365300608085694429903;
    w(82) = 0.022255787825930280235631416460;
    w(83) = 0.021988529885872983756478409759;
    w(84) = 0.021707922796373466052301324695;
    w(85) = 0.021414136912893259295449693234;
    w(86) = 0.021107350591688713643523847922;
    w(87) = 0.020787750081531811812652137291;
    w(88) = 0.020455529410639508279497065713;
    w(89) = 0.020110890268880247225644623956;
    w(90) = 0.019754041885329183081815217323;
    w(91) = 0.019385200901246454628112623489;
    w(92) = 0.019004591238555646611148901045;
    w(93) = 0.018612443963902310429440419899;
    w(94) = 0.018208997148375106468721469154;
    w(95) = 0.017794495722974774231027912900;
    w(96) = 0.017369191329918731922164721250;
    w(97) = 0.016933342169871654545878815295;
    w(98) = 0.016487212845194879399346060358;
    w(99) = 0.016031074199309941802254151843;
    w(100) = 0.015565203152273955098532590263;
    w(101) = 0.015089882532666922992635733981;
    w(102) = 0.014605400905893418351737288079;
    w(103) = 0.014112052399003395774044161634;
    w(104) = 0.013610136522139249906034237534;
    w(105) = 0.013099957986718627426172681913;
    w(106) = 0.012581826520465013101514365424;
    w(107) = 0.012056056679400848183529562145;
    w(108) = 0.011522967656921087154811609735;
    w(109) = 0.0109828830900689757887996573761;
    w(110) = 0.0104361308631410052256731719977;
    w(111) = 0.0098830429087554914716648010900;
    w(112) = 0.0093239550065309714787536985834;
    w(113) = 0.0087592065795403145773316804234;
    w(114) = 0.0081891404887415730817235884719;
    w(115) = 0.0076141028256526859356393930849;
    w(116) = 0.0070344427036681608755685893033;
    w(117) = 0.0064505120486899171845442463869;
    w(118) = 0.0058626653903523901033648343751;
    w(119) = 0.0052712596565634400891303815906;
    w(120) = 0.0046766539777779034772638165663;
    w(121) = 0.0040792095178254605327114733457;
    w(122) = 0.0034792893810051465908910894100;
    w(123) = 0.0028772587656289004082883197514;
    w(124) = 0.0022734860707492547802810840776;
    w(125) = 0.0016683488125171936761028862915;
    w(126) = 0.00106227668695384869596523598532;
    w(127) = 0.00045645726109586662791936519265;
 
  elseif ( n == 128 )

    x(1) = -0.9998248879471319144736081;
    x(2) = -0.9990774599773758950119878;
    x(3) = -0.9977332486255140198821574;
    x(4) = -0.9957927585349811868641612;
    x(5) = -0.9932571129002129353034372;
    x(6) = -0.9901278184917343833379303;
    x(7) = -0.9864067427245862088712355;
    x(8) = -0.9820961084357185360247656;
    x(9) = -0.9771984914639073871653744;
    x(10) = -0.9717168187471365809043384;
    x(11) = -0.9656543664319652686458290;
    x(12) = -0.9590147578536999280989185;
    x(13) = -0.9518019613412643862177963;
    x(14) = -0.9440202878302201821211114;
    x(15) = -0.9356743882779163757831268;
    x(16) = -0.9267692508789478433346245;
    x(17) = -0.9173101980809605370364836;
    x(18) = -0.9073028834017568139214859;
    x(19) = -0.8967532880491581843864474;
    x(20) = -0.8856677173453972174082924;
    x(21) = -0.8740527969580317986954180;
    x(22) = -0.8619154689395484605906323;
    x(23) = -0.8492629875779689691636001;
    x(24) = -0.8361029150609068471168753;
    x(25) = -0.8224431169556438424645942;
    x(26) = -0.8082917575079136601196422;
    x(27) = -0.7936572947621932902433329;
    x(28) = -0.7785484755064119668504941;
    x(29) = -0.7629743300440947227797691;
    x(30) = -0.7469441667970619811698824;
    x(31) = -0.7304675667419088064717369;
    x(32) = -0.7135543776835874133438599;
    x(33) = -0.6962147083695143323850866;
    x(34) = -0.6784589224477192593677557;
    x(35) = -0.6602976322726460521059468;
    x(36) = -0.6417416925623075571535249;
    x(37) = -0.6228021939105849107615396;
    x(38) = -0.6034904561585486242035732;
    x(39) = -0.5838180216287630895500389;
    x(40) = -0.5637966482266180839144308;
    x(41) = -0.5434383024128103634441936;
    x(42) = -0.5227551520511754784539479;
    x(43) = -0.5017595591361444642896063;
    x(44) = -0.4804640724041720258582757;
    x(45) = -0.4588814198335521954490891;
    x(46) = -0.4370245010371041629370429;
    x(47) = -0.4149063795522750154922739;
    x(48) = -0.3925402750332674427356482;
    x(49) = -0.3699395553498590266165917;
    x(50) = -0.3471177285976355084261628;
    x(51) = -0.3240884350244133751832523;
    x(52) = -0.3008654388776772026671541;
    x(53) = -0.2774626201779044028062316;
    x(54) = -0.2538939664226943208556180;
    x(55) = -0.2301735642266599864109866;
    x(56) = -0.2063155909020792171540580;
    x(57) = -0.1823343059853371824103826;
    x(58) = -0.1582440427142249339974755;
    x(59) = -0.1340591994611877851175753;
    x(60) = -0.1097942311276437466729747;
    x(61) = -0.0854636405045154986364980;
    x(62) = -0.0610819696041395681037870;
    x(63) = -0.0366637909687334933302153;
    x(64) = -0.0122236989606157641980521;
    x(65) = 0.0122236989606157641980521;
    x(66) = 0.0366637909687334933302153;
    x(67) = 0.0610819696041395681037870;
    x(68) = 0.0854636405045154986364980;
    x(69) = 0.1097942311276437466729747;
    x(70) = 0.1340591994611877851175753;
    x(71) = 0.1582440427142249339974755;
    x(72) = 0.1823343059853371824103826;
    x(73) = 0.2063155909020792171540580;
    x(74) = 0.2301735642266599864109866;
    x(75) = 0.2538939664226943208556180;
    x(76) = 0.2774626201779044028062316;
    x(77) = 0.3008654388776772026671541;
    x(78) = 0.3240884350244133751832523;
    x(79) = 0.3471177285976355084261628;
    x(80) = 0.3699395553498590266165917;
    x(81) = 0.3925402750332674427356482;
    x(82) = 0.4149063795522750154922739;
    x(83) = 0.4370245010371041629370429;
    x(84) = 0.4588814198335521954490891;
    x(85) = 0.4804640724041720258582757;
    x(86) = 0.5017595591361444642896063;
    x(87) = 0.5227551520511754784539479;
    x(88) = 0.5434383024128103634441936;
    x(89) = 0.5637966482266180839144308;
    x(90) = 0.5838180216287630895500389;
    x(91) = 0.6034904561585486242035732;
    x(92) = 0.6228021939105849107615396;
    x(93) = 0.6417416925623075571535249;
    x(94) = 0.6602976322726460521059468;
    x(95) = 0.6784589224477192593677557;
    x(96) = 0.6962147083695143323850866;
    x(97) = 0.7135543776835874133438599;
    x(98) = 0.7304675667419088064717369;
    x(99) = 0.7469441667970619811698824;
    x(100) = 0.7629743300440947227797691;
    x(101) = 0.7785484755064119668504941;
    x(102) = 0.7936572947621932902433329;
    x(103) = 0.8082917575079136601196422;
    x(104) = 0.8224431169556438424645942;
    x(105) = 0.8361029150609068471168753;
    x(106) = 0.8492629875779689691636001;
    x(107) = 0.8619154689395484605906323;
    x(108) = 0.8740527969580317986954180;
    x(109) = 0.8856677173453972174082924;
    x(110) = 0.8967532880491581843864474;
    x(111) = 0.9073028834017568139214859;
    x(112) = 0.9173101980809605370364836;
    x(113) = 0.926769250878947843334625;
    x(114) = 0.935674388277916375783127;
    x(115) = 0.944020287830220182121111;
    x(116) = 0.951801961341264386217796;
    x(117) = 0.959014757853699928098919;
    x(118) = 0.965654366431965268645829;
    x(119) = 0.971716818747136580904338;
    x(120) = 0.977198491463907387165374;
    x(121) = 0.982096108435718536024766;
    x(122) = 0.986406742724586208871236;
    x(123) = 0.990127818491734383337930;
    x(124) = 0.993257112900212935303437;
    x(125) = 0.995792758534981186864161;
    x(126) = 0.997733248625514019882157;
    x(127) = 0.999077459977375895011988;
    x(128) = 0.999824887947131914473608;

    w(1) = 0.00044938096029209037639429223999;
    w(2) = 0.0010458126793403487793128516001;
    w(3) = 0.0016425030186690295387908755948;
    w(4) = 0.0022382884309626187436220542727;
    w(5) = 0.0028327514714579910952857346468;
    w(6) = 0.0034255260409102157743377846601;
    w(7) = 0.0040162549837386423131943434863;
    w(8) = 0.0046045842567029551182905419803;
    w(9) = 0.0051901618326763302050707671348;
    w(10) = 0.0057726375428656985893346176261;
    w(11) = 0.006351663161707188787214327826;
    w(12) = 0.006926892566898813563426670360;
    w(13) = 0.007497981925634728687671962688;
    w(14) = 0.008064589890486057972928598698;
    w(15) = 0.008626377798616749704978843782;
    w(16) = 0.009183009871660874334478743688;
    w(17) = 0.009734153415006805863548266094;
    w(18) = 0.010279479015832157133215340326;
    w(19) = 0.010818660739503076247659646277;
    w(20) = 0.011351376324080416693281668453;
    w(21) = 0.011877307372740279575891106926;
    w(22) = 0.012396139543950922968821728197;
    w(23) = 0.012907562739267347220442834004;
    w(24) = 0.013411271288616332314488951616;
    w(25) = 0.013906964132951985244288007396;
    w(26) = 0.014394345004166846176823892009;
    w(27) = 0.014873122602147314252385498520;
    w(28) = 0.015343010768865144085990853741;
    w(29) = 0.015803728659399346858965631687;
    w(30) = 0.016255000909785187051657456477;
    w(31) = 0.016696557801589204589091507954;
    w(32) = 0.017128135423111376830680987619;
    w(33) = 0.017549475827117704648706925634;
    w(34) = 0.017960327185008685940196927525;
    w(35) = 0.018360443937331343221289290991;
    w(36) = 0.018749586940544708650919548474;
    w(37) = 0.019127523609950945486518531668;
    w(38) = 0.019494028058706602823021918681;
    w(39) = 0.019848881232830862219944413265;
    w(40) = 0.020191871042130041180673158406;
    w(41) = 0.020522792486960069432284967788;
    w(42) = 0.020841447780751149113583948423;
    w(43) = 0.021147646468221348537019535180;
    w(44) = 0.021441205539208460137111853878;
    w(45) = 0.021721949538052075375260957768;
    w(46) = 0.021989710668460491434122106599;
    w(47) = 0.022244328893799765104629133607;
    w(48) = 0.022485652032744966871824603941;
    w(49) = 0.022713535850236461309712635923;
    w(50) = 0.022927844143686846920410987209;
    w(51) = 0.023128448824387027879297902403;
    w(52) = 0.023315229994062760122415671273;
    w(53) = 0.023488076016535913153025273282;
    w(54) = 0.023646883584447615143651392303;
    w(55) = 0.023791557781003400638780709885;
    w(56) = 0.023922012136703455672450408817;
    w(57) = 0.024038168681024052637587316820;
    w(58) = 0.024139957989019284997716653890;
    w(59) = 0.024227319222815248120093308442;
    w(60) = 0.024300200167971865323442606364;
    w(61) = 0.024358557264690625853268520246;
    w(62) = 0.024402355633849582093297989694;
    w(63) = 0.02443156909785004505484856143;
    w(64) = 0.02444618019626251821132585261;
    w(65) = 0.02444618019626251821132585261;
    w(66) = 0.02443156909785004505484856143;
    w(67) = 0.024402355633849582093297989694;
    w(68) = 0.024358557264690625853268520246;
    w(69) = 0.024300200167971865323442606364;
    w(70) = 0.024227319222815248120093308442;
    w(71) = 0.024139957989019284997716653890;
    w(72) = 0.024038168681024052637587316820;
    w(73) = 0.023922012136703455672450408817;
    w(74) = 0.023791557781003400638780709885;
    w(75) = 0.023646883584447615143651392303;
    w(76) = 0.023488076016535913153025273282;
    w(77) = 0.023315229994062760122415671273;
    w(78) = 0.023128448824387027879297902403;
    w(79) = 0.022927844143686846920410987209;
    w(80) = 0.022713535850236461309712635923;
    w(81) = 0.022485652032744966871824603941;
    w(82) = 0.022244328893799765104629133607;
    w(83) = 0.021989710668460491434122106599;
    w(84) = 0.021721949538052075375260957768;
    w(85) = 0.021441205539208460137111853878;
    w(86) = 0.021147646468221348537019535180;
    w(87) = 0.020841447780751149113583948423;
    w(88) = 0.020522792486960069432284967788;
    w(89) = 0.020191871042130041180673158406;
    w(90) = 0.019848881232830862219944413265;
    w(91) = 0.019494028058706602823021918681;
    w(92) = 0.019127523609950945486518531668;
    w(93) = 0.018749586940544708650919548474;
    w(94) = 0.018360443937331343221289290991;
    w(95) = 0.017960327185008685940196927525;
    w(96) = 0.017549475827117704648706925634;
    w(97) = 0.017128135423111376830680987619;
    w(98) = 0.016696557801589204589091507954;
    w(99) = 0.016255000909785187051657456477;
    w(100) = 0.015803728659399346858965631687;
    w(101) = 0.015343010768865144085990853741;
    w(102) = 0.014873122602147314252385498520;
    w(103) = 0.014394345004166846176823892009;
    w(104) = 0.013906964132951985244288007396;
    w(105) = 0.013411271288616332314488951616;
    w(106) = 0.012907562739267347220442834004;
    w(107) = 0.012396139543950922968821728197;
    w(108) = 0.011877307372740279575891106926;
    w(109) = 0.011351376324080416693281668453;
    w(110) = 0.010818660739503076247659646277;
    w(111) = 0.010279479015832157133215340326;
    w(112) = 0.009734153415006805863548266094;
    w(113) = 0.009183009871660874334478743688;
    w(114) = 0.008626377798616749704978843782;
    w(115) = 0.008064589890486057972928598698;
    w(116) = 0.007497981925634728687671962688;
    w(117) = 0.006926892566898813563426670360;
    w(118) = 0.006351663161707188787214327826;
    w(119) = 0.0057726375428656985893346176261;
    w(120) = 0.0051901618326763302050707671348;
    w(121) = 0.0046045842567029551182905419803;
    w(122) = 0.0040162549837386423131943434863;
    w(123) = 0.0034255260409102157743377846601;
    w(124) = 0.0028327514714579910952857346468;
    w(125) = 0.0022382884309626187436220542727;
    w(126) = 0.0016425030186690295387908755948;
    w(127) = 0.0010458126793403487793128516001;
    w(128) = 0.00044938096029209037639429223999;

  elseif ( n == 129 )

    x(1) = -0.9998275818477487191077441;
    x(2) = -0.9990916504696409986514389;
    x(3) = -0.9977681080525852721429460;
    x(4) = -0.9958574393142831982149111;
    x(5) = -0.9933607326210712814854011;
    x(6) = -0.9902794486488178389207689;
    x(7) = -0.9866153978313475022005761;
    x(8) = -0.9823707352517413115507418;
    x(9) = -0.9775479582993672474447814;
    x(10) = -0.9721499048427034297274163;
    x(11) = -0.9661797514202097197778763;
    x(12) = -0.9596410113101918904168119;
    x(13) = -0.9525375324342090471027732;
    x(14) = -0.9448734950776734726784764;
    x(15) = -0.9366534094216514605284616;
    x(16) = -0.9278821128840036204317296;
    x(17) = -0.9185647672698286252225115;
    x(18) = -0.9087068557320696331245539;
    x(19) = -0.8983141795436338850435985;
    x(20) = -0.8873928546826803665034968;
    x(21) = -0.8759493082329433892035217;
    x(22) = -0.8639902746011257878940216;
    x(23) = -0.8515227915535356930243826;
    x(24) = -0.8385541960742664442975407;
    x(25) = -0.8250921200473358809210133;
    x(26) = -0.8111444857653120742087717;
    x(27) = -0.7967195012670592680339606;
    x(28) = -0.7818256555073413245387500;
    x(29) = -0.7664717133611208816717785;
    x(30) = -0.7506667104654910227632368;
    x(31) = -0.7344199479022727047791516;
    x(32) = -0.7177409867244055767721220;
    x(33) = -0.7006396423293521790044710;
    x(34) = -0.6831259786828258512462248;
    x(35) = -0.6652103023962409818802202;
    x(36) = -0.6469031566613704719753373;
    x(37) = -0.6282153150457794374886895;
    x(38) = -0.6091577751526861909563306;
    x(39) = -0.5897417521489813916767844;
    x(40) = -0.5699786721652138894754096;
    x(41) = -0.5498801655714271702189358;
    x(42) = -0.5294580601328034000099406;
    x(43) = -0.5087243740491428186199463;
    x(44) = -0.4876913088822746111853066;
    x(45) = -0.4663712423755613514331869;
    x(46) = -0.4447767211697226217818454;
    x(47) = -0.4229204534192644388475065;
    x(48) = -0.4008153013138596117693121;
    x(49) = -0.3784742735090801012801265;
    x(50) = -0.3559105174709357969672656;
    x(51) = -0.3331373117387248575049982;
    x(52) = -0.3101680581107488341147318;
    x(53) = -0.2870162737574911929568755;
    x(54) = -0.2636955832669005409666949;
    x(55) = -0.2402197106264598167721148;
    x(56) = -0.2166024711467599103221439;
    x(57) = -0.1928577633313305998663880;
    x(58) = -0.1689995606975133227390302;
    x(59) = -0.1450419035531891084328306;
    x(60) = -0.1209988907342009817690539;
    x(61) = -0.0968846713073332753086909;
    x(62) = -0.0727134362437305599118207;
    x(63) = -0.0484994100676562986191764;
    x(64) = -0.0242568424855058415749954;
    x(65) = 0.0000000000000000000000000;
    x(66) = 0.0242568424855058415749954;
    x(67) = 0.0484994100676562986191764;
    x(68) = 0.0727134362437305599118207;
    x(69) = 0.0968846713073332753086909;
    x(70) = 0.1209988907342009817690539;
    x(71) = 0.1450419035531891084328306;
    x(72) = 0.1689995606975133227390302;
    x(73) = 0.1928577633313305998663880;
    x(74) = 0.2166024711467599103221439;
    x(75) = 0.2402197106264598167721148;
    x(76) = 0.2636955832669005409666949;
    x(77) = 0.2870162737574911929568755;
    x(78) = 0.3101680581107488341147318;
    x(79) = 0.3331373117387248575049982;
    x(80) = 0.3559105174709357969672656;
    x(81) = 0.3784742735090801012801265;
    x(82) = 0.4008153013138596117693121;
    x(83) = 0.4229204534192644388475065;
    x(84) = 0.4447767211697226217818454;
    x(85) = 0.4663712423755613514331869;
    x(86) = 0.4876913088822746111853066;
    x(87) = 0.5087243740491428186199463;
    x(88) = 0.5294580601328034000099406;
    x(89) = 0.5498801655714271702189358;
    x(90) = 0.5699786721652138894754096;
    x(91) = 0.5897417521489813916767844;
    x(92) = 0.6091577751526861909563306;
    x(93) = 0.6282153150457794374886895;
    x(94) = 0.6469031566613704719753373;
    x(95) = 0.6652103023962409818802202;
    x(96) = 0.6831259786828258512462248;
    x(97) = 0.7006396423293521790044710;
    x(98) = 0.7177409867244055767721220;
    x(99) = 0.7344199479022727047791516;
    x(100) = 0.7506667104654910227632368;
    x(101) = 0.7664717133611208816717785;
    x(102) = 0.7818256555073413245387500;
    x(103) = 0.7967195012670592680339606;
    x(104) = 0.8111444857653120742087717;
    x(105) = 0.8250921200473358809210133;
    x(106) = 0.8385541960742664442975407;
    x(107) = 0.8515227915535356930243826;
    x(108) = 0.8639902746011257878940216;
    x(109) = 0.875949308232943389203522;
    x(110) = 0.887392854682680366503497;
    x(111) = 0.898314179543633885043599;
    x(112) = 0.908706855732069633124554;
    x(113) = 0.918564767269828625222511;
    x(114) = 0.927882112884003620431730;
    x(115) = 0.936653409421651460528462;
    x(116) = 0.944873495077673472678476;
    x(117) = 0.952537532434209047102773;
    x(118) = 0.959641011310191890416812;
    x(119) = 0.966179751420209719777876;
    x(120) = 0.972149904842703429727416;
    x(121) = 0.977547958299367247444781;
    x(122) = 0.982370735251741311550742;
    x(123) = 0.986615397831347502200576;
    x(124) = 0.990279448648817838920769;
    x(125) = 0.993360732621071281485401;
    x(126) = 0.995857439314283198214911;
    x(127) = 0.997768108052585272142946;
    x(128) = 0.999091650469640998651439;
    x(129) = 0.999827581847748719107744;

    w(1) = 0.00044246794182939296923668005717;
    w(2) = 0.00102972844619622394463273519315;
    w(3) = 0.0016172530556785534682413679271;
    w(4) = 0.0022039015180966937075786419741;
    w(5) = 0.0027892681877797554940944677057;
    w(6) = 0.0033729979506246246117755709288;
    w(7) = 0.0039547444682113562172392974765;
    w(8) = 0.0045341644298525434513226874954;
    w(9) = 0.0051109164669246267289761565766;
    w(10) = 0.0056846609912469045788016012203;
    w(11) = 0.0062550602724461408889348709586;
    w(12) = 0.0068217785893519121070498527769;
    w(13) = 0.0073844824072454014447165055698;
    w(14) = 0.0079428405646668029041114107832;
    w(15) = 0.0084965244635723279730542832506;
    w(16) = 0.0090452082602137316404219313819;
    w(17) = 0.0095885690555104190787301294510;
    w(18) = 0.0101262870842733548093160774580;
    w(19) = 0.0106580459029055185304204093001;
    w(20) = 0.0111835325753305049735380697538;
    w(21) = 0.011702437856964778185746436834;
    w(22) = 0.012214456376582979416221105914;
    w(23) = 0.012719286815944623465099036330;
    w(24) = 0.013216632087061724231482387345;
    w(25) = 0.013706199506993971244060563234;
    w(26) = 0.014187700970062900419317230938;
    w(27) = 0.014660853117380060971041027493;
    w(28) = 0.015125377503587024690403432771;
    w(29) = 0.015581000760707523415881287558;
    w(30) = 0.016027454759014214436403950465;
    w(31) = 0.016464476764814667467169189640;
    w(32) = 0.016891809595063204177526208819;
    w(33) = 0.017309201768707240731293596444;
    w(34) = 0.017716407654678809269702031810;
    w(35) = 0.018113187616443980503999783812;
    w(36) = 0.018499308153024985727791918518;
    w(37) = 0.018874542036411948181617592169;
    w(38) = 0.019238668445283284085199492202;
    w(39) = 0.019591473094956024580283987216;
    w(40) = 0.019932748363489542089706675388;
    w(41) = 0.020262293413868438317104423081;
    w(42) = 0.020579914312192665948185517085;
    w(43) = 0.020885424141805311409990024684;
    w(44) = 0.021178643113290860912881038703;
    w(45) = 0.021459398670279205389981598196;
    w(46) = 0.021727525590993110687305178710;
    w(47) = 0.021982866085479386179554968899;
    w(48) = 0.022225269888466526554736910919;
    w(49) = 0.022454594347794176432066564511;
    w(50) = 0.022670704508362374313093970958;
    w(51) = 0.022873473191551169638592083492;
    w(52) = 0.023062781070063872924670495006;
    w(53) = 0.023238516738149892544490435771;
    w(54) = 0.023400576777165831146714346635;
    w(55) = 0.023548865816436258377269094263;
    w(56) = 0.023683296589378342897341543485;
    w(57) = 0.023803789984857314051325299744;
    w(58) = 0.023910275093742530302367230296;
    w(59) = 0.024002689250636756075547029720;
    w(60) = 0.024080978070754089272959634041;
    w(61) = 0.024145095481924836783843156014;
    w(62) = 0.024195003751708503129818111597;
    w(63) = 0.024230673509598936275508460625;
    w(64) = 0.024252083764308562906498864071;
    w(65) = 0.02425922191612154143202867472;
    w(66) = 0.024252083764308562906498864071;
    w(67) = 0.024230673509598936275508460625;
    w(68) = 0.024195003751708503129818111597;
    w(69) = 0.024145095481924836783843156014;
    w(70) = 0.024080978070754089272959634041;
    w(71) = 0.024002689250636756075547029720;
    w(72) = 0.023910275093742530302367230296;
    w(73) = 0.023803789984857314051325299744;
    w(74) = 0.023683296589378342897341543485;
    w(75) = 0.023548865816436258377269094263;
    w(76) = 0.023400576777165831146714346635;
    w(77) = 0.023238516738149892544490435771;
    w(78) = 0.023062781070063872924670495006;
    w(79) = 0.022873473191551169638592083492;
    w(80) = 0.022670704508362374313093970958;
    w(81) = 0.022454594347794176432066564511;
    w(82) = 0.022225269888466526554736910919;
    w(83) = 0.021982866085479386179554968899;
    w(84) = 0.021727525590993110687305178710;
    w(85) = 0.021459398670279205389981598196;
    w(86) = 0.021178643113290860912881038703;
    w(87) = 0.020885424141805311409990024684;
    w(88) = 0.020579914312192665948185517085;
    w(89) = 0.020262293413868438317104423081;
    w(90) = 0.019932748363489542089706675388;
    w(91) = 0.019591473094956024580283987216;
    w(92) = 0.019238668445283284085199492202;
    w(93) = 0.018874542036411948181617592169;
    w(94) = 0.018499308153024985727791918518;
    w(95) = 0.018113187616443980503999783812;
    w(96) = 0.017716407654678809269702031810;
    w(97) = 0.017309201768707240731293596444;
    w(98) = 0.016891809595063204177526208819;
    w(99) = 0.016464476764814667467169189640;
    w(100) = 0.016027454759014214436403950465;
    w(101) = 0.015581000760707523415881287558;
    w(102) = 0.015125377503587024690403432771;
    w(103) = 0.014660853117380060971041027493;
    w(104) = 0.014187700970062900419317230938;
    w(105) = 0.013706199506993971244060563234;
    w(106) = 0.013216632087061724231482387345;
    w(107) = 0.012719286815944623465099036330;
    w(108) = 0.012214456376582979416221105914;
    w(109) = 0.011702437856964778185746436834;
    w(110) = 0.0111835325753305049735380697538;
    w(111) = 0.0106580459029055185304204093001;
    w(112) = 0.0101262870842733548093160774580;
    w(113) = 0.0095885690555104190787301294510;
    w(114) = 0.0090452082602137316404219313819;
    w(115) = 0.0084965244635723279730542832506;
    w(116) = 0.0079428405646668029041114107832;
    w(117) = 0.0073844824072454014447165055698;
    w(118) = 0.0068217785893519121070498527769;
    w(119) = 0.0062550602724461408889348709586;
    w(120) = 0.0056846609912469045788016012203;
    w(121) = 0.0051109164669246267289761565766;
    w(122) = 0.0045341644298525434513226874954;
    w(123) = 0.0039547444682113562172392974765;
    w(124) = 0.0033729979506246246117755709288;
    w(125) = 0.0027892681877797554940944677057;
    w(126) = 0.0022039015180966937075786419741;
    w(127) = 0.0016172530556785534682413679271;
    w(128) = 0.00102972844619622394463273519315;
    w(129) = 0.00044246794182939296923668005717;

  elseif ( n == 255 )

    x(1) = -0.999955705317563751730191;
    x(2) = -0.999766621312000569367063;
    x(3) = -0.999426474680169959344386;
    x(4) = -0.998935241284654635142155;
    x(5) = -0.998292986136967889228248;
    x(6) = -0.997499804126615814044844;
    x(7) = -0.996555814435198617028738;
    x(8) = -0.995461159480026294089975;
    x(9) = -0.994216004616630164799381;
    x(10) = -0.992820538021989138984811;
    x(11) = -0.991274970630385567164523;
    x(12) = -0.989579536085920123498574;
    x(13) = -0.987734490699732356281248;
    x(14) = -0.985740113407419277752900;
    x(15) = -0.983596705724776358640192;
    x(16) = -0.981304591701017185126565;
    x(17) = -0.978864117869068155239121;
    x(18) = -0.976275653192735980815246;
    x(19) = -0.973539589010643617645393;
    x(20) = -0.970656338976880365477697;
    x(21) = -0.967626338998338798105523;
    x(22) = -0.964450047168726298761719;
    x(23) = -0.961127943699247839572910;
    x(24) = -0.957660530845962076295490;
    x(25) = -0.954048332833816317950921;
    x(26) = -0.950291895777368285733522;
    x(27) = -0.946391787598204251752103;
    x(28) = -0.942348597939064408301480;
    x(29) = -0.938162938074687317626793;
    x(30) = -0.933835440819386124349338;
    x(31) = -0.929366760431369935739045;
    x(32) = -0.924757572513824425220425;
    x(33) = -0.920008573912766315142721;
    x(34) = -0.915120482611686961035103;
    x(35) = -0.910094037623000801254172;
    x(36) = -0.904929998876314959753358;
    x(37) = -0.899629147103536800144342;
    x(38) = -0.894192283720836729335637;
    x(39) = -0.888620230707484040924981;
    x(40) = -0.882913830481574073645470;
    x(41) = -0.877073945772665439532627;
    x(42) = -0.871101459491346550796200;
    x(43) = -0.864997274595751144137121;
    x(44) = -0.858762313955042966785823;
    x(45) = -0.852397520209890250084237;
    x(46) = -0.845903855629951054143931;
    x(47) = -0.839282301968391021084600;
    x(48) = -0.832533860313455524647230;
    x(49) = -0.825659550937118650611534;
    x(50) = -0.818660413140831885432406;
    x(51) = -0.811537505098395829833580;
    x(52) = -0.804291903695978689734633;
    x(53) = -0.796924704369305728807154;
    x(54) = -0.789437020938044295117764;
    x(55) = -0.781829985437409458675147;
    x(56) = -0.774104747947015717207115;
    x(57) = -0.766262476417000644100858;
    x(58) = -0.758304356491446765092016;
    x(59) = -0.750231591329128358931528;
    x(60) = -0.742045401421610281838045;
    x(61) = -0.733747024408726316001889;
    x(62) = -0.725337714891464938687812;
    x(63) = -0.716818744242290800531501;
    x(64) = -0.708191400412930589382399;
    x(65) = -0.699456987739652339456557;
    x(66) = -0.690616826746067624571761;
    x(67) = -0.681672253943486448787259;
    x(68) = -0.672624621628855017806731;
    x(69) = -0.663475297680306939970658;
    x(70) = -0.654225665350358766508700;
    x(71) = -0.644877123056781136890077;
    x(72) = -0.635431084171177146547142;
    x(73) = -0.625888976805299900901619;
    x(74) = -0.616252243595141561442344;
    x(75) = -0.606522341482826526536576;
    x(76) = -0.596700741496341721653202;
    x(77) = -0.586788928527137300685706;
    x(78) = -0.576788401105631382036211;
    x(79) = -0.566700671174652760010815;
    x(80) = -0.556527263860855843833077;
    x(81) = -0.546269717244142383159817;
    x(82) = -0.535929582125124840335150;
    x(83) = -0.525508421790666565699453;
    x(84) = -0.515007811777534223035005;
    x(85) = -0.504429339634198197635551;
    x(86) = -0.493774604680816999489812;
    x(87) = -0.483045217767441948626854;
    x(88) = -0.472242801030478698742627;
    x(89) = -0.461368987647442418771401;
    x(90) = -0.450425421590043710043279;
    x(91) = -0.439413757375642589040685;
    x(92) = -0.428335659817108112494341;
    x(93) = -0.417192803771121462605751;
    x(94) = -0.405986873884960545511889;
    x(95) = -0.394719564341804385683361;
    x(96) = -0.383392578604595822734854;
    x(97) = -0.372007629158501235092510;
    x(98) = -0.360566437252006227074021;
    x(99) = -0.349070732636686422161576;
    x(100) = -0.337522253305692705554261;
    x(101) = -0.325922745230990453444769;
    x(102) = -0.314273962099392474845918;
    x(103) = -0.302577665047425574167140;
    x(104) = -0.290835622395070819082047;
    x(105) = -0.279049609378417768508970;
    x(106) = -0.267221407881273079721012;
    x(107) = -0.255352806165764071686080;
    x(108) = -0.243445598601977973686482;
    x(109) = -0.231501585396677734059116;
    x(110) = -0.219522572321135403508985;
    x(111) = -0.207510370438124240859625;
    x(112) = -0.195466795828110816293869;
    x(113) = -0.183393669314688508087976;
    x(114) = -0.171292816189293903533225;
    x(115) = -0.159166065935247723154292;
    x(116) = -0.147015251951161989456661;
    x(117) = -0.134842211273755257250625;
    x(118) = -0.122648784300117812092492;
    x(119) = -0.110436814509468826540991;
    x(120) = -0.098208148184447540736015;
    x(121) = -0.085964634131980604256000;
    x(122) = -0.073708123403767780288977;
    x(123) = -0.061440469016428270850728;
    x(124) = -0.049163525671349973093019;
    x(125) = -0.036879149474284021657652;
    x(126) = -0.024589197654727010541405;
    x(127) = -0.012295528285133320036860;
    x(128) = 0.000000000000000000000000;
    x(129) = 0.012295528285133320036860;
    x(130) = 0.024589197654727010541405;
    x(131) = 0.036879149474284021657652;
    x(132) = 0.049163525671349973093019;
    x(133) = 0.061440469016428270850728;
    x(134) = 0.073708123403767780288977;
    x(135) = 0.085964634131980604256000;
    x(136) = 0.098208148184447540736015;
    x(137) = 0.110436814509468826540991;
    x(138) = 0.122648784300117812092492;
    x(139) = 0.134842211273755257250625;
    x(140) = 0.147015251951161989456661;
    x(141) = 0.159166065935247723154292;
    x(142) = 0.171292816189293903533225;
    x(143) = 0.183393669314688508087976;
    x(144) = 0.195466795828110816293869;
    x(145) = 0.207510370438124240859625;
    x(146) = 0.219522572321135403508985;
    x(147) = 0.231501585396677734059116;
    x(148) = 0.243445598601977973686482;
    x(149) = 0.255352806165764071686080;
    x(150) = 0.267221407881273079721012;
    x(151) = 0.279049609378417768508970;
    x(152) = 0.290835622395070819082047;
    x(153) = 0.302577665047425574167140;
    x(154) = 0.314273962099392474845918;
    x(155) = 0.325922745230990453444769;
    x(156) = 0.337522253305692705554261;
    x(157) = 0.349070732636686422161576;
    x(158) = 0.360566437252006227074021;
    x(159) = 0.372007629158501235092510;
    x(160) = 0.383392578604595822734854;
    x(161) = 0.394719564341804385683361;
    x(162) = 0.405986873884960545511889;
    x(163) = 0.417192803771121462605751;
    x(164) = 0.428335659817108112494341;
    x(165) = 0.439413757375642589040685;
    x(166) = 0.450425421590043710043279;
    x(167) = 0.461368987647442418771401;
    x(168) = 0.472242801030478698742627;
    x(169) = 0.483045217767441948626854;
    x(170) = 0.493774604680816999489812;
    x(171) = 0.504429339634198197635551;
    x(172) = 0.515007811777534223035005;
    x(173) = 0.525508421790666565699453;
    x(174) = 0.535929582125124840335150;
    x(175) = 0.546269717244142383159817;
    x(176) = 0.556527263860855843833077;
    x(177) = 0.566700671174652760010815;
    x(178) = 0.576788401105631382036211;
    x(179) = 0.586788928527137300685706;
    x(180) = 0.596700741496341721653202;
    x(181) = 0.606522341482826526536576;
    x(182) = 0.616252243595141561442344;
    x(183) = 0.625888976805299900901619;
    x(184) = 0.635431084171177146547142;
    x(185) = 0.644877123056781136890077;
    x(186) = 0.654225665350358766508700;
    x(187) = 0.663475297680306939970658;
    x(188) = 0.672624621628855017806731;
    x(189) = 0.681672253943486448787259;
    x(190) = 0.690616826746067624571761;
    x(191) = 0.699456987739652339456557;
    x(192) = 0.708191400412930589382399;
    x(193) = 0.716818744242290800531501;
    x(194) = 0.725337714891464938687812;
    x(195) = 0.733747024408726316001889;
    x(196) = 0.742045401421610281838045;
    x(197) = 0.750231591329128358931528;
    x(198) = 0.758304356491446765092016;
    x(199) = 0.766262476417000644100858;
    x(200) = 0.774104747947015717207115;
    x(201) = 0.781829985437409458675147;
    x(202) = 0.789437020938044295117764;
    x(203) = 0.796924704369305728807154;
    x(204) = 0.804291903695978689734633;
    x(205) = 0.811537505098395829833580;
    x(206) = 0.818660413140831885432406;
    x(207) = 0.825659550937118650611534;
    x(208) = 0.832533860313455524647230;
    x(209) = 0.839282301968391021084600;
    x(210) = 0.845903855629951054143931;
    x(211) = 0.852397520209890250084237;
    x(212) = 0.858762313955042966785823;
    x(213) = 0.864997274595751144137121;
    x(214) = 0.871101459491346550796200;
    x(215) = 0.877073945772665439532627;
    x(216) = 0.882913830481574073645470;
    x(217) = 0.888620230707484040924981;
    x(218) = 0.894192283720836729335637;
    x(219) = 0.899629147103536800144342;
    x(220) = 0.904929998876314959753358;
    x(221) = 0.910094037623000801254172;
    x(222) = 0.915120482611686961035103;
    x(223) = 0.920008573912766315142721;
    x(224) = 0.924757572513824425220425;
    x(225) = 0.929366760431369935739045;
    x(226) = 0.933835440819386124349338;
    x(227) = 0.938162938074687317626793;
    x(228) = 0.942348597939064408301480;
    x(229) = 0.946391787598204251752103;
    x(230) = 0.950291895777368285733522;
    x(231) = 0.954048332833816317950921;
    x(232) = 0.957660530845962076295490;
    x(233) = 0.961127943699247839572910;
    x(234) = 0.964450047168726298761719;
    x(235) = 0.967626338998338798105523;
    x(236) = 0.970656338976880365477697;
    x(237) = 0.973539589010643617645393;
    x(238) = 0.976275653192735980815246;
    x(239) = 0.978864117869068155239121;
    x(240) = 0.981304591701017185126565;
    x(241) = 0.983596705724776358640192;
    x(242) = 0.985740113407419277752900;
    x(243) = 0.987734490699732356281248;
    x(244) = 0.989579536085920123498574;
    x(245) = 0.991274970630385567164523;
    x(246) = 0.992820538021989138984811;
    x(247) = 0.994216004616630164799381;
    x(248) = 0.995461159480026294089975;
    x(249) = 0.996555814435198617028738;
    x(250) = 0.997499804126615814044844;
    x(251) = 0.998292986136967889228248;
    x(252) = 0.998935241284654635142155;
    x(253) = 0.999426474680169959344386;
    x(254) = 0.999766621312000569367063;
    x(255) = 0.999955705317563751730191;

    w(1) = 0.00011367361999142272115645954414;
    w(2) = 0.00026459387119083065532790838855;
    w(3) = 0.00041569762526823913616284210066;
    w(4) = 0.00056675794564824918946626058353;
    w(5) = 0.00071773647800611087798371518325;
    w(6) = 0.00086860766611945667949717690640;
    w(7) = 0.00101934797642732530281229369360;
    w(8) = 0.0011699343729388079886897709773;
    w(9) = 0.0013203439900221692090523602144;
    w(10) = 0.0014705540427783843160097204304;
    w(11) = 0.0016205417990415653896921100325;
    w(12) = 0.0017702845706603213070421243905;
    w(13) = 0.0019197597117132050055085980675;
    w(14) = 0.0020689446195015801533643667413;
    w(15) = 0.0022178167367540171700373764020;
    w(16) = 0.0023663535543962867157201855305;
    w(17) = 0.0025145326145997073931298921370;
    w(18) = 0.0026623315139717112732749157331;
    w(19) = 0.0028097279068204407457332299361;
    w(20) = 0.0029566995084575002760043344138;
    w(21) = 0.0031032240985191112621977893133;
    w(22) = 0.0032492795242943133198690930777;
    w(23) = 0.0033948437040533928255056951665;
    w(24) = 0.0035398946303722552150296713510;
    w(25) = 0.0036844103734499176530742235517;
    w(26) = 0.0038283690844171626400743524999;
    w(27) = 0.0039717489986349171988699773906;
    w(28) = 0.0041145284389812475901826468094;
    w(29) = 0.0042566858191260658425395494472;
    w(30) = 0.0043981996467927779838546384780;
    w(31) = 0.0045390485270061921259394035112;
    w(32) = 0.0046792111653260640506279893190;
    w(33) = 0.0048186663710656988918572043815;
    w(34) = 0.0049573930604950563104281084148;
    w(35) = 0.0050953702600278273039420404117;
    w(36) = 0.0052325771093919661294970523234;
    w(37) = 0.0053689928647831724787741258653;
    w(38) = 0.0055045969020008281904902120813;
    w(39) = 0.0056393687195659001929970994675;
    w(40) = 0.0057732879418203275712033691864;
    w(41) = 0.0059063343220074160130475409466;
    w(42) = 0.0060384877453327676663371666884;
    w(43) = 0.0061697282320052788060812561217;
    w(44) = 0.0063000359402577418025981070425;
    w(45) = 0.0064293911693465917826140832500;
    w(46) = 0.0065577743625303421548456356354;
    w(47) = 0.0066851661100262568757892743568;
    w(48) = 0.0068115471519448109954345674817;
    w(49) = 0.0069368983812014946719507501243;
    w(50) = 0.0070612008464055194979848418291;
    w(51) = 0.0071844357547249896530757997058;
    w(52) = 0.0073065844747281040972736443146;
    w(53) = 0.0074276285391999597581348419714;
    w(54) = 0.0075475496479345294426435656724;
    w(55) = 0.0076663296705013920315933272426;
    w(56) = 0.0077839506489867963897419914623;
    w(57) = 0.0079003948007086443529587296692;
    w(58) = 0.0080156445209049821352946484008;
    w(59) = 0.0081296823853955935356080649925;
    w(60) = 0.0082424911532162924158504385939;
    w(61) = 0.0083540537692255160718568405530;
    w(62) = 0.0084643533666828253227353760036;
    w(63) = 0.0085733732697989214067758505840;
    w(64) = 0.0086810969962567940901133439612;
    w(65) = 0.0087875082597036197689825483144;
    w(66) = 0.0088925909722130327769834298578;
    w(67) = 0.0089963292467173975949700110383;
    w(68) = 0.0090987073994097142025303711406;
    w(69) = 0.0091997099521147934060534414075;
    w(70) = 0.0092993216346293436285393234867;
    w(71) = 0.0093975273870306153500305317074;
    w(72) = 0.0094943123619532541442165010292;
    w(73) = 0.0095896619268340180657610209655;
    w(74) = 0.0096835616661240200035669970076;
    w(75) = 0.0097759973834681605268499842249;
    w(76) = 0.0098669551038514217128483481814;
    w(77) = 0.0099564210757116974565448593910;
    w(78) = 0.0100443817730188408231888789497;
    w(79) = 0.0101308238973196141129538950955;
    w(80) = 0.0102157343797482324629939488415;
    w(81) = 0.0102991003830021970147153502911;
    w(82) = 0.0103809093032831189224876935085;
    w(83) = 0.0104611487722022407735015844669;
    w(84) = 0.0105398066586503673262517188088;
    w(85) = 0.0106168710706319228563864391054;
    w(86) = 0.0106923303570628578226139809571;
    w(87) = 0.0107661731095321330311788312990;
    w(88) = 0.0108383881640265149842990798832;
    w(89) = 0.0109089646026184216450603134401;
    w(90) = 0.0109778917551165634377595759712;
    w(91) = 0.0110451592006791299277436662993;
    w(92) = 0.0111107567693892782875426356195;
    w(93) = 0.0111746745437926853557086684962;
    w(94) = 0.0112369028603969308303734810332;
    w(95) = 0.0112974323111324849102690558722;
    w(96) = 0.0113562537447750795009464486204;
    w(97) = 0.011413358268329247942299599697;
    w(98) = 0.011468737248372824084374355981;
    w(99) = 0.011522382312362197440930930031;
    w(100) = 0.011574285349898127083439539046;
    w(101) = 0.011624438513951922901227922331;
    w(102) = 0.011672834222051808845465154244;
    w(103) = 0.011719465157429288794653489478;
    w(104) = 0.011764324270125341726399410909;
    w(105) = 0.011807404778056278953532930501;
    w(106) = 0.011848700168039102281222824051;
    w(107) = 0.011888204196776208064673282076;
    w(108) = 0.011925910891799288293359117699;
    w(109) = 0.011961814552372285996633285380;
    w(110) = 0.011995909750353268455989686823;
    w(111) = 0.012028191331015087920350431142;
    w(112) = 0.012058654413824705751531083631;
    w(113) = 0.012087294393181062176578184854;
    w(114) = 0.012114106939111380091025793650;
    w(115) = 0.012139087997925797641334635250;
    w(116) = 0.012162233792830230614908682534;
    w(117) = 0.012183540824497371981177306326;
    w(118) = 0.012203005871595742256331865516;
    w(119) = 0.012220625991276710706457005806;
    w(120) = 0.012236398519619413758040249691;
    w(121) = 0.012250321072033503350218104906;
    w(122) = 0.012262391543619664338660618398;
    w(123) = 0.012272608109487846445745237751;
    w(124) = 0.012280969225033162644659793962;
    w(125) = 0.012287473626169412265336919908;
    w(126) = 0.012292120329520193516690694701;
    w(127) = 0.012294908632567576531532225710;
    w(128) = 0.01229583811375831445681490730;
    w(129) = 0.012294908632567576531532225710;
    w(130) = 0.012292120329520193516690694701;
    w(131) = 0.012287473626169412265336919908;
    w(132) = 0.012280969225033162644659793962;
    w(133) = 0.012272608109487846445745237751;
    w(134) = 0.012262391543619664338660618398;
    w(135) = 0.012250321072033503350218104906;
    w(136) = 0.012236398519619413758040249691;
    w(137) = 0.012220625991276710706457005806;
    w(138) = 0.012203005871595742256331865516;
    w(139) = 0.012183540824497371981177306326;
    w(140) = 0.012162233792830230614908682534;
    w(141) = 0.012139087997925797641334635250;
    w(142) = 0.012114106939111380091025793650;
    w(143) = 0.012087294393181062176578184854;
    w(144) = 0.012058654413824705751531083631;
    w(145) = 0.012028191331015087920350431142;
    w(146) = 0.011995909750353268455989686823;
    w(147) = 0.011961814552372285996633285380;
    w(148) = 0.011925910891799288293359117699;
    w(149) = 0.011888204196776208064673282076;
    w(150) = 0.011848700168039102281222824051;
    w(151) = 0.011807404778056278953532930501;
    w(152) = 0.011764324270125341726399410909;
    w(153) = 0.011719465157429288794653489478;
    w(154) = 0.011672834222051808845465154244;
    w(155) = 0.011624438513951922901227922331;
    w(156) = 0.011574285349898127083439539046;
    w(157) = 0.011522382312362197440930930031;
    w(158) = 0.011468737248372824084374355981;
    w(159) = 0.011413358268329247942299599697;
    w(160) = 0.0113562537447750795009464486204;
    w(161) = 0.0112974323111324849102690558722;
    w(162) = 0.0112369028603969308303734810332;
    w(163) = 0.0111746745437926853557086684962;
    w(164) = 0.0111107567693892782875426356195;
    w(165) = 0.0110451592006791299277436662993;
    w(166) = 0.0109778917551165634377595759712;
    w(167) = 0.0109089646026184216450603134401;
    w(168) = 0.0108383881640265149842990798832;
    w(169) = 0.0107661731095321330311788312990;
    w(170) = 0.0106923303570628578226139809571;
    w(171) = 0.0106168710706319228563864391054;
    w(172) = 0.0105398066586503673262517188088;
    w(173) = 0.0104611487722022407735015844669;
    w(174) = 0.0103809093032831189224876935085;
    w(175) = 0.0102991003830021970147153502911;
    w(176) = 0.0102157343797482324629939488415;
    w(177) = 0.0101308238973196141129538950955;
    w(178) = 0.0100443817730188408231888789497;
    w(179) = 0.0099564210757116974565448593910;
    w(180) = 0.0098669551038514217128483481814;
    w(181) = 0.0097759973834681605268499842249;
    w(182) = 0.0096835616661240200035669970076;
    w(183) = 0.0095896619268340180657610209655;
    w(184) = 0.0094943123619532541442165010292;
    w(185) = 0.0093975273870306153500305317074;
    w(186) = 0.0092993216346293436285393234867;
    w(187) = 0.0091997099521147934060534414075;
    w(188) = 0.0090987073994097142025303711406;
    w(189) = 0.0089963292467173975949700110383;
    w(190) = 0.0088925909722130327769834298578;
    w(191) = 0.0087875082597036197689825483144;
    w(192) = 0.0086810969962567940901133439612;
    w(193) = 0.0085733732697989214067758505840;
    w(194) = 0.0084643533666828253227353760036;
    w(195) = 0.0083540537692255160718568405530;
    w(196) = 0.0082424911532162924158504385939;
    w(197) = 0.0081296823853955935356080649925;
    w(198) = 0.0080156445209049821352946484008;
    w(199) = 0.0079003948007086443529587296692;
    w(200) = 0.0077839506489867963897419914623;
    w(201) = 0.0076663296705013920315933272426;
    w(202) = 0.0075475496479345294426435656724;
    w(203) = 0.0074276285391999597581348419714;
    w(204) = 0.0073065844747281040972736443146;
    w(205) = 0.0071844357547249896530757997058;
    w(206) = 0.0070612008464055194979848418291;
    w(207) = 0.0069368983812014946719507501243;
    w(208) = 0.0068115471519448109954345674817;
    w(209) = 0.0066851661100262568757892743568;
    w(210) = 0.0065577743625303421548456356354;
    w(211) = 0.0064293911693465917826140832500;
    w(212) = 0.0063000359402577418025981070425;
    w(213) = 0.0061697282320052788060812561217;
    w(214) = 0.0060384877453327676663371666884;
    w(215) = 0.0059063343220074160130475409466;
    w(216) = 0.0057732879418203275712033691864;
    w(217) = 0.0056393687195659001929970994675;
    w(218) = 0.0055045969020008281904902120813;
    w(219) = 0.0053689928647831724787741258653;
    w(220) = 0.0052325771093919661294970523234;
    w(221) = 0.0050953702600278273039420404117;
    w(222) = 0.0049573930604950563104281084148;
    w(223) = 0.0048186663710656988918572043815;
    w(224) = 0.0046792111653260640506279893190;
    w(225) = 0.0045390485270061921259394035112;
    w(226) = 0.0043981996467927779838546384780;
    w(227) = 0.0042566858191260658425395494472;
    w(228) = 0.0041145284389812475901826468094;
    w(229) = 0.0039717489986349171988699773906;
    w(230) = 0.0038283690844171626400743524999;
    w(231) = 0.0036844103734499176530742235517;
    w(232) = 0.0035398946303722552150296713510;
    w(233) = 0.0033948437040533928255056951665;
    w(234) = 0.0032492795242943133198690930777;
    w(235) = 0.0031032240985191112621977893133;
    w(236) = 0.0029566995084575002760043344138;
    w(237) = 0.0028097279068204407457332299361;
    w(238) = 0.0026623315139717112732749157331;
    w(239) = 0.0025145326145997073931298921370;
    w(240) = 0.0023663535543962867157201855305;
    w(241) = 0.0022178167367540171700373764020;
    w(242) = 0.0020689446195015801533643667413;
    w(243) = 0.0019197597117132050055085980675;
    w(244) = 0.0017702845706603213070421243905;
    w(245) = 0.0016205417990415653896921100325;
    w(246) = 0.0014705540427783843160097204304;
    w(247) = 0.0013203439900221692090523602144;
    w(248) = 0.0011699343729388079886897709773;
    w(249) = 0.00101934797642732530281229369360;
    w(250) = 0.00086860766611945667949717690640;
    w(251) = 0.00071773647800611087798371518325;
    w(252) = 0.00056675794564824918946626058353;
    w(253) = 0.00041569762526823913616284210066;
    w(254) = 0.00026459387119083065532790838855;
    w(255) = 0.00011367361999142272115645954414;

  elseif ( n == 256 )

    x(1) = -0.999956050018992230734801;
    x(2) = -0.999768437409263186104879;
    x(3) = -0.999430937466261408240854;
    x(4) = -0.998943525843408856555026;
    x(5) = -0.998306266473006444055500;
    x(6) = -0.997519252756720827563409;
    x(7) = -0.996582602023381540430504;
    x(8) = -0.995496454481096356592647;
    x(9) = -0.994260972922409664962878;
    x(10) = -0.992876342608822117143534;
    x(11) = -0.991342771207583086922189;
    x(12) = -0.989660488745065218319244;
    x(13) = -0.987829747564860608916488;
    x(14) = -0.985850822286125956479245;
    x(15) = -0.983724009760315496166686;
    x(16) = -0.981449629025464405769303;
    x(17) = -0.979028021257622038824238;
    x(18) = -0.976459549719234155621011;
    x(19) = -0.973744599704370405266079;
    x(20) = -0.970883578480743029320923;
    x(21) = -0.967876915228489454909004;
    x(22) = -0.964725060975706430932612;
    x(23) = -0.961428488530732144006407;
    x(24) = -0.957987692411178129365790;
    x(25) = -0.954403188769716241764448;
    x(26) = -0.950675515316628276363852;
    x(27) = -0.946805231239127481372052;
    x(28) = -0.942792917117462443183076;
    x(29) = -0.938639174837814804981926;
    x(30) = -0.934344627502003094292477;
    x(31) = -0.929909919334005641180246;
    x(32) = -0.925335715583316202872730;
    x(33) = -0.920622702425146495505047;
    x(34) = -0.915771586857490384526670;
    x(35) = -0.910783096595065011890907;
    x(36) = -0.905657979960144647082682;
    x(37) = -0.900397005770303544771620;
    x(38) = -0.895000963223084577441223;
    x(39) = -0.889470661777610888828677;
    x(40) = -0.883806931033158284859826;
    x(41) = -0.878010620604706543986435;
    x(42) = -0.872082599995488289130046;
    x(43) = -0.866023758466554519297515;
    x(44) = -0.859835004903376350696173;
    x(45) = -0.853517267679502965073036;
    x(46) = -0.847071494517296207187072;
    x(47) = -0.840498652345762713895068;
    x(48) = -0.833799727155504894348444;
    x(49) = -0.826975723850812514289093;
    x(50) = -0.820027666098917067403478;
    x(51) = -0.812956596176431543136410;
    x(52) = -0.805763574812998623257389;
    x(53) = -0.798449681032170758782543;
    x(54) = -0.791016011989545994546707;
    x(55) = -0.783463682808183820750670;
    x(56) = -0.775793826411325739132053;
    x(57) = -0.768007593352445635975891;
    x(58) = -0.760106151642655454941907;
    x(59) = -0.752090686575492059587530;
    x(60) = -0.743962400549111568455683;
    x(61) = -0.735722512885917834620373;
    x(62) = -0.727372259649652126586894;
    x(63) = -0.718912893459971448372640;
    x(64) = -0.710345683304543313394566;
    x(65) = -0.701671914348685159406084;
    x(66) = -0.692892887742576960105342;
    x(67) = -0.684009920426075953124877;
    x(68) = -0.675024344931162763855919;
    x(69) = -0.665937509182048559906408;
    x(70) = -0.656750776292973221887500;
    x(71) = -0.647465524363724862617016;
    x(72) = -0.638083146272911368668689;
    x(73) = -0.628605049469014975432210;
    x(74) = -0.619032655759261219430968;
    x(75) = -0.609367401096333939522311;
    x(76) = -0.599610735362968321730388;
    x(77) = -0.589764122154454300785786;
    x(78) = -0.579829038559082944921832;
    x(79) = -0.569806974936568759057668;
    x(80) = -0.559699434694481145136907;
    x(81) = -0.549507934062718557042427;
    x(82) = -0.539234001866059181127936;
    x(83) = -0.528879179294822261951476;
    x(84) = -0.518445019673674476221662;
    x(85) = -0.507933088228616036231925;
    x(86) = -0.497344961852181477119512;
    x(87) = -0.486682228866890350103621;
    x(88) = -0.475946488786983306390738;
    x(89) = -0.465139352078479313645570;
    x(90) = -0.454262439917589998774455;
    x(91) = -0.443317383947527357216926;
    x(92) = -0.432305826033741309953441;
    x(93) = -0.421229418017623824976812;
    x(94) = -0.410089821468716550006434;
    x(95) = -0.398888707435459127713463;
    x(96) = -0.387627756194515583637985;
    x(97) = -0.376308656998716390283056;
    x(98) = -0.364933107823654018533465;
    x(99) = -0.353502815112969989537790;
    x(100) = -0.342019493522371636480730;
    x(101) = -0.330484865662416976229187;
    x(102) = -0.318900661840106275631683;
    x(103) = -0.307268619799319076258610;
    x(104) = -0.295590484460135614563787;
    x(105) = -0.283868007657081741799766;
    x(106) = -0.272102947876336609505245;
    x(107) = -0.260297069991942541978561;
    x(108) = -0.248452145001056666833243;
    x(109) = -0.236569949758284018477508;
    x(110) = -0.224652266709131967147878;
    x(111) = -0.212700883622625957937040;
    x(112) = -0.200717593323126670068001;
    x(113) = -0.188704193421388826461504;
    x(114) = -0.176662486044901997403722;
    x(115) = -0.164594277567553849829285;
    x(116) = -0.152501378338656395374607;
    x(117) = -0.140385602411375885913025;
    x(118) = -0.128248767270607094742050;
    x(119) = -0.116092693560332804940735;
    x(120) = -0.103919204810509403639197;
    x(121) = -0.091730127163519552031146;
    x(122) = -0.079527289100232965903227;
    x(123) = -0.067312521165716400242290;
    x(124) = -0.055087655694633984104561;
    x(125) = -0.042854526536379098381242;
    x(126) = -0.030614968779979029366279;
    x(127) = -0.018370818478813665117926;
    x(128) = -0.006123912375189529501170;
    x(129) = 0.006123912375189529501170;
    x(130) = 0.018370818478813665117926;
    x(131) = 0.030614968779979029366279;
    x(132) = 0.042854526536379098381242;
    x(133) = 0.055087655694633984104561;
    x(134) = 0.067312521165716400242290;
    x(135) = 0.079527289100232965903227;
    x(136) = 0.091730127163519552031146;
    x(137) = 0.103919204810509403639197;
    x(138) = 0.116092693560332804940735;
    x(139) = 0.128248767270607094742050;
    x(140) = 0.140385602411375885913025;
    x(141) = 0.152501378338656395374607;
    x(142) = 0.164594277567553849829285;
    x(143) = 0.176662486044901997403722;
    x(144) = 0.188704193421388826461504;
    x(145) = 0.200717593323126670068001;
    x(146) = 0.212700883622625957937040;
    x(147) = 0.224652266709131967147878;
    x(148) = 0.236569949758284018477508;
    x(149) = 0.248452145001056666833243;
    x(150) = 0.260297069991942541978561;
    x(151) = 0.272102947876336609505245;
    x(152) = 0.283868007657081741799766;
    x(153) = 0.295590484460135614563787;
    x(154) = 0.307268619799319076258610;
    x(155) = 0.318900661840106275631683;
    x(156) = 0.330484865662416976229187;
    x(157) = 0.342019493522371636480730;
    x(158) = 0.353502815112969989537790;
    x(159) = 0.364933107823654018533465;
    x(160) = 0.376308656998716390283056;
    x(161) = 0.387627756194515583637985;
    x(162) = 0.398888707435459127713463;
    x(163) = 0.410089821468716550006434;
    x(164) = 0.421229418017623824976812;
    x(165) = 0.432305826033741309953441;
    x(166) = 0.443317383947527357216926;
    x(167) = 0.454262439917589998774455;
    x(168) = 0.465139352078479313645570;
    x(169) = 0.475946488786983306390738;
    x(170) = 0.486682228866890350103621;
    x(171) = 0.497344961852181477119512;
    x(172) = 0.507933088228616036231925;
    x(173) = 0.518445019673674476221662;
    x(174) = 0.528879179294822261951476;
    x(175) = 0.539234001866059181127936;
    x(176) = 0.549507934062718557042427;
    x(177) = 0.559699434694481145136907;
    x(178) = 0.569806974936568759057668;
    x(179) = 0.579829038559082944921832;
    x(180) = 0.589764122154454300785786;
    x(181) = 0.599610735362968321730388;
    x(182) = 0.609367401096333939522311;
    x(183) = 0.619032655759261219430968;
    x(184) = 0.628605049469014975432210;
    x(185) = 0.638083146272911368668689;
    x(186) = 0.647465524363724862617016;
    x(187) = 0.656750776292973221887500;
    x(188) = 0.665937509182048559906408;
    x(189) = 0.675024344931162763855919;
    x(190) = 0.684009920426075953124877;
    x(191) = 0.692892887742576960105342;
    x(192) = 0.701671914348685159406084;
    x(193) = 0.710345683304543313394566;
    x(194) = 0.718912893459971448372640;
    x(195) = 0.727372259649652126586894;
    x(196) = 0.735722512885917834620373;
    x(197) = 0.743962400549111568455683;
    x(198) = 0.752090686575492059587530;
    x(199) = 0.760106151642655454941907;
    x(200) = 0.768007593352445635975891;
    x(201) = 0.775793826411325739132053;
    x(202) = 0.783463682808183820750670;
    x(203) = 0.791016011989545994546707;
    x(204) = 0.798449681032170758782543;
    x(205) = 0.805763574812998623257389;
    x(206) = 0.812956596176431543136410;
    x(207) = 0.820027666098917067403478;
    x(208) = 0.826975723850812514289093;
    x(209) = 0.833799727155504894348444;
    x(210) = 0.840498652345762713895068;
    x(211) = 0.847071494517296207187072;
    x(212) = 0.853517267679502965073036;
    x(213) = 0.859835004903376350696173;
    x(214) = 0.866023758466554519297515;
    x(215) = 0.872082599995488289130046;
    x(216) = 0.878010620604706543986435;
    x(217) = 0.883806931033158284859826;
    x(218) = 0.889470661777610888828677;
    x(219) = 0.895000963223084577441223;
    x(220) = 0.900397005770303544771620;
    x(221) = 0.905657979960144647082682;
    x(222) = 0.910783096595065011890907;
    x(223) = 0.915771586857490384526670;
    x(224) = 0.920622702425146495505047;
    x(225) = 0.925335715583316202872730;
    x(226) = 0.929909919334005641180246;
    x(227) = 0.934344627502003094292477;
    x(228) = 0.938639174837814804981926;
    x(229) = 0.942792917117462443183076;
    x(230) = 0.946805231239127481372052;
    x(231) = 0.950675515316628276363852;
    x(232) = 0.954403188769716241764448;
    x(233) = 0.957987692411178129365790;
    x(234) = 0.961428488530732144006407;
    x(235) = 0.964725060975706430932612;
    x(236) = 0.967876915228489454909004;
    x(237) = 0.970883578480743029320923;
    x(238) = 0.973744599704370405266079;
    x(239) = 0.976459549719234155621011;
    x(240) = 0.979028021257622038824238;
    x(241) = 0.981449629025464405769303;
    x(242) = 0.983724009760315496166686;
    x(243) = 0.985850822286125956479245;
    x(244) = 0.987829747564860608916488;
    x(245) = 0.989660488745065218319244;
    x(246) = 0.991342771207583086922189;
    x(247) = 0.992876342608822117143534;
    x(248) = 0.994260972922409664962878;
    x(249) = 0.995496454481096356592647;
    x(250) = 0.996582602023381540430504;
    x(251) = 0.997519252756720827563409;
    x(252) = 0.998306266473006444055500;
    x(253) = 0.998943525843408856555026;
    x(254) = 0.999430937466261408240854;
    x(255) = 0.999768437409263186104879;
    x(256) = 0.999956050018992230734801;

    w(1) = 0.00011278901782227217551253887725;
    w(2) = 0.00026253494429644590628745756250;
    w(3) = 0.00041246325442617632843218583774;
    w(4) = 0.00056234895403140980281523674759;
    w(5) = 0.0007121541634733206669089891511;
    w(6) = 0.0008618537014200890378140934163;
    w(7) = 0.0010114243932084404526058128414;
    w(8) = 0.0011608435575677247239705981135;
    w(9) = 0.0013100886819025044578316804271;
    w(10) = 0.0014591373333107332010883864996;
    w(11) = 0.0016079671307493272424499395690;
    w(12) = 0.0017565557363307299936069145295;
    w(13) = 0.0019048808534997184044191411746;
    w(14) = 0.0020529202279661431745487818492;
    w(15) = 0.0022006516498399104996848834189;
    w(16) = 0.0023480529563273120170064609087;
    w(17) = 0.0024951020347037068508395354372;
    w(18) = 0.0026417768254274905641208292516;
    w(19) = 0.0027880553253277068805747610763;
    w(20) = 0.0029339155908297166460123254142;
    w(21) = 0.0030793357411993375832053528316;
    w(22) = 0.0032242939617941981570107134269;
    w(23) = 0.0033687685073155510120191062489;
    w(24) = 0.0035127377050563073309710549844;
    w(25) = 0.0036561799581425021693892413052;
    w(26) = 0.0037990737487662579981170192082;
    w(27) = 0.0039413976414088336277290349840;
    w(28) = 0.0040831302860526684085997759212;
    w(29) = 0.0042242504213815362723565049060;
    w(30) = 0.0043647368779680566815684200621;
    w(31) = 0.0045045685814478970686417923159;
    w(32) = 0.0046437245556800603139790923525;
    w(33) = 0.0047821839258926913729317340448;
    w(34) = 0.0049199259218138656695587765655;
    w(35) = 0.0050569298807868423875578160762;
    w(36) = 0.0051931752508692809303287536296;
    w(37) = 0.0053286415939159303170811114788;
    w(38) = 0.0054633085886443102775705318566;
    w(39) = 0.0055971560336829100775514452572;
    w(40) = 0.005730163850601437177384417555;
    w(41) = 0.005862312086922653060661598801;
    w(42) = 0.005993580919115338221127696870;
    w(43) = 0.006123950655567932542389081187;
    w(44) = 0.006253401739542401272063645975;
    w(45) = 0.006381914752107880570375164275;
    w(46) = 0.006509470415053660267809899951;
    w(47) = 0.006636049593781065044590038355;
    w(48) = 0.006761633300173798780927861108;
    w(49) = 0.006886202695446320346713323775;
    w(50) = 0.007009739092969822621234436194;
    w(51) = 0.007132223961075390071672422986;
    w(52) = 0.007253638925833913783829137214;
    w(53) = 0.007373965773812346437572440695;
    w(54) = 0.007493186454805883358599761133;
    w(55) = 0.007611283084545659461618719618;
    w(56) = 0.007728237947381555631110194958;
    w(57) = 0.007844033498939711866810316151;
    w(58) = 0.007958652368754348353613161227;
    w(59) = 0.008072077362873499500946974804;
    w(60) = 0.008184291466438269935619761004;
    w(61) = 0.008295277846235225425171412553;
    w(62) = 0.008405019853221535756180301698;
    w(63) = 0.008513501025022490693838354790;
    w(64) = 0.008620705088401014305368838410;
    w(65) = 0.008726615961698807140336632217;
    w(66) = 0.008831217757248750025318272685;
    w(67) = 0.008934494783758207548408417085;
    w(68) = 0.009036431548662873680227775572;
    w(69) = 0.009137012760450806402000472219;
    w(70) = 0.009236223330956302687378716714;
    w(71) = 0.009334048377623269712466014486;
    w(72) = 0.009430473225737752747352764482;
    w(73) = 0.009525483410629284811829685754;
    w(74) = 0.009619064679840727857162164401;
    w(75) = 0.009711202995266279964249670496;
    w(76) = 0.009801884535257327825498800250;
    w(77) = 0.009891095696695828602630683809;
    w(78) = 0.009978823097034910124733949495;
    w(79) = 0.010065053576306383309460978930;
    w(80) = 0.010149774199094865654634066042;
    w(81) = 0.010232972256478219656954857160;
    w(82) = 0.010314635267934015068260713997;
    w(83) = 0.010394750983211728997101725205;
    w(84) = 0.010473307384170403003569566927;
    w(85) = 0.010550292686581481517533575536;
    w(86) = 0.010625695341896561133961681801;
    w(87) = 0.010699504038979785603048200583;
    w(88) = 0.010771707705804626636653631927;
    w(89) = 0.010842295511114795995293477058;
    w(90) = 0.010911256866049039700796847788;
    w(91) = 0.010978581425729570637988203448;
    w(92) = 0.011044259090813901263517571044;
    w(93) = 0.011108280009009843630460815451;
    w(94) = 0.011170634576553449462710881938;
    w(95) = 0.011231313439649668572656802083;
    w(96) = 0.011290307495875509508367594121;
    w(97) = 0.011347607895545491941625714297;
    w(98) = 0.011403206043039185964847059552;
    w(99) = 0.011457093598090639152334392298;
    w(100) = 0.011509262477039497958586392439;
    w(101) = 0.011559704854043635772668656950;
    w(102) = 0.011608413162253105722084706677;
    w(103) = 0.011655380094945242121298939730;
    w(104) = 0.011700598606620740288189823359;
    w(105) = 0.011744061914060550305376732759;
    w(106) = 0.011785763497343426181690117627;
    w(107) = 0.011825697100823977771160737958;
    w(108) = 0.011863856734071078731904572908;
    w(109) = 0.011900236672766489754287204237;
    w(110) = 0.011934831459563562255873201696;
    w(111) = 0.011967635904905893729007282670;
    w(112) = 0.011998645087805811934536710071;
    w(113) = 0.012027854356582571161267533498;
    w(114) = 0.012055259329560149814347085327;
    w(115) = 0.012080855895724544655975183976;
    w(116) = 0.012104640215340463097757829736;
    w(117) = 0.012126608720527321034718492205;
    w(118) = 0.012146758115794459815559837664;
    w(119) = 0.012165085378535502061307291839;
    w(120) = 0.012181587759481772174047585032;
    w(121) = 0.012196262783114713518180974196;
    w(122) = 0.012209108248037240407514094371;
    w(123) = 0.012220122227303969191708737227;
    w(124) = 0.012229303068710278904146266083;
    w(125) = 0.012236649395040158109242574767;
    w(126) = 0.012242160104272800769728083260;
    w(127) = 0.012245834369747920142463857550;
    w(128) = 0.01224767164028975590407032649;
    w(129) = 0.01224767164028975590407032649;
    w(130) = 0.012245834369747920142463857550;
    w(131) = 0.012242160104272800769728083260;
    w(132) = 0.012236649395040158109242574767;
    w(133) = 0.012229303068710278904146266083;
    w(134) = 0.012220122227303969191708737227;
    w(135) = 0.012209108248037240407514094371;
    w(136) = 0.012196262783114713518180974196;
    w(137) = 0.012181587759481772174047585032;
    w(138) = 0.012165085378535502061307291839;
    w(139) = 0.012146758115794459815559837664;
    w(140) = 0.012126608720527321034718492205;
    w(141) = 0.012104640215340463097757829736;
    w(142) = 0.012080855895724544655975183976;
    w(143) = 0.012055259329560149814347085327;
    w(144) = 0.012027854356582571161267533498;
    w(145) = 0.011998645087805811934536710071;
    w(146) = 0.011967635904905893729007282670;
    w(147) = 0.011934831459563562255873201696;
    w(148) = 0.011900236672766489754287204237;
    w(149) = 0.011863856734071078731904572908;
    w(150) = 0.011825697100823977771160737958;
    w(151) = 0.011785763497343426181690117627;
    w(152) = 0.011744061914060550305376732759;
    w(153) = 0.011700598606620740288189823359;
    w(154) = 0.011655380094945242121298939730;
    w(155) = 0.011608413162253105722084706677;
    w(156) = 0.011559704854043635772668656950;
    w(157) = 0.011509262477039497958586392439;
    w(158) = 0.011457093598090639152334392298;
    w(159) = 0.011403206043039185964847059552;
    w(160) = 0.011347607895545491941625714297;
    w(161) = 0.011290307495875509508367594121;
    w(162) = 0.011231313439649668572656802083;
    w(163) = 0.011170634576553449462710881938;
    w(164) = 0.011108280009009843630460815451;
    w(165) = 0.011044259090813901263517571044;
    w(166) = 0.010978581425729570637988203448;
    w(167) = 0.010911256866049039700796847788;
    w(168) = 0.010842295511114795995293477058;
    w(169) = 0.010771707705804626636653631927;
    w(170) = 0.010699504038979785603048200583;
    w(171) = 0.010625695341896561133961681801;
    w(172) = 0.010550292686581481517533575536;
    w(173) = 0.010473307384170403003569566927;
    w(174) = 0.010394750983211728997101725205;
    w(175) = 0.010314635267934015068260713997;
    w(176) = 0.010232972256478219656954857160;
    w(177) = 0.010149774199094865654634066042;
    w(178) = 0.010065053576306383309460978930;
    w(179) = 0.009978823097034910124733949495;
    w(180) = 0.009891095696695828602630683809;
    w(181) = 0.009801884535257327825498800250;
    w(182) = 0.009711202995266279964249670496;
    w(183) = 0.009619064679840727857162164401;
    w(184) = 0.009525483410629284811829685754;
    w(185) = 0.009430473225737752747352764482;
    w(186) = 0.009334048377623269712466014486;
    w(187) = 0.009236223330956302687378716714;
    w(188) = 0.009137012760450806402000472219;
    w(189) = 0.009036431548662873680227775572;
    w(190) = 0.008934494783758207548408417085;
    w(191) = 0.008831217757248750025318272685;
    w(192) = 0.008726615961698807140336632217;
    w(193) = 0.008620705088401014305368838410;
    w(194) = 0.008513501025022490693838354790;
    w(195) = 0.008405019853221535756180301698;
    w(196) = 0.008295277846235225425171412553;
    w(197) = 0.008184291466438269935619761004;
    w(198) = 0.008072077362873499500946974804;
    w(199) = 0.007958652368754348353613161227;
    w(200) = 0.007844033498939711866810316151;
    w(201) = 0.007728237947381555631110194958;
    w(202) = 0.007611283084545659461618719618;
    w(203) = 0.007493186454805883358599761133;
    w(204) = 0.007373965773812346437572440695;
    w(205) = 0.007253638925833913783829137214;
    w(206) = 0.007132223961075390071672422986;
    w(207) = 0.007009739092969822621234436194;
    w(208) = 0.006886202695446320346713323775;
    w(209) = 0.006761633300173798780927861108;
    w(210) = 0.006636049593781065044590038355;
    w(211) = 0.006509470415053660267809899951;
    w(212) = 0.006381914752107880570375164275;
    w(213) = 0.006253401739542401272063645975;
    w(214) = 0.006123950655567932542389081187;
    w(215) = 0.005993580919115338221127696870;
    w(216) = 0.005862312086922653060661598801;
    w(217) = 0.005730163850601437177384417555;
    w(218) = 0.0055971560336829100775514452572;
    w(219) = 0.0054633085886443102775705318566;
    w(220) = 0.0053286415939159303170811114788;
    w(221) = 0.0051931752508692809303287536296;
    w(222) = 0.0050569298807868423875578160762;
    w(223) = 0.0049199259218138656695587765655;
    w(224) = 0.0047821839258926913729317340448;
    w(225) = 0.0046437245556800603139790923525;
    w(226) = 0.0045045685814478970686417923159;
    w(227) = 0.0043647368779680566815684200621;
    w(228) = 0.0042242504213815362723565049060;
    w(229) = 0.0040831302860526684085997759212;
    w(230) = 0.0039413976414088336277290349840;
    w(231) = 0.0037990737487662579981170192082;
    w(232) = 0.0036561799581425021693892413052;
    w(233) = 0.0035127377050563073309710549844;
    w(234) = 0.0033687685073155510120191062489;
    w(235) = 0.0032242939617941981570107134269;
    w(236) = 0.0030793357411993375832053528316;
    w(237) = 0.0029339155908297166460123254142;
    w(238) = 0.0027880553253277068805747610763;
    w(239) = 0.0026417768254274905641208292516;
    w(240) = 0.0024951020347037068508395354372;
    w(241) = 0.0023480529563273120170064609087;
    w(242) = 0.0022006516498399104996848834189;
    w(243) = 0.0020529202279661431745487818492;
    w(244) = 0.0019048808534997184044191411746;
    w(245) = 0.0017565557363307299936069145295;
    w(246) = 0.0016079671307493272424499395690;
    w(247) = 0.0014591373333107332010883864996;
    w(248) = 0.0013100886819025044578316804271;
    w(249) = 0.0011608435575677247239705981135;
    w(250) = 0.0010114243932084404526058128414;
    w(251) = 0.0008618537014200890378140934163;
    w(252) = 0.0007121541634733206669089891511;
    w(253) = 0.00056234895403140980281523674759;
    w(254) = 0.00041246325442617632843218583774;
    w(255) = 0.00026253494429644590628745756250;
    w(256) = 0.00011278901782227217551253887725;

  elseif ( n == 257 )

    x(1) = -0.999956390712330402472857;
    x(2) = -0.999770232390338019056053;
    x(3) = -0.999435348366365078441838;
    x(4) = -0.998951714093223210129834;
    x(5) = -0.998319392445383847808766;
    x(6) = -0.997538475365520218731818;
    x(7) = -0.996609078365487004512326;
    x(8) = -0.995531339486830143483750;
    x(9) = -0.994305419008553630362377;
    x(10) = -0.992931499332908653172844;
    x(11) = -0.991409784923101705201254;
    x(12) = -0.989740502257507526030375;
    x(13) = -0.987923899788618253106809;
    x(14) = -0.985960247902290665366669;
    x(15) = -0.983849838875444644048531;
    x(16) = -0.981592986831381877693095;
    x(17) = -0.979190027692327124191591;
    x(18) = -0.976641319128992592610888;
    x(19) = -0.973947240507062326750976;
    x(20) = -0.971108192830542793021113;
    x(21) = -0.968124598681952354372943;
    x(22) = -0.964996902159337170373447;
    x(23) = -0.961725568810109767190665;
    x(24) = -0.958311085561711847074814;
    x(25) = -0.954753960649106318830855;
    x(26) = -0.951054723539105826691801;
    x(27) = -0.947213924851546682950881;
    x(28) = -0.943232136277318328151464;
    x(29) = -0.939109950493259404355123;
    x(30) = -0.934847981073932324370129;
    x(31) = -0.930446862400288909805510;
    x(32) = -0.925907249565240289235888;
    x(33) = -0.921229818276144817520964;
    x(34) = -0.916415264754228313295468;
    x(35) = -0.911464305630951423630955;
    x(36) = -0.906377677841339419411308;
    x(37) = -0.901156138514290206476301;
    x(38) = -0.895800464859876809085345;
    x(39) = -0.890311454053661045810287;
    x(40) = -0.884689923118035575018750;
    x(41) = -0.878936708800611938658765;
    x(42) = -0.873052667449672679799858;
    x(43) = -0.867038674886706051812473;
    x(44) = -0.860895626276042275514686;
    x(45) = -0.854624435991610735314055;
    x(46) = -0.848226037480837936478636;
    x(47) = -0.841701383125706473284556;
    x(48) = -0.835051444100995681967937;
    x(49) = -0.828277210229725073186687;
    x(50) = -0.821379689835822056081139;
    x(51) = -0.814359909594035880004229;
    x(52) = -0.807218914377120130552073;
    x(53) = -0.799957767100306523636066;
    x(54) = -0.792577548563093144962574;
    x(55) = -0.785079357288370682385816;
    x(56) = -0.777464309358910595129671;
    x(57) = -0.769733538251239556788216;
    x(58) = -0.761888194666924898264210;
    x(59) = -0.753929446361296162339238;
    x(60) = -0.745858477969628263337895;
    x(61) = -0.737676490830812123299244;
    x(62) = -0.729384702808539030149808;
    x(63) = -0.720984348110025333531072;
    x(64) = -0.712476677102304460118510;
    x(65) = -0.703862956126113592426171;
    x(66) = -0.695144467307402713168813;
    x(67) = -0.686322508366494071200553;
    x(68) = -0.677398392424920474813593;
    x(69) = -0.668373447809971163711735;
    x(70) = -0.659249017856974352220492;
    x(71) = -0.650026460709345873208532;
    x(72) = -0.640707149116433684724434;
    x(73) = -0.631292470229188329449219;
    x(74) = -0.621783825393689760680446;
    x(75) = -0.612182629942561267650033;
    x(76) = -0.602490312984301547488097;
    x(77) = -0.592708317190566281032495;
    x(78) = -0.582838098581430874902446;
    x(79) = -0.572881126308666332759406;
    x(80) = -0.562838882437060514424546;
    x(81) = -0.552712861723817332466074;
    x(82) = -0.542504571396066721967792;
    x(83) = -0.532215530926518500400434;
    x(84) = -0.521847271807293510797499;
    x(85) = -0.511401337321965712746629;
    x(86) = -0.500879282315849152005553;
    x(87) = -0.490282672964564000798817;
    x(88) = -0.479613086540916117008992;
    x(89) = -0.468872111180124821505728;
    x(90) = -0.458061345643433838720630;
    x(91) = -0.447182399080140586238810;
    x(92) = -0.436236890788079234603398;
    x(93) = -0.425226449972593188682213;
    x(94) = -0.414152715504032866791986;
    x(95) = -0.403017335673814873281489;
    x(96) = -0.391821967949078874408131;
    x(97) = -0.380568278725978696070941;
    x(98) = -0.369257943081644365255611;
    x(99) = -0.357892644524852014873858;
    x(100) = -0.346474074745438764010632;
    x(101) = -0.335003933362499872399782;
    x(102) = -0.323483927671405649204085;
    x(103) = -0.311915772389675771851948;
    x(104) = -0.300301189401748840754520;
    x(105) = -0.288641907502685160168097;
    x(106) = -0.276939662140840894253032;
    x(107) = -0.265196195159551900488370;
    x(108) = -0.253413254537865690008131;
    x(109) = -0.241592594130360106108882;
    x(110) = -0.229735973406087448117604;
    x(111) = -0.217845157186682897983880;
    x(112) = -0.205921915383676231351599;
    x(113) = -0.193968022735045913454182;
    x(114) = -0.181985258541054792946197;
    x(115) = -0.169975406399406713716337;
    x(116) = -0.157940253939763465806087;
    x(117) = -0.145881592557661591770148;
    x(118) = -0.133801217147868654144405;
    x(119) = -0.121700925837218653121859;
    x(120) = -0.109582519716966361063898;
    x(121) = -0.097447802574700412082119;
    x(122) = -0.085298580625855050603929;
    x(123) = -0.073136662244860502573600;
    x(124) = -0.060963857695971986730406;
    x(125) = -0.048781978863817431238958;
    x(126) = -0.036592838983704002816750;
    x(127) = -0.024398252371723591403953;
    x(128) = -0.012200034154697423345412;
    x(129) = 0.000000000000000000000000;
    x(130) = 0.012200034154697423345412;
    x(131) = 0.024398252371723591403953;
    x(132) = 0.036592838983704002816750;
    x(133) = 0.048781978863817431238958;
    x(134) = 0.060963857695971986730406;
    x(135) = 0.073136662244860502573600;
    x(136) = 0.085298580625855050603929;
    x(137) = 0.097447802574700412082119;
    x(138) = 0.109582519716966361063898;
    x(139) = 0.121700925837218653121859;
    x(140) = 0.133801217147868654144405;
    x(141) = 0.145881592557661591770148;
    x(142) = 0.157940253939763465806087;
    x(143) = 0.169975406399406713716337;
    x(144) = 0.181985258541054792946197;
    x(145) = 0.193968022735045913454182;
    x(146) = 0.205921915383676231351599;
    x(147) = 0.217845157186682897983880;
    x(148) = 0.229735973406087448117604;
    x(149) = 0.241592594130360106108882;
    x(150) = 0.253413254537865690008131;
    x(151) = 0.265196195159551900488370;
    x(152) = 0.276939662140840894253032;
    x(153) = 0.288641907502685160168097;
    x(154) = 0.300301189401748840754520;
    x(155) = 0.311915772389675771851948;
    x(156) = 0.323483927671405649204085;
    x(157) = 0.335003933362499872399782;
    x(158) = 0.346474074745438764010632;
    x(159) = 0.357892644524852014873858;
    x(160) = 0.369257943081644365255611;
    x(161) = 0.380568278725978696070941;
    x(162) = 0.391821967949078874408131;
    x(163) = 0.403017335673814873281489;
    x(164) = 0.414152715504032866791986;
    x(165) = 0.425226449972593188682213;
    x(166) = 0.436236890788079234603398;
    x(167) = 0.447182399080140586238810;
    x(168) = 0.458061345643433838720630;
    x(169) = 0.468872111180124821505728;
    x(170) = 0.479613086540916117008992;
    x(171) = 0.490282672964564000798817;
    x(172) = 0.500879282315849152005553;
    x(173) = 0.511401337321965712746629;
    x(174) = 0.521847271807293510797499;
    x(175) = 0.532215530926518500400434;
    x(176) = 0.542504571396066721967792;
    x(177) = 0.552712861723817332466074;
    x(178) = 0.562838882437060514424546;
    x(179) = 0.572881126308666332759406;
    x(180) = 0.582838098581430874902446;
    x(181) = 0.592708317190566281032495;
    x(182) = 0.602490312984301547488097;
    x(183) = 0.612182629942561267650033;
    x(184) = 0.621783825393689760680446;
    x(185) = 0.631292470229188329449219;
    x(186) = 0.640707149116433684724434;
    x(187) = 0.650026460709345873208532;
    x(188) = 0.659249017856974352220492;
    x(189) = 0.668373447809971163711735;
    x(190) = 0.677398392424920474813593;
    x(191) = 0.686322508366494071200553;
    x(192) = 0.695144467307402713168813;
    x(193) = 0.703862956126113592426171;
    x(194) = 0.712476677102304460118510;
    x(195) = 0.720984348110025333531072;
    x(196) = 0.729384702808539030149808;
    x(197) = 0.737676490830812123299244;
    x(198) = 0.745858477969628263337895;
    x(199) = 0.753929446361296162339238;
    x(200) = 0.761888194666924898264210;
    x(201) = 0.769733538251239556788216;
    x(202) = 0.777464309358910595129671;
    x(203) = 0.785079357288370682385816;
    x(204) = 0.792577548563093144962574;
    x(205) = 0.799957767100306523636066;
    x(206) = 0.807218914377120130552073;
    x(207) = 0.814359909594035880004229;
    x(208) = 0.821379689835822056081139;
    x(209) = 0.828277210229725073186687;
    x(210) = 0.835051444100995681967937;
    x(211) = 0.841701383125706473284556;
    x(212) = 0.848226037480837936478636;
    x(213) = 0.854624435991610735314055;
    x(214) = 0.860895626276042275514686;
    x(215) = 0.867038674886706051812473;
    x(216) = 0.873052667449672679799858;
    x(217) = 0.878936708800611938658765;
    x(218) = 0.884689923118035575018750;
    x(219) = 0.890311454053661045810287;
    x(220) = 0.895800464859876809085345;
    x(221) = 0.901156138514290206476301;
    x(222) = 0.906377677841339419411308;
    x(223) = 0.911464305630951423630955;
    x(224) = 0.916415264754228313295468;
    x(225) = 0.921229818276144817520964;
    x(226) = 0.925907249565240289235888;
    x(227) = 0.930446862400288909805510;
    x(228) = 0.934847981073932324370129;
    x(229) = 0.939109950493259404355123;
    x(230) = 0.943232136277318328151464;
    x(231) = 0.947213924851546682950881;
    x(232) = 0.951054723539105826691801;
    x(233) = 0.954753960649106318830855;
    x(234) = 0.958311085561711847074814;
    x(235) = 0.961725568810109767190665;
    x(236) = 0.964996902159337170373447;
    x(237) = 0.968124598681952354372943;
    x(238) = 0.971108192830542793021113;
    x(239) = 0.973947240507062326750976;
    x(240) = 0.976641319128992592610888;
    x(241) = 0.979190027692327124191591;
    x(242) = 0.981592986831381877693095;
    x(243) = 0.983849838875444644048531;
    x(244) = 0.985960247902290665366669;
    x(245) = 0.987923899788618253106809;
    x(246) = 0.989740502257507526030375;
    x(247) = 0.991409784923101705201254;
    x(248) = 0.992931499332908653172844;
    x(249) = 0.994305419008553630362377;
    x(250) = 0.995531339486830143483750;
    x(251) = 0.996609078365487004512326;
    x(252) = 0.997538475365520218731818;
    x(253) = 0.998319392445383847808766;
    x(254) = 0.998951714093223210129834;
    x(255) = 0.999435348366365078441838;
    x(256) = 0.999770232390338019056053;
    x(257) = 0.999956390712330402472857;

    w(1) = 0.00011191470145601756450862287886;
    w(2) = 0.00026049995580176964436806680831;
    w(3) = 0.00040926648283531339591138751432;
    w(4) = 0.00055799120546880640169677292533;
    w(5) = 0.00070663671051592291949335494247;
    w(6) = 0.00085517818446696565626595950963;
    w(7) = 0.00100359280467969441299468763292;
    w(8) = 0.0011518582377826677880963146741;
    w(9) = 0.0012999523174235227389668643832;
    w(10) = 0.0014478529559255120065233994722;
    w(11) = 0.0015955381166175133369701690235;
    w(12) = 0.0017429858051468299509941139300;
    w(13) = 0.0018901740676190104269878470891;
    w(14) = 0.0020370809914723626741694800322;
    w(15) = 0.0021836847075455253317921866057;
    w(16) = 0.0023299633927021828561308282641;
    w(17) = 0.0024758952727301488651840215879;
    w(18) = 0.0026214586253808109266552781372;
    w(19) = 0.0027666317834818283552560256501;
    w(20) = 0.0029113931380877846359302447381;
    w(21) = 0.0030557211416493711130936102459;
    w(22) = 0.0031995943111899437356540290142;
    w(23) = 0.0033429912314827618499065991316;
    w(24) = 0.0034858905582247143702551557840;
    w(25) = 0.0036282710212037760873102463983;
    w(26) = 0.0037701114274582873548537007645;
    w(27) = 0.0039113906644266662571543468015;
    w(28) = 0.0040520877030864825223229951262;
    w(29) = 0.0041921816010820254766367595011;
    w(30) = 0.0043316515058396297504806208252;
    w(31) = 0.0044704766576701092218388764046;
    w(32) = 0.0046086363928577081326523656522;
    w(33) = 0.0047461101467350184936945641585;
    w(34) = 0.0048828774567433411142588306018;
    w(35) = 0.0050189179654779878773297516544;
    w(36) = 0.0051542114237180378340642003713;
    w(37) = 0.0052887376934400710240953933529;
    w(38) = 0.0054224767508154127788846727083;
    w(39) = 0.0055554086891904284012033890901;
    w(40) = 0.0056875137220494140577838938236;
    w(41) = 0.0058187721859596348346566361185;
    w(42) = 0.0059491645434980654366600347567;
    w(43) = 0.0060786713861593931405204596709;
    w(44) = 0.0062072734372448464599330978665;
    w(45) = 0.0063349515547314166407936938524;
    w(46) = 0.0064616867341210426397202932350;
    w(47) = 0.0065874601112693336961737372300;
    w(48) = 0.0067122529651934070221351960200;
    w(49) = 0.0068360467208584215286561508406;
    w(50) = 0.0069588229519423919043121805236;
    w(51) = 0.0070805633835788707705149901066;
    w(52) = 0.0072012498950770900730828552207;
    w(53) = 0.0073208645226191563361371026044;
    w(54) = 0.0074393894619338979090297315972;
    w(55) = 0.0075568070709469658838993300454;
    w(56) = 0.0076730998724067939537782250476;
    w(57) = 0.0077882505564860261212726654404;
    w(58) = 0.0079022419833580248574070864277;
    w(59) = 0.0080150571857480760504667455353;
    w(60) = 0.0081266793714589108764118189068;
    w(61) = 0.0082370919258701685661946145361;
    w(62) = 0.0083462784144114279413811886655;
    w(63) = 0.0084542225850084395379670551258;
    w(64) = 0.0085609083705021941391459209280;
    w(65) = 0.0086663198910404675908861979240;
    w(66) = 0.0087704414564414858792445834744;
    w(67) = 0.0088732575685293586050755892934;
    w(68) = 0.0089747529234409331997949023068;
    w(69) = 0.0090749124139037264846862498962;
    w(70) = 0.0091737211314845944854270065178;
    w(71) = 0.0092711643688088057725325917169;
    w(72) = 0.0093672276217491880067391857021;
    w(73) = 0.0094618965915850218253881576301;
    w(74) = 0.0095551571871303607110514249099;
    w(75) = 0.0096469955268314600363329731559;
    w(76) = 0.0097373979408330030783691793250;
    w(77) = 0.0098263509730128164423854701706;
    w(78) = 0.0099138413829847720250916955489;
    w(79) = 0.0099998561480695773850435626986;
    w(80) = 0.0100843824652331611676814627839;
    w(81) = 0.0101674077529923650568895461852;
    w(82) = 0.0102489196532876585918958554047;
    w(83) = 0.0103289060333225980974485876288;
    w(84) = 0.0104073549873697559257355517893;
    w(85) = 0.0104842548385428511997370260353;
    w(86) = 0.0105595941405348182788823332058;
    w(87) = 0.0106333616793215542382761147904;
    w(88) = 0.0107055464748310917616231511294;
    w(89) = 0.0107761377825779489945556541150;
    w(90) = 0.0108451250952624130885928632830;
    w(91) = 0.0109124981443345193856719616965;
    w(92) = 0.0109782469015224934483083029166;
    w(93) = 0.0110423615803254284301924654946;
    w(94) = 0.0111048326374699756056269264803;
    w(95) = 0.0111656507743308312328559850485;
    w(96) = 0.0112248069383148083152535688671;
    w(97) = 0.0112822923242082872447042603128;
    w(98) = 0.0113380983754878447625379269120;
    w(99) = 0.011392216785593866154247619654;
    w(100) = 0.011444639499166951104119199270;
    w(101) = 0.011495358713246929174010288914;
    w(102) = 0.011544366878434306436012137033;
    w(103) = 0.011591656700013970380783131035;
    w(104) = 0.011637221139040985841125311445;
    w(105) = 0.011681053413388320313049670635;
    w(106) = 0.011723146998756342723302879656;
    w(107) = 0.011763495629643945382264331878;
    w(108) = 0.011802093300281144573421477037;
    w(109) = 0.011838934265523020964443424791;
    w(110) = 0.011874013041704866779344562066;
    w(111) = 0.011907324407458412445505183140;
    w(112) = 0.011938863404489011222535627643;
    w(113) = 0.011968625338313666131272065445;
    w(114) = 0.011996605778959789329711050159;
    w(115) = 0.012022800561624589927558893338;
    w(116) = 0.012047205787294992091420946532;
    w(117) = 0.012069817823327991167612855626;
    w(118) = 0.012090633303991361438266420912;
    w(119) = 0.012109649130964635027950450318;
    w(120) = 0.012126862473800277391553601370;
    w(121) = 0.012142270770344990738801546574;
    w(122) = 0.012155871727121082685623083829;
    w(123) = 0.012167663319667843366755737416;
    w(124) = 0.012177643792842880196606249581;
    w(125) = 0.012185811661083365425569178819;
    w(126) = 0.012192165708627157605870499188;
    w(127) = 0.012196704989693764053654538465;
    w(128) = 0.012199428828625117371582840212;
    w(129) = 0.01220033681998614507777289232;
    w(130) = 0.012199428828625117371582840212;
    w(131) = 0.012196704989693764053654538465;
    w(132) = 0.012192165708627157605870499188;
    w(133) = 0.012185811661083365425569178819;
    w(134) = 0.012177643792842880196606249581;
    w(135) = 0.012167663319667843366755737416;
    w(136) = 0.012155871727121082685623083829;
    w(137) = 0.012142270770344990738801546574;
    w(138) = 0.012126862473800277391553601370;
    w(139) = 0.012109649130964635027950450318;
    w(140) = 0.012090633303991361438266420912;
    w(141) = 0.012069817823327991167612855626;
    w(142) = 0.012047205787294992091420946532;
    w(143) = 0.012022800561624589927558893338;
    w(144) = 0.011996605778959789329711050159;
    w(145) = 0.011968625338313666131272065445;
    w(146) = 0.011938863404489011222535627643;
    w(147) = 0.011907324407458412445505183140;
    w(148) = 0.011874013041704866779344562066;
    w(149) = 0.011838934265523020964443424791;
    w(150) = 0.011802093300281144573421477037;
    w(151) = 0.011763495629643945382264331878;
    w(152) = 0.011723146998756342723302879656;
    w(153) = 0.011681053413388320313049670635;
    w(154) = 0.011637221139040985841125311445;
    w(155) = 0.011591656700013970380783131035;
    w(156) = 0.011544366878434306436012137033;
    w(157) = 0.011495358713246929174010288914;
    w(158) = 0.011444639499166951104119199270;
    w(159) = 0.011392216785593866154247619654;
    w(160) = 0.0113380983754878447625379269120;
    w(161) = 0.0112822923242082872447042603128;
    w(162) = 0.0112248069383148083152535688671;
    w(163) = 0.0111656507743308312328559850485;
    w(164) = 0.0111048326374699756056269264803;
    w(165) = 0.0110423615803254284301924654946;
    w(166) = 0.0109782469015224934483083029166;
    w(167) = 0.0109124981443345193856719616965;
    w(168) = 0.0108451250952624130885928632830;
    w(169) = 0.0107761377825779489945556541150;
    w(170) = 0.0107055464748310917616231511294;
    w(171) = 0.0106333616793215542382761147904;
    w(172) = 0.0105595941405348182788823332058;
    w(173) = 0.0104842548385428511997370260353;
    w(174) = 0.0104073549873697559257355517893;
    w(175) = 0.0103289060333225980974485876288;
    w(176) = 0.0102489196532876585918958554047;
    w(177) = 0.0101674077529923650568895461852;
    w(178) = 0.0100843824652331611676814627839;
    w(179) = 0.0099998561480695773850435626986;
    w(180) = 0.0099138413829847720250916955489;
    w(181) = 0.0098263509730128164423854701706;
    w(182) = 0.0097373979408330030783691793250;
    w(183) = 0.0096469955268314600363329731559;
    w(184) = 0.0095551571871303607110514249099;
    w(185) = 0.0094618965915850218253881576301;
    w(186) = 0.0093672276217491880067391857021;
    w(187) = 0.0092711643688088057725325917169;
    w(188) = 0.0091737211314845944854270065178;
    w(189) = 0.0090749124139037264846862498962;
    w(190) = 0.0089747529234409331997949023068;
    w(191) = 0.0088732575685293586050755892934;
    w(192) = 0.0087704414564414858792445834744;
    w(193) = 0.0086663198910404675908861979240;
    w(194) = 0.0085609083705021941391459209280;
    w(195) = 0.0084542225850084395379670551258;
    w(196) = 0.0083462784144114279413811886655;
    w(197) = 0.0082370919258701685661946145361;
    w(198) = 0.0081266793714589108764118189068;
    w(199) = 0.0080150571857480760504667455353;
    w(200) = 0.0079022419833580248574070864277;
    w(201) = 0.0077882505564860261212726654404;
    w(202) = 0.0076730998724067939537782250476;
    w(203) = 0.0075568070709469658838993300454;
    w(204) = 0.0074393894619338979090297315972;
    w(205) = 0.0073208645226191563361371026044;
    w(206) = 0.0072012498950770900730828552207;
    w(207) = 0.0070805633835788707705149901066;
    w(208) = 0.0069588229519423919043121805236;
    w(209) = 0.0068360467208584215286561508406;
    w(210) = 0.0067122529651934070221351960200;
    w(211) = 0.0065874601112693336961737372300;
    w(212) = 0.0064616867341210426397202932350;
    w(213) = 0.0063349515547314166407936938524;
    w(214) = 0.0062072734372448464599330978665;
    w(215) = 0.0060786713861593931405204596709;
    w(216) = 0.0059491645434980654366600347567;
    w(217) = 0.0058187721859596348346566361185;
    w(218) = 0.0056875137220494140577838938236;
    w(219) = 0.0055554086891904284012033890901;
    w(220) = 0.0054224767508154127788846727083;
    w(221) = 0.0052887376934400710240953933529;
    w(222) = 0.0051542114237180378340642003713;
    w(223) = 0.0050189179654779878773297516544;
    w(224) = 0.0048828774567433411142588306018;
    w(225) = 0.0047461101467350184936945641585;
    w(226) = 0.0046086363928577081326523656522;
    w(227) = 0.0044704766576701092218388764046;
    w(228) = 0.0043316515058396297504806208252;
    w(229) = 0.0041921816010820254766367595011;
    w(230) = 0.0040520877030864825223229951262;
    w(231) = 0.0039113906644266662571543468015;
    w(232) = 0.0037701114274582873548537007645;
    w(233) = 0.0036282710212037760873102463983;
    w(234) = 0.0034858905582247143702551557840;
    w(235) = 0.0033429912314827618499065991316;
    w(236) = 0.0031995943111899437356540290142;
    w(237) = 0.0030557211416493711130936102459;
    w(238) = 0.0029113931380877846359302447381;
    w(239) = 0.0027666317834818283552560256501;
    w(240) = 0.0026214586253808109266552781372;
    w(241) = 0.0024758952727301488651840215879;
    w(242) = 0.0023299633927021828561308282641;
    w(243) = 0.0021836847075455253317921866057;
    w(244) = 0.0020370809914723626741694800322;
    w(245) = 0.0018901740676190104269878470891;
    w(246) = 0.0017429858051468299509941139300;
    w(247) = 0.0015955381166175133369701690235;
    w(248) = 0.0014478529559255120065233994722;
    w(249) = 0.0012999523174235227389668643832;
    w(250) = 0.0011518582377826677880963146741;
    w(251) = 0.00100359280467969441299468763292;
    w(252) = 0.00085517818446696565626595950963;
    w(253) = 0.00070663671051592291949335494247;
    w(254) = 0.00055799120546880640169677292533;
    w(255) = 0.00040926648283531339591138751432;
    w(256) = 0.00026049995580176964436806680831;
    w(257) = 0.00011191470145601756450862287886;

  else

    fprintf ( 1, '\n' );
    fprintf ( 1, 'LEGENDRE_SET - Fatal error!\n' );
    fprintf ( 1, '  Illegal value of N = %d\n', n );
    fprintf ( 1, '  Legal values are 1 to 33, 63/64/65, 127/128/129, 255/256/257.\n' );
    error ( 'LEGENDRE_SET - Fatal error!' );

  end

  return
end

