How to use isEqual method in storybook-root

Best JavaScript code snippet using storybook-root

sgp4init_test.js

Source:sgp4init_test.js Github

copy

Full Screen

1/*global sgp4init: true, getgravc: true,2 module: true, assert: true, test: true, expect: true, ok: true, isequalRel: true, equal: true3*/4// input opsmode afspc a, improved i i5// input type of run c, v, m: v6// input constants 721, 72, 84 727// input elset filename: SGP4-VER.TLE8var rets = getgravc(72),9 tumin = rets.shift(),10 mu = rets.shift(),11 radiusearthkm = rets.shift(),12 xke = rets.shift(),13 j2 = rets.shift(),14 j3 = rets.shift(),15 j4 = rets.shift(),16 j3oj2 = rets.shift(),17 opsmode = "i";18module('sgp4init');19test('72, satin, 2.809800000000e-05, 1.859667000000e-01, 1.844178495062e+04, 5.790416027489e+00, 5.980929187319e-01, 3.373093125574e-01, 4.722944544078e-02, 6.086385471383e+00', function () {20 var satin, rets, satrec, TOL = 0.000001;21 satin = {22 'error': 0.000000000000e+00,23 'satnum': 5.000000000000e+00,24 'epochyr': 0.000000000000e+00,25 'epochdays': 1.797849506200e+02,26 'ndot': 6.969196665950e-13,27 'nddot': 0.000000000000e+00,28 'bstar': 2.809800000000e-05,29 'inclo': 5.980929187319e-01,30 'nodeo': 6.086385471383e+00,31 'ecco': 1.859667000000e-01,32 'argpo': 5.790416027489e+00,33 'mo': 3.373093125574e-01,34 'no': 4.722944544078e-02,35 'a': 1.353457482755e+00,36 'alta': 6.051555044136e-01,37 'altp': 1.017594610970e-01,38 'jdsatepoch': 2.451723284951e+06 39 };40 satrec = sgp4init(72, satin, 2.809800000000e-05, 1.859667000000e-01, 1.844178495062e+04, 5.790416027489e+00, 5.980929187319e-01, 3.373093125574e-01, 4.722944544078e-02, 6.086385471383e+00);41 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));42 assert(isequalRel(satrec.satnum, 5.000000000000e+00, TOL));43 assert(isequalRel(satrec.epochyr, 0.000000000000e+00, TOL));44 assert(isequalRel(satrec.epochdays, 1.797849506200e+02, TOL));45 assert(isequalRel(satrec.ndot, 6.969196665950e-13, TOL));46 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));47 assert(isequalRel(satrec.bstar, 2.809800000000e-05, TOL));48 assert(isequalRel(satrec.inclo, 5.980929187319e-01, TOL));49 assert(isequalRel(satrec.nodeo, 6.086385471383e+00, TOL));50 assert(isequalRel(satrec.ecco, 1.859667000000e-01, TOL));51 assert(isequalRel(satrec.argpo, 5.790416027489e+00, TOL));52 assert(isequalRel(satrec.mo, 3.373093125574e-01, TOL));53 assert(isequalRel(satrec.no, 4.720630155918e-02, TOL));54 assert(isequalRel(satrec.a, 1.353457482755e+00, TOL));55 assert(isequalRel(satrec.alta, 6.051555044136e-01, TOL));56 assert(isequalRel(satrec.altp, 1.017594610970e-01, TOL));57 assert(isequalRel(satrec.jdsatepoch, 2.451723284951e+06, TOL));58 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));59 assert(isequalRel(satrec.aycof, 6.602162317959e-04, TOL));60 assert(isequalRel(satrec.con41, 1.048865087996e+00, TOL));61 assert(isequalRel(satrec.cc1, 9.531093269423e-12, TOL));62 assert(isequalRel(satrec.cc4, 5.259360731617e-07, TOL));63 assert(isequalRel(satrec.cc5, 1.646515247679e-05, TOL));64 assert(isequalRel(satrec.d2, 1.439873790292e-21, TOL));65 assert(isequalRel(satrec.d3, 3.217106892468e-31, TOL));66 assert(isequalRel(satrec.d4, 8.358359772163e-41, TOL));67 assert(isequalRel(satrec.delmo, 4.873084659112e+00, TOL));68 assert(isequalRel(satrec.eta, 7.369095429280e-01, TOL));69 assert(isequalRel(satrec.argpdot, 5.429305256054e-05, TOL));70 assert(isequalRel(satrec.omgcof, 6.701312384410e-15, TOL));71 assert(isequalRel(satrec.sinmao, 3.309492298727e-01, TOL));72 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));73 assert(isequalRel(satrec.t2cof, 1.429663990413e-11, TOL));74 assert(isequalRel(satrec.t3cof, 1.621557268113e-21, TOL));75 assert(isequalRel(satrec.t4cof, 2.846182838253e-31, TOL));76 assert(isequalRel(satrec.t5cof, 6.080661397341e-41, TOL));77 assert(isequalRel(satrec.x1mth2, 3.170449706681e-01, TOL));78 assert(isequalRel(satrec.x7thm1, 3.780685205323e+00, TOL));79 assert(isequalRel(satrec.mdot, 4.722944338321e-02, TOL));80 assert(isequalRel(satrec.nodedot, -3.717135384537e-05, TOL));81 assert(isequalRel(satrec.xlcof, 1.289057728039e-03, TOL));82 assert(isequalRel(satrec.xmcof, -1.885936118348e-11, TOL));83 assert(isequalRel(satrec.nodecf, -1.194221173313e-15, TOL));84 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));85 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));86 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));87 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));88 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));89 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));90 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));91 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));92 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));93 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));94 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));95 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));96 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));97 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));98 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));99 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));100 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));101 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));102 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));103 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));104 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));105 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));106 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));107 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));108 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));109 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));110 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));111 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));112 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));113 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));114 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));115 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));116 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));117 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));118 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));119 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));120 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));121 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));122 assert(isequalRel(satrec.gsto, 3.469172342379e+00, TOL));123 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));124 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));125 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));126 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));127 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));128 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));129 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));130 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));131 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));132 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));133 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));134 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));135 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));136 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));137 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));138 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));139 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));140 equal(satrec.method, 'n');141 equal(satrec.init, 'n');142});143// 5144test('72, satin, 1.000000000000e-04, 1.450506000000e-01, 1.975491070959e+04, 3.623303527140e+00, 2.000636014976e-01, 2.512139658858e+00, 5.246109836613e-03, 4.766670465451e+00', function () {145 var satin, rets, satrec, TOL = 0.000001;146 satin = {147 'error': 0.000000000000e+00,148 'satnum': 4.632000000000e+03,149 'epochyr': 4.000000000000e+00,150 'epochdays': 3.191070959000e+01,151 'ndot': -2.545271825825e-12,152 'nddot': 0.000000000000e+00,153 'bstar': 1.000000000000e-04,154 'inclo': 2.000636014976e-01,155 'nodeo': 4.766670465451e+00,156 'ecco': 1.450506000000e-01,157 'argpo': 3.623303527140e+00,158 'mo': 2.512139658858e+00,159 'no': 5.246109836613e-03,160 'a': 5.857265750666e+00,161 'alta': 5.706865662159e+00,162 'altp': 4.007665839172e+00,163 'jdsatepoch': 2.453036410710e+06 164 };165 satrec = sgp4init(72, satin, 1.000000000000e-04, 1.450506000000e-01, 1.975491070959e+04, 3.623303527140e+00, 2.000636014976e-01, 2.512139658858e+00, 5.246109836613e-03, 4.766670465451e+00);166 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));167 assert(isequalRel(satrec.satnum, 4.632000000000e+03, TOL));168 assert(isequalRel(satrec.epochyr, 4.000000000000e+00, TOL));169 assert(isequalRel(satrec.epochdays, 3.191070959000e+01, TOL));170 assert(isequalRel(satrec.ndot, -2.545271825825e-12, TOL));171 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));172 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));173 assert(isequalRel(satrec.inclo, 2.000636014976e-01, TOL));174 assert(isequalRel(satrec.nodeo, 4.766670465451e+00, TOL));175 assert(isequalRel(satrec.ecco, 1.450506000000e-01, TOL));176 assert(isequalRel(satrec.argpo, 3.623303527140e+00, TOL));177 assert(isequalRel(satrec.mo, 2.512139658858e+00, TOL));178 assert(isequalRel(satrec.no, 5.245868658927e-03, TOL));179 assert(isequalRel(satrec.a, 5.857265750666e+00, TOL));180 assert(isequalRel(satrec.alta, 5.706865662159e+00, TOL));181 assert(isequalRel(satrec.altp, 4.007665839172e+00, TOL));182 assert(isequalRel(satrec.jdsatepoch, 2.453036410710e+06, TOL));183 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));184 assert(isequalRel(satrec.aycof, 2.330198039387e-04, TOL));185 assert(isequalRel(satrec.con41, 1.881517177058e+00, TOL));186 assert(isequalRel(satrec.cc1, 1.343526634302e-17, TOL));187 assert(isequalRel(satrec.cc4, 9.961442478352e-14, TOL));188 assert(isequalRel(satrec.cc5, 5.042388615446e-11, TOL));189 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));190 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));191 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));192 assert(isequalRel(satrec.delmo, 6.321876200893e-01, TOL));193 assert(isequalRel(satrec.eta, 1.753535760959e-01, TOL));194 assert(isequalRel(satrec.argpdot, 4.927036138558e-07, TOL));195 assert(isequalRel(satrec.omgcof, -2.103491826186e-21, TOL));196 assert(isequalRel(satrec.sinmao, 5.887026745200e-01, TOL));197 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));198 assert(isequalRel(satrec.t2cof, 2.015289951454e-17, TOL));199 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));200 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));201 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));202 assert(isequalRel(satrec.x1mth2, 3.949427431409e-02, TOL));203 assert(isequalRel(satrec.x7thm1, 5.723540079801e+00, TOL));204 assert(isequalRel(satrec.mdot, 5.246109831442e-03, TOL));205 assert(isequalRel(satrec.nodedot, -2.539711450894e-07, TOL));206 assert(isequalRel(satrec.xlcof, 4.648659461777e-04, TOL));207 assert(isequalRel(satrec.xmcof, -8.942199364406e-15, TOL));208 assert(isequalRel(satrec.nodecf, -1.168869017451e-23, TOL));209 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));210 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));211 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));212 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));213 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));214 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));215 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));216 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));217 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));218 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));219 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));220 assert(isequalRel(satrec.dedt, -5.739257257134e-10, TOL));221 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));222 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));223 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));224 assert(isequalRel(satrec.didt, -2.669482583786e-08, TOL));225 assert(isequalRel(satrec.dmdt, -6.045613838815e-08, TOL));226 assert(isequalRel(satrec.dnodt, -6.171410259572e-08, TOL));227 assert(isequalRel(satrec.domdt, 6.528741483006e-08, TOL));228 assert(isequalRel(satrec.e3, -3.259811599808e-04, TOL));229 assert(isequalRel(satrec.ee2, 9.631690304302e-05, TOL));230 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));231 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));232 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));233 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));234 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));235 assert(isequalRel(satrec.se2, -1.598763953845e-03, TOL));236 assert(isequalRel(satrec.se3, -1.532829312733e-03, TOL));237 assert(isequalRel(satrec.sgh2, 1.009321688332e-02, TOL));238 assert(isequalRel(satrec.sgh3, -1.031125833038e-02, TOL));239 assert(isequalRel(satrec.sgh4, -1.698290639332e-04, TOL));240 assert(isequalRel(satrec.sh2, -1.436571665398e-03, TOL));241 assert(isequalRel(satrec.sh3, -2.604666666759e-04, TOL));242 assert(isequalRel(satrec.si2, -2.752019370380e-04, TOL));243 assert(isequalRel(satrec.si3, 1.412253967491e-03, TOL));244 assert(isequalRel(satrec.sl2, -9.737328456846e-03, TOL));245 assert(isequalRel(satrec.sl3, 9.584139594897e-03, TOL));246 assert(isequalRel(satrec.sl4, 4.041147860756e-04, TOL));247 assert(isequalRel(satrec.gsto, 1.716027084070e+00, TOL));248 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));249 assert(isequalRel(satrec.xgh2, 2.069563786522e-03, TOL));250 assert(isequalRel(satrec.xgh3, 6.246874813546e-04, TOL));251 assert(isequalRel(satrec.xgh4, -8.940507699742e-05, TOL));252 assert(isequalRel(satrec.xh2, -5.956657020046e-05, TOL));253 assert(isequalRel(satrec.xh3, -2.660535481999e-04, TOL));254 assert(isequalRel(satrec.xi2, -2.550806983774e-04, TOL));255 assert(isequalRel(satrec.xi3, 6.513825317331e-05, TOL));256 assert(isequalRel(satrec.xl2, -1.862212872508e-03, TOL));257 assert(isequalRel(satrec.xl3, -5.873201141188e-04, TOL));258 assert(isequalRel(satrec.xl4, 2.127428175609e-04, TOL));259 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));260 assert(isequalRel(satrec.zmol, 3.145380241287e+00, TOL));261 assert(isequalRel(satrec.zmos, 4.795490950675e-01, TOL));262 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));263 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));264 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));265 equal(satrec.method, 'd');266 equal(satrec.init, 'n');267});268// 4632269test('72, satin, 1.280800000000e-04, 3.003500000000e-03, 2.063082412014e+04, 2.428744336539e+00, 1.013301511794e+00, 3.860413487341e+00, 6.791020666036e-02, 9.432195610090e-01', function () {270 var satin, rets, satrec, TOL = 0.000001;271 satin = {272 'error': 0.000000000000e+00,273 'satnum': 6.251000000000e+03,274 'epochyr': 6.000000000000e+00,275 'epochdays': 1.768241201400e+02,276 'ndot': 2.692230972911e-10,277 'nddot': 0.000000000000e+00,278 'bstar': 1.280800000000e-04,279 'inclo': 1.013301511794e+00,280 'nodeo': 9.432195610090e-01,281 'ecco': 3.003500000000e-03,282 'argpo': 2.428744336539e+00,283 'mo': 3.860413487341e+00,284 'no': 6.791020666036e-02,285 'a': 1.062420593358e+00,286 'alta': 6.561157360986e-02,287 'altp': 5.922961310556e-02,288 'jdsatepoch': 2.453912324120e+06 289 };290 satrec = sgp4init(72, satin, 1.280800000000e-04, 3.003500000000e-03, 2.063082412014e+04, 2.428744336539e+00, 1.013301511794e+00, 3.860413487341e+00, 6.791020666036e-02, 9.432195610090e-01);291 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));292 assert(isequalRel(satrec.satnum, 6.251000000000e+03, TOL));293 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));294 assert(isequalRel(satrec.epochdays, 1.768241201400e+02, TOL));295 assert(isequalRel(satrec.ndot, 2.692230972911e-10, TOL));296 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));297 assert(isequalRel(satrec.bstar, 1.280800000000e-04, TOL));298 assert(isequalRel(satrec.inclo, 1.013301511794e+00, TOL));299 assert(isequalRel(satrec.nodeo, 9.432195610090e-01, TOL));300 assert(isequalRel(satrec.ecco, 3.003500000000e-03, TOL));301 assert(isequalRel(satrec.argpo, 2.428744336539e+00, TOL));302 assert(isequalRel(satrec.mo, 3.860413487341e+00, TOL));303 assert(isequalRel(satrec.no, 6.791803699335e-02, TOL));304 assert(isequalRel(satrec.a, 1.062420593358e+00, TOL));305 assert(isequalRel(satrec.alta, 6.561157360986e-02, TOL));306 assert(isequalRel(satrec.altp, 5.922961310556e-02, TOL));307 assert(isequalRel(satrec.jdsatepoch, 2.453912324120e+06, TOL));308 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));309 assert(isequalRel(satrec.aycof, 9.949933492029e-04, TOL));310 assert(isequalRel(satrec.con41, -1.602801925378e-01, TOL));311 assert(isequalRel(satrec.cc1, 2.786746389227e-09, TOL));312 assert(isequalRel(satrec.cc4, 5.199527839737e-06, TOL));313 assert(isequalRel(satrec.cc5, 6.501942743088e-04, TOL));314 assert(isequalRel(satrec.d2, 6.585618757245e-16, TOL));315 assert(isequalRel(satrec.d3, 2.328345454584e-22, TOL));316 assert(isequalRel(satrec.d4, 9.598355084426e-29, TOL));317 assert(isequalRel(satrec.delmo, 8.630169062242e-01, TOL));318 assert(isequalRel(satrec.eta, 6.367505613325e-02, TOL));319 assert(isequalRel(satrec.argpdot, 1.940705735802e-05, TOL));320 assert(isequalRel(satrec.omgcof, -5.189726839277e-08, TOL));321 assert(isequalRel(satrec.sinmao, -6.584977098201e-01, TOL));322 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));323 assert(isequalRel(satrec.t2cof, 4.180119583841e-09, TOL));324 assert(isequalRel(satrec.t3cof, 6.740937866003e-16, TOL));325 assert(isequalRel(satrec.t4cof, 1.801857482522e-22, TOL));326 assert(isequalRel(satrec.t5cof, 5.969868409204e-29, TOL));327 assert(isequalRel(satrec.x1mth2, 7.200933975126e-01, TOL));328 assert(isequalRel(satrec.x7thm1, 9.593462174118e-01, TOL));329 assert(isequalRel(satrec.mdot, 6.791021042403e-02, TOL));330 assert(isequalRel(satrec.nodedot, -5.167653849627e-05, TOL));331 assert(isequalRel(satrec.xlcof, 1.836761984615e-03, TOL));332 assert(isequalRel(satrec.xmcof, -1.331465223622e-04, TOL));333 assert(isequalRel(satrec.nodecf, -5.043135183865e-13, TOL));334 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));335 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));336 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));337 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));338 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));339 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));340 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));341 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));342 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));343 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));344 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));345 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));346 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));347 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));348 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));349 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));350 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));351 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));352 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));353 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));354 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));355 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));356 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));357 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));358 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));359 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));360 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));361 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));362 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));363 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));364 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));365 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));366 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));367 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));368 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));369 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));370 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));371 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));372 assert(isequalRel(satrec.gsto, 3.673754967933e+00, TOL));373 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));374 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));375 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));376 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));377 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));378 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));379 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));380 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));381 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));382 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));383 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));384 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));385 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));386 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));387 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));388 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));389 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));390 equal(satrec.method, 'n');391 equal(satrec.init, 'n');392});393// 6251394test('72, satin, 1.187300000000e-04, 6.877146000000e-01, 2.063033215444e+04, 4.621022739372e+00, 1.119778813470e+00, 3.530050585206e-01, 8.748086888067e-03, 4.870720014138e+00', function () {395 var satin, rets, satrec, TOL = 0.000001;396 satin = {397 'error': 0.000000000000e+00,398 'satnum': 8.195000000000e+03,399 'epochyr': 6.000000000000e+00,400 'epochdays': 1.763321544400e+02,401 'ndot': 2.999784651865e-12,402 'nddot': 0.000000000000e+00,403 'bstar': 1.187300000000e-04,404 'inclo': 1.119778813470e+00,405 'nodeo': 4.870720014138e+00,406 'ecco': 6.877146000000e-01,407 'argpo': 4.621022739372e+00,408 'mo': 3.530050585206e-01,409 'no': 8.748086888067e-03,410 'a': 4.165282448733e+00,411 'alta': 6.029808001850e+00,412 'altp': 3.007568956154e-01,413 'jdsatepoch': 2.453911832154e+06 414 };415 satrec = sgp4init(72, satin, 1.187300000000e-04, 6.877146000000e-01, 2.063033215444e+04, 4.621022739372e+00, 1.119778813470e+00, 3.530050585206e-01, 8.748086888067e-03, 4.870720014138e+00);416 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));417 assert(isequalRel(satrec.satnum, 8.195000000000e+03, TOL));418 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));419 assert(isequalRel(satrec.epochdays, 1.763321544400e+02, TOL));420 assert(isequalRel(satrec.ndot, 2.999784651865e-12, TOL));421 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));422 assert(isequalRel(satrec.bstar, 1.187300000000e-04, TOL));423 assert(isequalRel(satrec.inclo, 1.119778813470e+00, TOL));424 assert(isequalRel(satrec.nodeo, 4.870720014138e+00, TOL));425 assert(isequalRel(satrec.ecco, 6.877146000000e-01, TOL));426 assert(isequalRel(satrec.argpo, 4.621022739372e+00, TOL));427 assert(isequalRel(satrec.mo, 3.530050585206e-01, TOL));428 assert(isequalRel(satrec.no, 8.748547019630e-03, TOL));429 assert(isequalRel(satrec.a, 4.165282448733e+00, TOL));430 assert(isequalRel(satrec.alta, 6.029808001850e+00, TOL));431 assert(isequalRel(satrec.altp, 3.007568956154e-01, TOL));432 assert(isequalRel(satrec.jdsatepoch, 2.453911832154e+06, TOL));433 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));434 assert(isequalRel(satrec.aycof, 1.055286126372e-03, TOL));435 assert(isequalRel(satrec.con41, -4.300218866316e-01, TOL));436 assert(isequalRel(satrec.cc1, 1.942515834721e-13, TOL));437 assert(isequalRel(satrec.cc4, 1.205662340036e-09, TOL));438 assert(isequalRel(satrec.cc5, 2.066270127143e-07, TOL));439 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));440 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));441 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));442 assert(isequalRel(satrec.delmo, 6.357151283114e+00, TOL));443 assert(isequalRel(satrec.eta, 9.085028530233e-01, TOL));444 assert(isequalRel(satrec.argpdot, -7.437009265334e-08, TOL));445 assert(isequalRel(satrec.omgcof, -3.510477365587e-21, TOL));446 assert(isequalRel(satrec.sinmao, 3.457191249346e-01, TOL));447 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));448 assert(isequalRel(satrec.t2cof, 2.913773752081e-13, TOL));449 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));450 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));451 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));452 assert(isequalRel(satrec.x1mth2, 8.100072955439e-01, TOL));453 assert(isequalRel(satrec.x7thm1, 3.299489311928e-01, TOL));454 assert(isequalRel(satrec.mdot, 8.748086886633e-03, TOL));455 assert(isequalRel(satrec.nodedot, -1.284567215801e-06, TOL));456 assert(isequalRel(satrec.xlcof, 1.903275763135e-03, TOL));457 assert(isequalRel(satrec.xmcof, -2.410528625981e-15, TOL));458 assert(isequalRel(satrec.nodecf, -4.604617513548e-19, TOL));459 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));460 assert(isequalRel(satrec.d2201, -1.197359551623e-11, TOL));461 assert(isequalRel(satrec.d2211, 6.453213834121e-11, TOL));462 assert(isequalRel(satrec.d3210, -3.893722738131e-12, TOL));463 assert(isequalRel(satrec.d3222, -7.364857538023e-12, TOL));464 assert(isequalRel(satrec.d4410, 2.576960140946e-12, TOL));465 assert(isequalRel(satrec.d4422, 4.361455592714e-12, TOL));466 assert(isequalRel(satrec.d5220, -2.528789465953e-12, TOL));467 assert(isequalRel(satrec.d5232, 6.767712568551e-13, TOL));468 assert(isequalRel(satrec.d5421, -2.280698046562e-12, TOL));469 assert(isequalRel(satrec.d5433, -1.659570821491e-12, TOL));470 assert(isequalRel(satrec.dedt, -2.888547623461e-08, TOL));471 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));472 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));473 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));474 assert(isequalRel(satrec.didt, -9.784108269214e-09, TOL));475 assert(isequalRel(satrec.dmdt, 9.270786742527e-08, TOL));476 assert(isequalRel(satrec.dnodt, -6.124323489695e-08, TOL));477 assert(isequalRel(satrec.domdt, -1.415521073384e-08, TOL));478 assert(isequalRel(satrec.e3, -4.408046133189e-04, TOL));479 assert(isequalRel(satrec.ee2, -1.093428053938e-04, TOL));480 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));481 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));482 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));483 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));484 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));485 assert(isequalRel(satrec.se2, 2.501941522642e-03, TOL));486 assert(isequalRel(satrec.se3, 1.007241988530e-03, TOL));487 assert(isequalRel(satrec.sgh2, -1.261915509701e-03, TOL));488 assert(isequalRel(satrec.sgh3, 2.455746281541e-03, TOL));489 assert(isequalRel(satrec.sgh4, -7.471990261373e-05, TOL));490 assert(isequalRel(satrec.sh2, 9.458037270825e-04, TOL));491 assert(isequalRel(satrec.sh3, -3.970223690620e-03, TOL));492 assert(isequalRel(satrec.si2, -1.110569917439e-03, TOL));493 assert(isequalRel(satrec.si3, 2.735745904365e-05, TOL));494 assert(isequalRel(satrec.sl2, 4.083492666433e-03, TOL));495 assert(isequalRel(satrec.sl3, -2.119115873088e-03, TOL));496 assert(isequalRel(satrec.sl4, 2.888302541444e-04, TOL));497 assert(isequalRel(satrec.gsto, 5.741801269032e-01, TOL));498 assert(isequalRel(satrec.xfact, -8.753597222054e-03, TOL));499 assert(isequalRel(satrec.xgh2, 4.549202443830e-04, TOL));500 assert(isequalRel(satrec.xgh3, -2.464815107882e-05, TOL));501 assert(isequalRel(satrec.xgh4, -3.933566193975e-05, TOL));502 assert(isequalRel(satrec.xh2, -6.438340814882e-04, TOL));503 assert(isequalRel(satrec.xh3, 3.079429279349e-04, TOL));504 assert(isequalRel(satrec.xi2, 1.142408298542e-04, TOL));505 assert(isequalRel(satrec.xi3, 1.200089628145e-04, TOL));506 assert(isequalRel(satrec.xl2, -7.862643771994e-04, TOL));507 assert(isequalRel(satrec.xl3, -4.559423560477e-04, TOL));508 assert(isequalRel(satrec.xl4, 1.520522489668e-04, TOL));509 assert(isequalRel(satrec.xlamo, 2.662899525810e+00, TOL));510 assert(isequalRel(satrec.zmol, 1.703291771992e+00, TOL));511 assert(isequalRel(satrec.zmos, 2.972158040326e+00, TOL));512 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));513 assert(isequalRel(satrec.xli, 2.662899525810e+00, TOL));514 assert(isequalRel(satrec.xni, 8.748547019630e-03, TOL));515 equal(satrec.method, 'd');516 equal(satrec.init, 'n');517});518// 8195519test('72, satin, 1.000000000000e-04, 7.069051000000e-01, 2.063056157475e+04, 4.712788660783e+00, 1.127426846252e+00, 2.850471734357e-01, 8.762146867822e-03, 6.097806906008e+00', function () {520 var satin, rets, satrec, TOL = 0.000001;521 satin = {522 'error': 0.000000000000e+00,523 'satnum': 9.880000000000e+03,524 'epochyr': 6.000000000000e+00,525 'epochdays': 1.765615747500e+02,526 'ndot': 1.275665998419e-11,527 'nddot': 0.000000000000e+00,528 'bstar': 1.000000000000e-04,529 'inclo': 1.127426846252e+00,530 'nodeo': 6.097806906008e+00,531 'ecco': 7.069051000000e-01,532 'argpo': 4.712788660783e+00,533 'mo': 2.850471734357e-01,534 'no': 8.762146867822e-03,535 'a': 4.160825439041e+00,536 'alta': 6.102134162109e+00,537 'altp': 2.195167159733e-01,538 'jdsatepoch': 2.453912061575e+06 539 };540 satrec = sgp4init(72, satin, 1.000000000000e-04, 7.069051000000e-01, 2.063056157475e+04, 4.712788660783e+00, 1.127426846252e+00, 2.850471734357e-01, 8.762146867822e-03, 6.097806906008e+00);541 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));542 assert(isequalRel(satrec.satnum, 9.880000000000e+03, TOL));543 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));544 assert(isequalRel(satrec.epochdays, 1.765615747500e+02, TOL));545 assert(isequalRel(satrec.ndot, 1.275665998419e-11, TOL));546 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));547 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));548 assert(isequalRel(satrec.inclo, 1.127426846252e+00, TOL));549 assert(isequalRel(satrec.nodeo, 6.097806906008e+00, TOL));550 assert(isequalRel(satrec.ecco, 7.069051000000e-01, TOL));551 assert(isequalRel(satrec.argpo, 4.712788660783e+00, TOL));552 assert(isequalRel(satrec.mo, 2.850471734357e-01, TOL));553 assert(isequalRel(satrec.no, 8.762667060363e-03, TOL));554 assert(isequalRel(satrec.a, 4.160825439041e+00, TOL));555 assert(isequalRel(satrec.alta, 6.102134162109e+00, TOL));556 assert(isequalRel(satrec.altp, 2.195167159733e-01, TOL));557 assert(isequalRel(satrec.jdsatepoch, 2.453912061575e+06, TOL));558 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));559 assert(isequalRel(satrec.aycof, 1.059164029957e-03, TOL));560 assert(isequalRel(satrec.con41, -4.479141048878e-01, TOL));561 assert(isequalRel(satrec.cc1, 5.233520166060e-13, TOL));562 assert(isequalRel(satrec.cc4, 3.662175839859e-09, TOL));563 assert(isequalRel(satrec.cc5, 6.266742443382e-07, TOL));564 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));565 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));566 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));567 assert(isequalRel(satrec.delmo, 6.820964768241e+00, TOL));568 assert(isequalRel(satrec.eta, 9.341770109733e-01, TOL));569 assert(isequalRel(satrec.argpdot, -1.318643338756e-07, TOL));570 assert(isequalRel(satrec.omgcof, 1.275740509890e-23, TOL));571 assert(isequalRel(satrec.sinmao, 2.812027215197e-01, TOL));572 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));573 assert(isequalRel(satrec.t2cof, 7.850280249091e-13, TOL));574 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));575 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));576 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));577 assert(isequalRel(satrec.x1mth2, 8.159713682959e-01, TOL));578 assert(isequalRel(satrec.x7thm1, 2.882004219285e-01, TOL));579 assert(isequalRel(satrec.mdot, 8.762146865654e-03, TOL));580 assert(isequalRel(satrec.nodedot, -1.408338623247e-06, TOL));581 assert(isequalRel(satrec.xlcof, 1.906710134565e-03, TOL));582 assert(isequalRel(satrec.xmcof, -1.931807263939e-15, TOL));583 assert(isequalRel(satrec.nodecf, -1.291113443180e-18, TOL));584 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));585 assert(isequalRel(satrec.d2201, -1.223066000340e-11, TOL));586 assert(isequalRel(satrec.d2211, 7.174605316403e-11, TOL));587 assert(isequalRel(satrec.d3210, -4.151751044682e-12, TOL));588 assert(isequalRel(satrec.d3222, -8.877536621154e-12, TOL));589 assert(isequalRel(satrec.d4410, 3.097256488149e-12, TOL));590 assert(isequalRel(satrec.d4422, 5.507367501422e-12, TOL));591 assert(isequalRel(satrec.d5220, -3.254911516032e-12, TOL));592 assert(isequalRel(satrec.d5232, 7.951364509680e-13, TOL));593 assert(isequalRel(satrec.d5421, -2.951741474264e-12, TOL));594 assert(isequalRel(satrec.d5433, -2.267801942329e-12, TOL));595 assert(isequalRel(satrec.dedt, -4.867357573014e-09, TOL));596 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));597 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));598 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));599 assert(isequalRel(satrec.didt, -1.740817385888e-09, TOL));600 assert(isequalRel(satrec.dmdt, 7.275290629300e-09, TOL));601 assert(isequalRel(satrec.dnodt, -8.615750092681e-08, TOL));602 assert(isequalRel(satrec.domdt, 2.335815977949e-08, TOL));603 assert(isequalRel(satrec.e3, 1.249431839564e-04, TOL));604 assert(isequalRel(satrec.ee2, 6.476652597055e-04, TOL));605 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));606 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));607 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));608 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));609 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));610 assert(isequalRel(satrec.se2, -3.006446485103e-03, TOL));611 assert(isequalRel(satrec.se3, 2.366248156382e-03, TOL));612 assert(isequalRel(satrec.sgh2, -2.805617954096e-03, TOL));613 assert(isequalRel(satrec.sgh3, -3.755905951700e-03, TOL));614 assert(isequalRel(satrec.sgh4, -7.268074853619e-05, TOL));615 assert(isequalRel(satrec.sh2, 2.948902195180e-03, TOL));616 assert(isequalRel(satrec.sh3, 3.166374712604e-03, TOL));617 assert(isequalRel(satrec.si2, 6.569128551896e-04, TOL));618 assert(isequalRel(satrec.si3, -6.992498193738e-04, TOL));619 assert(isequalRel(satrec.sl2, 4.534351771255e-03, TOL));620 assert(isequalRel(satrec.sl3, 6.836119210765e-03, TOL));621 assert(isequalRel(satrec.sl4, 2.911149634817e-04, TOL));622 assert(isequalRel(satrec.gsto, 2.019617116981e+00, TOL));623 assert(isequalRel(satrec.xfact, -8.754040087689e-03, TOL));624 assert(isequalRel(satrec.xgh2, -1.815715485263e-04, TOL));625 assert(isequalRel(satrec.xgh3, 8.134154625503e-04, TOL));626 assert(isequalRel(satrec.xgh4, -3.826216649032e-05, TOL));627 assert(isequalRel(satrec.xh2, 4.816111792216e-05, TOL));628 assert(isequalRel(satrec.xh3, -6.696421947166e-04, TOL));629 assert(isequalRel(satrec.xi2, -1.383644676752e-04, TOL));630 assert(isequalRel(satrec.xi3, -7.113039969238e-07, TOL));631 assert(isequalRel(satrec.xl2, 4.111399428162e-04, TOL));632 assert(isequalRel(satrec.xl3, -1.491371542789e-03, TOL));633 assert(isequalRel(satrec.xl4, 1.532550149097e-04, TOL));634 assert(isequalRel(satrec.xlamo, 2.158241444311e+00, TOL));635 assert(isequalRel(satrec.zmol, 1.755605827278e+00, TOL));636 assert(isequalRel(satrec.zmos, 2.976104523220e+00, TOL));637 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));638 assert(isequalRel(satrec.xli, 2.158241444311e+00, TOL));639 assert(isequalRel(satrec.xni, 8.762667060363e-03, TOL));640 equal(satrec.method, 'd');641 equal(satrec.init, 'n');642});643// 9880644test('72, satin, 0.000000000000e+00, 2.709710000000e-02, 2.023779417928e+04, 5.716345999363e+00, 1.657329751109e-01, 5.377307065517e-01, 5.069604863892e-03, 5.465934884933e+00', function () {645 var satin, rets, satrec, TOL = 0.000001;646 satin = {647 'error': 0.000000000000e+00,648 'satnum': 9.998000000000e+03,649 'epochyr': 5.000000000000e+00,650 'epochdays': 1.487941792800e+02,651 'ndot': -3.393695767767e-12,652 'nddot': 0.000000000000e+00,653 'bstar': 0.000000000000e+00,654 'inclo': 1.657329751109e-01,655 'nodeo': 5.465934884933e+00,656 'ecco': 2.709710000000e-02,657 'argpo': 5.716345999363e+00,658 'mo': 5.377307065517e-01,659 'no': 5.069604863892e-03,660 'a': 5.992441105490e+00,661 'alta': 5.154818881370e+00,662 'altp': 4.830063329611e+00,663 'jdsatepoch': 2.453519294179e+06 664 };665 satrec = sgp4init(72, satin, 0.000000000000e+00, 2.709710000000e-02, 2.023779417928e+04, 5.716345999363e+00, 1.657329751109e-01, 5.377307065517e-01, 5.069604863892e-03, 5.465934884933e+00);666 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));667 assert(isequalRel(satrec.satnum, 9.998000000000e+03, TOL));668 assert(isequalRel(satrec.epochyr, 5.000000000000e+00, TOL));669 assert(isequalRel(satrec.epochdays, 1.487941792800e+02, TOL));670 assert(isequalRel(satrec.ndot, -3.393695767767e-12, TOL));671 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));672 assert(isequalRel(satrec.bstar, 0.000000000000e+00, TOL));673 assert(isequalRel(satrec.inclo, 1.657329751109e-01, TOL));674 assert(isequalRel(satrec.nodeo, 5.465934884933e+00, TOL));675 assert(isequalRel(satrec.ecco, 2.709710000000e-02, TOL));676 assert(isequalRel(satrec.argpo, 5.716345999363e+00, TOL));677 assert(isequalRel(satrec.mo, 5.377307065517e-01, TOL));678 assert(isequalRel(satrec.no, 5.069384722250e-03, TOL));679 assert(isequalRel(satrec.a, 5.992441105490e+00, TOL));680 assert(isequalRel(satrec.alta, 5.154818881370e+00, TOL));681 assert(isequalRel(satrec.altp, 4.830063329611e+00, TOL));682 assert(isequalRel(satrec.jdsatepoch, 2.453519294179e+06, TOL));683 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));684 assert(isequalRel(satrec.aycof, 1.934392983882e-04, TOL));685 assert(isequalRel(satrec.con41, 1.918349444333e+00, TOL));686 assert(isequalRel(satrec.cc1, 0.000000000000e+00, TOL));687 assert(isequalRel(satrec.cc4, 1.472053521037e-14, TOL));688 assert(isequalRel(satrec.cc5, 3.693461648587e-11, TOL));689 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));690 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));691 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));692 assert(isequalRel(satrec.delmo, 1.086383607728e+00, TOL));693 assert(isequalRel(satrec.eta, 3.260440040582e-02, TOL));694 assert(isequalRel(satrec.argpdot, 4.436332962536e-07, TOL));695 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));696 assert(isequalRel(satrec.sinmao, 5.121882768119e-01, TOL));697 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));698 assert(isequalRel(satrec.t2cof, 0.000000000000e+00, TOL));699 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));700 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));701 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));702 assert(isequalRel(satrec.x1mth2, 2.721685188894e-02, TOL));703 assert(isequalRel(satrec.x7thm1, 5.809482036777e+00, TOL));704 assert(isequalRel(satrec.mdot, 5.069604859229e-03, TOL));705 assert(isequalRel(satrec.nodedot, -2.264779093452e-07, TOL));706 assert(isequalRel(satrec.xlcof, 3.862113846602e-04, TOL));707 assert(isequalRel(satrec.xmcof, -0.000000000000e+00, TOL));708 assert(isequalRel(satrec.nodecf, -0.000000000000e+00, TOL));709 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));710 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));711 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));712 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));713 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));714 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));715 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));716 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));717 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));718 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));719 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));720 assert(isequalRel(satrec.dedt, 2.142414632713e-10, TOL));721 assert(isequalRel(satrec.del1, -1.069242230635e-12, TOL));722 assert(isequalRel(satrec.del2, 2.268988798894e-11, TOL));723 assert(isequalRel(satrec.del3, 3.478296584410e-12, TOL));724 assert(isequalRel(satrec.didt, -2.100861346923e-08, TOL));725 assert(isequalRel(satrec.dmdt, -1.007233935453e-07, TOL));726 assert(isequalRel(satrec.dnodt, 5.240300896038e-08, TOL));727 assert(isequalRel(satrec.domdt, -2.079390322813e-08, TOL));728 assert(isequalRel(satrec.e3, 4.759541749927e-05, TOL));729 assert(isequalRel(satrec.ee2, -5.215931631248e-05, TOL));730 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));731 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));732 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));733 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));734 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));735 assert(isequalRel(satrec.se2, -4.545493382307e-04, TOL));736 assert(isequalRel(satrec.se3, -1.408307282420e-05, TOL));737 assert(isequalRel(satrec.sgh2, 3.341762775910e-04, TOL));738 assert(isequalRel(satrec.sgh3, -1.631250708160e-02, TOL));739 assert(isequalRel(satrec.sgh4, -1.775546834310e-04, TOL));740 assert(isequalRel(satrec.sh2, -7.925299564105e-04, TOL));741 assert(isequalRel(satrec.sh3, -7.614980505856e-04, TOL));742 assert(isequalRel(satrec.si2, -7.593552438778e-04, TOL));743 assert(isequalRel(satrec.si3, 7.406357152159e-04, TOL));744 assert(isequalRel(satrec.sl2, -6.650365679906e-05, TOL));745 assert(isequalRel(satrec.sl3, 1.569236751846e-02, TOL));746 assert(isequalRel(satrec.sl4, 4.145768614330e-04, TOL));747 assert(isequalRel(satrec.gsto, 3.007604046768e+00, TOL));748 assert(isequalRel(satrec.xfact, -4.374900909933e-03, TOL));749 assert(isequalRel(satrec.xgh2, -1.706031133674e-03, TOL));750 assert(isequalRel(satrec.xgh3, -1.810449604366e-03, TOL));751 assert(isequalRel(satrec.xgh4, -9.347216416174e-05, TOL));752 assert(isequalRel(satrec.xh2, -2.227234299372e-04, TOL));753 assert(isequalRel(satrec.xh3, 5.491720843604e-06, TOL));754 assert(isequalRel(satrec.xi2, -6.826729645968e-06, TOL));755 assert(isequalRel(satrec.xi3, 2.099107684283e-04, TOL));756 assert(isequalRel(satrec.xl2, 1.640123445179e-03, TOL));757 assert(isequalRel(satrec.xl3, 1.647042035558e-03, TOL));758 assert(isequalRel(satrec.xl4, 2.182504888112e-04, TOL));759 assert(isequalRel(satrec.xlamo, 2.429222236900e+00, TOL));760 assert(isequalRel(satrec.zmol, 1.585773955921e-01, TOL));761 assert(isequalRel(satrec.zmos, 2.502914127169e+00, TOL));762 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));763 assert(isequalRel(satrec.xli, 2.429222236900e+00, TOL));764 assert(isequalRel(satrec.xni, 5.069384722250e-03, TOL));765 equal(satrec.method, 'd');766 equal(satrec.init, 'n');767});768// 9998769test('72, satin, 1.431100000000e-02, 7.318036000000e-01, 1.118729629788e+04, 8.285461931653e-01, 8.166674822762e-01, 1.817184457299e-01, 9.971844782556e-03, 4.021856443150e+00', function () {770 var satin, rets, satrec, TOL = 0.000001;771 satin = {772 'error': 0.000000000000e+00,773 'satnum': 1.180100000000e+04,774 'epochyr': 8.000000000000e+01,775 'epochdays': 2.302962978800e+02,776 'ndot': 4.336364459231e-08,777 'nddot': 0.000000000000e+00,778 'bstar': 1.431100000000e-02,779 'inclo': 8.166674822762e-01,780 'nodeo': 4.021856443150e+00,781 'ecco': 7.318036000000e-01,782 'argpo': 8.285461931653e-01,783 'mo': 1.817184457299e-01,784 'no': 9.971844782556e-03,785 'a': 3.817123180279e+00,786 'alta': 5.610507665251e+00,787 'altp': 2.373869530742e-02,788 'jdsatepoch': 2.444468796298e+06 789 };790 satrec = sgp4init(72, satin, 1.431100000000e-02, 7.318036000000e-01, 1.118729629788e+04, 8.285461931653e-01, 8.166674822762e-01, 1.817184457299e-01, 9.971844782556e-03, 4.021856443150e+00);791 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));792 assert(isequalRel(satrec.satnum, 1.180100000000e+04, TOL));793 assert(isequalRel(satrec.epochyr, 8.000000000000e+01, TOL));794 assert(isequalRel(satrec.epochdays, 2.302962978800e+02, TOL));795 assert(isequalRel(satrec.ndot, 4.336364459231e-08, TOL));796 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));797 assert(isequalRel(satrec.bstar, 1.431100000000e-02, TOL));798 assert(isequalRel(satrec.inclo, 8.166674822762e-01, TOL));799 assert(isequalRel(satrec.nodeo, 4.021856443150e+00, TOL));800 assert(isequalRel(satrec.ecco, 7.318036000000e-01, TOL));801 assert(isequalRel(satrec.argpo, 8.285461931653e-01, TOL));802 assert(isequalRel(satrec.mo, 1.817184457299e-01, TOL));803 assert(isequalRel(satrec.no, 9.971131604593e-03, TOL));804 assert(isequalRel(satrec.a, 3.817123180279e+00, TOL));805 assert(isequalRel(satrec.alta, 5.610507665251e+00, TOL));806 assert(isequalRel(satrec.altp, 2.373869530742e-02, TOL));807 assert(isequalRel(satrec.jdsatepoch, 2.444468796298e+06, TOL));808 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));809 assert(isequalRel(satrec.aycof, 8.546234428971e-04, TOL));810 assert(isequalRel(satrec.con41, 4.062531798299e-01, TOL));811 assert(isequalRel(satrec.cc1, 2.455322245841e-06, TOL));812 assert(isequalRel(satrec.cc4, 1.110884261662e-04, TOL));813 assert(isequalRel(satrec.cc5, 1.667324930436e-02, TOL));814 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));815 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));816 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));817 assert(isequalRel(satrec.delmo, 7.753547418864e+00, TOL));818 assert(isequalRel(satrec.eta, 9.956413460076e-01, TOL));819 assert(isequalRel(satrec.argpdot, 3.460657560909e-06, TOL));820 assert(isequalRel(satrec.omgcof, 7.183331930496e-18, TOL));821 assert(isequalRel(satrec.sinmao, 1.807199902444e-01, TOL));822 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));823 assert(isequalRel(satrec.t2cof, 3.682983368762e-06, TOL));824 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));825 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));826 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));827 assert(isequalRel(satrec.x1mth2, 5.312489400567e-01, TOL));828 assert(isequalRel(satrec.x7thm1, 2.281257419603e+00, TOL));829 assert(isequalRel(satrec.mdot, 9.971844927633e-03, TOL));830 assert(isequalRel(satrec.nodedot, -3.528457562328e-06, TOL));831 assert(isequalRel(satrec.xlcof, 1.629259507468e-03, TOL));832 assert(isequalRel(satrec.xmcof, -5.857169839716e-13, TOL));833 assert(isequalRel(satrec.nodecf, -1.407642839643e-11, TOL));834 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));835 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));836 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));837 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));838 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));839 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));840 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));841 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));842 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));843 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));844 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));845 assert(isequalRel(satrec.dedt, 2.638606466889e-08, TOL));846 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));847 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));848 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));849 assert(isequalRel(satrec.didt, -3.476737419877e-08, TOL));850 assert(isequalRel(satrec.dmdt, 8.037814258571e-08, TOL));851 assert(isequalRel(satrec.dnodt, -6.033631306028e-08, TOL));852 assert(isequalRel(satrec.domdt, 9.465204016205e-09, TOL));853 assert(isequalRel(satrec.e3, -7.499513315530e-05, TOL));854 assert(isequalRel(satrec.ee2, 3.984687909508e-04, TOL));855 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));856 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));857 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));858 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));859 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));860 assert(isequalRel(satrec.se2, -2.359225311260e-03, TOL));861 assert(isequalRel(satrec.se3, -7.047176327541e-05, TOL));862 assert(isequalRel(satrec.sgh2, -1.822566953373e-04, TOL));863 assert(isequalRel(satrec.sgh3, -2.213029457235e-03, TOL));864 assert(isequalRel(satrec.sgh4, -6.154293814758e-05, TOL));865 assert(isequalRel(satrec.sh2, -1.139407335123e-03, TOL));866 assert(isequalRel(satrec.sh3, 2.509518062136e-03, TOL));867 assert(isequalRel(satrec.si2, -5.208303751558e-05, TOL));868 assert(isequalRel(satrec.si3, 3.287353432187e-03, TOL));869 assert(isequalRel(satrec.sl2, 2.781684009380e-03, TOL));870 assert(isequalRel(satrec.sl3, 3.338363278200e-03, TOL));871 assert(isequalRel(satrec.sl4, 2.590677065105e-04, TOL));872 assert(isequalRel(satrec.gsto, 1.265125075736e+00, TOL));873 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));874 assert(isequalRel(satrec.xgh2, 1.510256022480e-04, TOL));875 assert(isequalRel(satrec.xgh3, 3.555337411429e-04, TOL));876 assert(isequalRel(satrec.xgh4, -3.239876023751e-05, TOL));877 assert(isequalRel(satrec.xh2, 1.128589566218e-04, TOL));878 assert(isequalRel(satrec.xh3, -4.733943399734e-04, TOL));879 assert(isequalRel(satrec.xi2, -6.414087511194e-05, TOL));880 assert(isequalRel(satrec.xi3, -5.695169719647e-04, TOL));881 assert(isequalRel(satrec.xl2, -7.034864700241e-04, TOL));882 assert(isequalRel(satrec.xl3, -5.240671428885e-04, TOL));883 assert(isequalRel(satrec.xl4, 1.363840070226e-04, TOL));884 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));885 assert(isequalRel(satrec.zmol, 3.567468389971e+00, TOL));886 assert(isequalRel(satrec.zmos, 3.896090412269e+00, TOL));887 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));888 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));889 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));890 equal(satrec.method, 'd');891 equal(satrec.init, 'n');892});893// 11801894test('72, satin, 1.000000000000e-04, 1.156200000000e-03, 2.063002844893e+04, 4.617827041512e-01, 1.996377411601e-01, 5.821811010073e+00, 4.314022552805e-03, 6.145897708218e-01', function () {895 var satin, rets, satrec, TOL = 0.000001;896 satin = {897 'error': 0.000000000000e+00,898 'satnum': 1.412800000000e+04,899 'epochyr': 6.000000000000e+00,900 'epochdays': 1.760284489300e+02,901 'ndot': -4.787535100957e-12,902 'nddot': 0.000000000000e+00,903 'bstar': 1.000000000000e-04,904 'inclo': 1.996377411601e-01,905 'nodeo': 6.145897708218e-01,906 'ecco': 1.156200000000e-03,907 'argpo': 4.617827041512e-01,908 'mo': 5.821811010073e+00,909 'no': 4.314022552805e-03,910 'a': 6.673160557243e+00,911 'alta': 5.680876065479e+00,912 'altp': 5.665445049007e+00,913 'jdsatepoch': 2.453911528449e+06 914 };915 satrec = sgp4init(72, satin, 1.000000000000e-04, 1.156200000000e-03, 2.063002844893e+04, 4.617827041512e-01, 1.996377411601e-01, 5.821811010073e+00, 4.314022552805e-03, 6.145897708218e-01);916 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));917 assert(isequalRel(satrec.satnum, 1.412800000000e+04, TOL));918 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));919 assert(isequalRel(satrec.epochdays, 1.760284489300e+02, TOL));920 assert(isequalRel(satrec.ndot, -4.787535100957e-12, TOL));921 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));922 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));923 assert(isequalRel(satrec.inclo, 1.996377411601e-01, TOL));924 assert(isequalRel(satrec.nodeo, 6.145897708218e-01, TOL));925 assert(isequalRel(satrec.ecco, 1.156200000000e-03, TOL));926 assert(isequalRel(satrec.argpo, 4.617827041512e-01, TOL));927 assert(isequalRel(satrec.mo, 5.821811010073e+00, TOL));928 assert(isequalRel(satrec.no, 4.313874514604e-03, TOL));929 assert(isequalRel(satrec.a, 6.673160557243e+00, TOL));930 assert(isequalRel(satrec.alta, 5.680876065479e+00, TOL));931 assert(isequalRel(satrec.altp, 5.665445049007e+00, TOL));932 assert(isequalRel(satrec.jdsatepoch, 2.453911528449e+06, TOL));933 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));934 assert(isequalRel(satrec.aycof, 2.325304065199e-04, TOL));935 assert(isequalRel(satrec.con41, 1.882014339061e+00, TOL));936 assert(isequalRel(satrec.cc1, 5.271206196097e-18, TOL));937 assert(isequalRel(satrec.cc4, 3.653132465373e-16, TOL));938 assert(isequalRel(satrec.cc5, 2.443440693174e-11, TOL));939 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));940 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));941 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));942 assert(isequalRel(satrec.delmo, 1.003665753747e+00, TOL));943 assert(isequalRel(satrec.eta, 1.362934170593e-03, TOL));944 assert(isequalRel(satrec.argpdot, 2.992039723459e-07, TOL));945 assert(isequalRel(satrec.omgcof, 1.004726027146e-19, TOL));946 assert(isequalRel(satrec.sinmao, -4.451791296916e-01, TOL));947 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));948 assert(isequalRel(satrec.t2cof, 7.906809294146e-18, TOL));949 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));950 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));951 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));952 assert(isequalRel(satrec.x1mth2, 3.932855364617e-02, TOL));953 assert(isequalRel(satrec.x7thm1, 5.724700124477e+00, TOL));954 assert(isequalRel(satrec.mdot, 4.314022550354e-03, TOL));955 assert(isequalRel(satrec.nodedot, -1.542095005540e-07, TOL));956 assert(isequalRel(satrec.xlcof, 4.638946303203e-04, TOL));957 assert(isequalRel(satrec.xmcof, -7.745061119293e-11, TOL));958 assert(isequalRel(satrec.nodecf, -2.844567605756e-24, TOL));959 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));960 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));961 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));962 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));963 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));964 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));965 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));966 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));967 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));968 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));969 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));970 assert(isequalRel(satrec.dedt, 7.405672912273e-12, TOL));971 assert(isequalRel(satrec.del1, -5.401617059180e-13, TOL));972 assert(isequalRel(satrec.del2, 1.319183725301e-11, TOL));973 assert(isequalRel(satrec.del3, 1.815021571877e-12, TOL));974 assert(isequalRel(satrec.didt, 1.917646021027e-08, TOL));975 assert(isequalRel(satrec.dmdt, -1.336452685205e-07, TOL));976 assert(isequalRel(satrec.dnodt, 6.865572727316e-08, TOL));977 assert(isequalRel(satrec.domdt, -2.094974096530e-08, TOL));978 assert(isequalRel(satrec.e3, -2.023952527045e-06, TOL));979 assert(isequalRel(satrec.ee2, 3.000360099525e-06, TOL));980 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));981 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));982 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));983 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));984 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));985 assert(isequalRel(satrec.se2, -3.298847558934e-06, TOL));986 assert(isequalRel(satrec.se3, 2.290506347297e-05, TOL));987 assert(isequalRel(satrec.sgh2, -1.939779689075e-02, TOL));988 assert(isequalRel(satrec.sgh3, -2.730323108731e-03, TOL));989 assert(isequalRel(satrec.sgh4, -2.087272183414e-04, TOL));990 assert(isequalRel(satrec.sh2, -2.473782067380e-04, TOL));991 assert(isequalRel(satrec.sh3, -1.070558033105e-03, TOL));992 assert(isequalRel(satrec.si2, -1.043419845310e-03, TOL));993 assert(isequalRel(satrec.si3, 2.771277863689e-04, TOL));994 assert(isequalRel(satrec.sl2, 1.883089760893e-02, TOL));995 assert(isequalRel(satrec.sl3, 2.558661635920e-03, TOL));996 assert(isequalRel(satrec.sl4, 4.870307806874e-04, TOL));997 assert(isequalRel(satrec.gsto, 4.943902851905e+00, TOL));998 assert(isequalRel(satrec.xfact, -4.375061997072e-03, TOL));999 assert(isequalRel(satrec.xgh2, 1.723156593166e-03, TOL));1000 assert(isequalRel(satrec.xgh3, 2.484248746878e-03, TOL));1001 assert(isequalRel(satrec.xgh4, -1.098826820044e-04, TOL));1002 assert(isequalRel(satrec.xh2, -1.510439919480e-04, TOL));1003 assert(isequalRel(satrec.xh3, 1.680607206591e-04, TOL));1004 assert(isequalRel(satrec.xi2, 1.739604100604e-04, TOL));1005 assert(isequalRel(satrec.xi3, 1.380206186465e-04, TOL));1006 assert(isequalRel(satrec.xl2, -1.687937988178e-03, TOL));1007 assert(isequalRel(satrec.xl3, -2.328138479321e-03, TOL));1008 assert(isequalRel(satrec.xl4, 2.563932429410e-04, TOL));1009 assert(isequalRel(satrec.xlamo, 1.954280633142e+00, TOL));1010 assert(isequalRel(satrec.zmol, 1.634038675524e+00, TOL));1011 assert(isequalRel(satrec.zmos, 2.966933705124e+00, TOL));1012 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1013 assert(isequalRel(satrec.xli, 1.954280633142e+00, TOL));1014 assert(isequalRel(satrec.xni, 4.313874514604e-03, TOL));1015 equal(satrec.method, 'd');1016 equal(satrec.init, 'n');1017});1018// 141281019test('72, satin, 1.878400000000e-04, 5.596327000000e-01, 2.060567415771e+04, 4.278836976885e+00, 1.083685404539e+00, 8.372169888892e-01, 2.131535163460e-02, 5.149138427074e+00', function () {1020 var satin, rets, satrec, TOL = 0.000001;1021 satin = {1022 'error': 0.000000000000e+00,1023 'satnum': 1.692500000000e+04,1024 'epochyr': 6.000000000000e+00,1025 'epochdays': 1.516741577100e+02,1026 'ndot': 7.729123930576e-08,1027 'nddot': -6.505214822700e-16,1028 'bstar': 1.878400000000e-04,1029 'inclo': 1.083685404539e+00,1030 'nodeo': 5.149138427074e+00,1031 'ecco': 5.596327000000e-01,1032 'argpo': 4.278836976885e+00,1033 'mo': 8.372169888892e-01,1034 'no': 2.131535163460e-02,1035 'a': 2.300337259586e+00,1036 'alta': 2.587681211079e+00,1037 'altp': 1.299330809330e-02,1038 'jdsatepoch': 2.453887174158e+06 1039 };1040 satrec = sgp4init(72, satin, 1.878400000000e-04, 5.596327000000e-01, 2.060567415771e+04, 4.278836976885e+00, 1.083685404539e+00, 8.372169888892e-01, 2.131535163460e-02, 5.149138427074e+00);1041 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1042 assert(isequalRel(satrec.satnum, 1.692500000000e+04, TOL));1043 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1044 assert(isequalRel(satrec.epochdays, 1.516741577100e+02, TOL));1045 assert(isequalRel(satrec.ndot, 7.729123930576e-08, TOL));1046 assert(isequalRel(satrec.nddot, -6.505214822700e-16, TOL));1047 assert(isequalRel(satrec.bstar, 1.878400000000e-04, TOL));1048 assert(isequalRel(satrec.inclo, 1.083685404539e+00, TOL));1049 assert(isequalRel(satrec.nodeo, 5.149138427074e+00, TOL));1050 assert(isequalRel(satrec.ecco, 5.596327000000e-01, TOL));1051 assert(isequalRel(satrec.argpo, 4.278836976885e+00, TOL));1052 assert(isequalRel(satrec.mo, 8.372169888892e-01, TOL));1053 assert(isequalRel(satrec.no, 2.131732105901e-02, TOL));1054 assert(isequalRel(satrec.a, 2.300337259586e+00, TOL));1055 assert(isequalRel(satrec.alta, 2.587681211079e+00, TOL));1056 assert(isequalRel(satrec.altp, 1.299330809330e-02, TOL));1057 assert(isequalRel(satrec.jdsatepoch, 2.453887174158e+06, TOL));1058 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1059 assert(isequalRel(satrec.aycof, 1.036155981069e-03, TOL));1060 assert(isequalRel(satrec.con41, -3.427179465249e-01, TOL));1061 assert(isequalRel(satrec.cc1, 2.418296387339e-06, TOL));1062 assert(isequalRel(satrec.cc4, 1.320286569381e-02, TOL));1063 assert(isequalRel(satrec.cc5, 9.335374337378e-01, TOL));1064 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1065 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1066 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1067 assert(isequalRel(satrec.delmo, 4.611401199408e+00, TOL));1068 assert(isequalRel(satrec.eta, 9.924481486794e-01, TOL));1069 assert(isequalRel(satrec.argpdot, 6.555617764618e-07, TOL));1070 assert(isequalRel(satrec.omgcof, -2.050582310845e-16, TOL));1071 assert(isequalRel(satrec.sinmao, 7.427826822235e-01, TOL));1072 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1073 assert(isequalRel(satrec.t2cof, 3.627444581008e-06, TOL));1074 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1075 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1076 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1077 assert(isequalRel(satrec.x1mth2, 7.809059821750e-01, TOL));1078 assert(isequalRel(satrec.x7thm1, 5.336581247751e-01, TOL));1079 assert(isequalRel(satrec.mdot, 2.131535165822e-02, TOL));1080 assert(isequalRel(satrec.nodedot, -6.488927718517e-06, TOL));1081 assert(isequalRel(satrec.xlcof, 1.884597590117e-03, TOL));1082 assert(isequalRel(satrec.xmcof, -4.813611076178e-12, TOL));1083 assert(isequalRel(satrec.nodecf, -3.774194128382e-11, TOL));1084 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1085 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1086 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1087 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1088 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1089 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1090 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1091 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1092 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1093 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1094 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1095 assert(isequalRel(satrec.dedt, -2.324540208861e-09, TOL));1096 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1097 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1098 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1099 assert(isequalRel(satrec.didt, -9.012956177194e-09, TOL));1100 assert(isequalRel(satrec.dmdt, 3.250770527931e-08, TOL));1101 assert(isequalRel(satrec.dnodt, -2.039277854983e-08, TOL));1102 assert(isequalRel(satrec.domdt, -1.115284366841e-08, TOL));1103 assert(isequalRel(satrec.e3, -1.668567580056e-04, TOL));1104 assert(isequalRel(satrec.ee2, -8.275330366745e-05, TOL));1105 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1106 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1107 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1108 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1109 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1110 assert(isequalRel(satrec.se2, 1.125966825154e-03, TOL));1111 assert(isequalRel(satrec.se3, 5.685080602400e-05, TOL));1112 assert(isequalRel(satrec.sgh2, -8.864271738038e-05, TOL));1113 assert(isequalRel(satrec.sgh3, 1.625809438486e-03, TOL));1114 assert(isequalRel(satrec.sgh4, -3.500523155064e-05, TOL));1115 assert(isequalRel(satrec.sh2, 2.744561082561e-04, TOL));1116 assert(isequalRel(satrec.sh3, -9.759618675546e-04, TOL));1117 assert(isequalRel(satrec.si2, -4.991454790905e-04, TOL));1118 assert(isequalRel(satrec.si3, -4.573037379522e-04, TOL));1119 assert(isequalRel(satrec.sl2, 1.462141038683e-04, TOL));1120 assert(isequalRel(satrec.sl3, -1.456991037415e-03, TOL));1121 assert(isequalRel(satrec.sl4, 1.117866087106e-04, TOL));1122 assert(isequalRel(satrec.gsto, 2.298863660699e+00, TOL));1123 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1124 assert(isequalRel(satrec.xgh2, 2.432700701456e-04, TOL));1125 assert(isequalRel(satrec.xgh3, -1.126161998557e-04, TOL));1126 assert(isequalRel(satrec.xgh4, -1.842820863294e-05, TOL));1127 assert(isequalRel(satrec.xh2, -1.621327565099e-04, TOL));1128 assert(isequalRel(satrec.xh3, 5.347365712173e-05, TOL));1129 assert(isequalRel(satrec.xi2, -1.237488399592e-05, TOL));1130 assert(isequalRel(satrec.xi3, 1.015094158511e-04, TOL));1131 assert(isequalRel(satrec.xl2, -2.580143538619e-04, TOL));1132 assert(isequalRel(satrec.xl3, 5.639729900996e-05, TOL));1133 assert(isequalRel(satrec.xl4, 5.884911644441e-05, TOL));1134 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1135 assert(isequalRel(satrec.zmol, 2.363784803869e+00, TOL));1136 assert(isequalRel(satrec.zmos, 2.547991747703e+00, TOL));1137 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1138 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1139 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1140 equal(satrec.method, 'd');1141 equal(satrec.init, 'n');1142});1143// 169251144test('72, satin, 0.000000000000e+00, 7.864447000000e-01, 2.045279166667e+04, 3.426128445555e+00, 2.155725972308e-01, 6.222933050742e+00, 1.077308058718e-03, 3.271188586538e+00', function () {1145 var satin, rets, satrec, TOL = 0.000001;1146 satin = {1147 'error': 0.000000000000e+00,1148 'satnum': 2.041300000000e+04,1149 'epochyr': 5.000000000000e+00,1150 'epochdays': 3.637916666700e+02,1151 'ndot': 0.000000000000e+00,1152 'nddot': 0.000000000000e+00,1153 'bstar': 0.000000000000e+00,1154 'inclo': 2.155725972308e-01,1155 'nodeo': 3.271188586538e+00,1156 'ecco': 7.864447000000e-01,1157 'argpo': 3.426128445555e+00,1158 'mo': 6.222933050742e+00,1159 'no': 1.077308058718e-03,1160 'a': 1.682777032576e+01,1161 'alta': 2.906188111126e+01,1162 'altp': 2.593659540248e+00,1163 'jdsatepoch': 2.453734291667e+06 1164 };1165 satrec = sgp4init(72, satin, 0.000000000000e+00, 7.864447000000e-01, 2.045279166667e+04, 3.426128445555e+00, 2.155725972308e-01, 6.222933050742e+00, 1.077308058718e-03, 3.271188586538e+00);1166 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1167 assert(isequalRel(satrec.satnum, 2.041300000000e+04, TOL));1168 assert(isequalRel(satrec.epochyr, 5.000000000000e+00, TOL));1169 assert(isequalRel(satrec.epochdays, 3.637916666700e+02, TOL));1170 assert(isequalRel(satrec.ndot, 0.000000000000e+00, TOL));1171 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1172 assert(isequalRel(satrec.bstar, 0.000000000000e+00, TOL));1173 assert(isequalRel(satrec.inclo, 2.155725972308e-01, TOL));1174 assert(isequalRel(satrec.nodeo, 3.271188586538e+00, TOL));1175 assert(isequalRel(satrec.ecco, 7.864447000000e-01, TOL));1176 assert(isequalRel(satrec.argpo, 3.426128445555e+00, TOL));1177 assert(isequalRel(satrec.mo, 6.222933050742e+00, TOL));1178 assert(isequalRel(satrec.no, 1.077283640185e-03, TOL));1179 assert(isequalRel(satrec.a, 1.682777032576e+01, TOL));1180 assert(isequalRel(satrec.alta, 2.906188111126e+01, TOL));1181 assert(isequalRel(satrec.altp, 2.593659540248e+00, TOL));1182 assert(isequalRel(satrec.jdsatepoch, 2.453734291667e+06, TOL));1183 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1184 assert(isequalRel(satrec.aycof, 2.508131883204e-04, TOL));1185 assert(isequalRel(satrec.con41, 1.862731633406e+00, TOL));1186 assert(isequalRel(satrec.cc1, 0.000000000000e+00, TOL));1187 assert(isequalRel(satrec.cc4, 9.750860292069e-14, TOL));1188 assert(isequalRel(satrec.cc5, 1.358849252297e-10, TOL));1189 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1190 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1191 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1192 assert(isequalRel(satrec.delmo, 6.181481065556e+00, TOL));1193 assert(isequalRel(satrec.eta, 8.367780746978e-01, TOL));1194 assert(isequalRel(satrec.argpdot, 8.005078790527e-08, TOL));1195 assert(isequalRel(satrec.omgcof, -0.000000000000e+00, TOL));1196 assert(isequalRel(satrec.sinmao, -6.021580708088e-02, TOL));1197 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1198 assert(isequalRel(satrec.t2cof, 0.000000000000e+00, TOL));1199 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1200 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1201 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1202 assert(isequalRel(satrec.x1mth2, 4.575612219784e-02, TOL));1203 assert(isequalRel(satrec.x7thm1, 5.679707144615e+00, TOL));1204 assert(isequalRel(satrec.mdot, 1.077308058974e-03, TOL));1205 assert(isequalRel(satrec.nodedot, -4.147025214065e-08, TOL));1206 assert(isequalRel(satrec.xlcof, 5.001580578347e-04, TOL));1207 assert(isequalRel(satrec.xmcof, -0.000000000000e+00, TOL));1208 assert(isequalRel(satrec.nodecf, -0.000000000000e+00, TOL));1209 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1210 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1211 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1212 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1213 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1214 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1215 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1216 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1217 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1218 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1219 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1220 assert(isequalRel(satrec.dedt, 9.991744175572e-08, TOL));1221 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1222 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1223 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1224 assert(isequalRel(satrec.didt, -2.656246157481e-07, TOL));1225 assert(isequalRel(satrec.dmdt, -7.442607144689e-07, TOL));1226 assert(isequalRel(satrec.dnodt, -7.900872576398e-07, TOL));1227 assert(isequalRel(satrec.domdt, 9.925475448625e-07, TOL));1228 assert(isequalRel(satrec.e3, -4.548826202443e-03, TOL));1229 assert(isequalRel(satrec.ee2, 2.057187923104e-03, TOL));1230 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1231 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1232 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1233 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1234 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1235 assert(isequalRel(satrec.se2, 2.969569919355e-02, TOL));1236 assert(isequalRel(satrec.se3, 1.468368332662e-02, TOL));1237 assert(isequalRel(satrec.sgh2, -1.634808994984e-02, TOL));1238 assert(isequalRel(satrec.sgh3, 4.324216378214e-02, TOL));1239 assert(isequalRel(satrec.sgh4, -5.162579880111e-04, TOL));1240 assert(isequalRel(satrec.sh2, 1.425174198066e-02, TOL));1241 assert(isequalRel(satrec.sh3, 4.931955088329e-03, TOL));1242 assert(isequalRel(satrec.si2, 5.144176519066e-02, TOL));1243 assert(isequalRel(satrec.si3, -8.646214930954e-04, TOL));1244 assert(isequalRel(satrec.sl2, 3.951910009817e-02, TOL));1245 assert(isequalRel(satrec.sl3, -1.241558054094e-01, TOL));1246 assert(isequalRel(satrec.sl4, 2.467220444289e-03, TOL));1247 assert(isequalRel(satrec.gsto, 4.071885638059e-01, TOL));1248 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1249 assert(isequalRel(satrec.xgh2, 6.919617584769e-03, TOL));1250 assert(isequalRel(satrec.xgh3, 2.084732624778e-03, TOL));1251 assert(isequalRel(satrec.xgh4, -2.717796594982e-04, TOL));1252 assert(isequalRel(satrec.xh2, 7.186248636015e-04, TOL));1253 assert(isequalRel(satrec.xh3, -2.561986795698e-03, TOL));1254 assert(isequalRel(satrec.xi2, -5.475272881099e-04, TOL));1255 assert(isequalRel(satrec.xi3, -9.211923499783e-03, TOL));1256 assert(isequalRel(satrec.xl2, -2.030877598251e-02, TOL));1257 assert(isequalRel(satrec.xl3, -4.767341552120e-03, TOL));1258 assert(isequalRel(satrec.xl4, 1.298847374429e-03, TOL));1259 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1260 assert(isequalRel(satrec.zmol, 5.201540682068e+00, TOL));1261 assert(isequalRel(satrec.zmos, 6.201295960309e+00, TOL));1262 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1263 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1264 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1265 equal(satrec.method, 'd');1266 equal(satrec.init, 'n');1267});1268// 204131269test('72, satin, -1.352500000000e-04, 7.421690000000e-01, 2.063002341244e+04, 4.416489349660e+00, 1.085156717098e+00, 3.517903093612e-01, 8.782060201923e-03, 3.455919470557e+00', function () {1270 var satin, rets, satrec, TOL = 0.000001;1271 satin = {1272 'error': 0.000000000000e+00,1273 'satnum': 2.189700000000e+04,1274 'epochyr': 6.000000000000e+00,1275 'epochdays': 1.760234124400e+02,1276 'ndot': -3.857298850328e-11,1277 'nddot': 0.000000000000e+00,1278 'bstar': -1.352500000000e-04,1279 'inclo': 1.085156717098e+00,1280 'nodeo': 3.455919470557e+00,1281 'ecco': 7.421690000000e-01,1282 'argpo': 4.416489349660e+00,1283 'mo': 3.517903093612e-01,1284 'no': 8.782060201923e-03,1285 'a': 4.154533274527e+00,1286 'alta': 6.237899080349e+00,1287 'altp': 7.116746870457e-02,1288 'jdsatepoch': 2.453911523412e+06 1289 };1290 satrec = sgp4init(72, satin, -1.352500000000e-04, 7.421690000000e-01, 2.063002341244e+04, 4.416489349660e+00, 1.085156717098e+00, 3.517903093612e-01, 8.782060201923e-03, 3.455919470557e+00);1291 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1292 assert(isequalRel(satrec.satnum, 2.189700000000e+04, TOL));1293 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1294 assert(isequalRel(satrec.epochdays, 1.760234124400e+02, TOL));1295 assert(isequalRel(satrec.ndot, -3.857298850328e-11, TOL));1296 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1297 assert(isequalRel(satrec.bstar, -1.352500000000e-04, TOL));1298 assert(isequalRel(satrec.inclo, 1.085156717098e+00, TOL));1299 assert(isequalRel(satrec.nodeo, 3.455919470557e+00, TOL));1300 assert(isequalRel(satrec.ecco, 7.421690000000e-01, TOL));1301 assert(isequalRel(satrec.argpo, 4.416489349660e+00, TOL));1302 assert(isequalRel(satrec.mo, 3.517903093612e-01, TOL));1303 assert(isequalRel(satrec.no, 8.782535528761e-03, TOL));1304 assert(isequalRel(satrec.a, 4.154533274527e+00, TOL));1305 assert(isequalRel(satrec.alta, 6.237899080349e+00, TOL));1306 assert(isequalRel(satrec.altp, 7.116746870457e-02, TOL));1307 assert(isequalRel(satrec.jdsatepoch, 2.453911523412e+06, TOL));1308 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1309 assert(isequalRel(satrec.aycof, 1.036962365648e-03, TOL));1310 assert(isequalRel(satrec.con41, -3.463657886765e-01, TOL));1311 assert(isequalRel(satrec.cc1, -5.832456330155e-11, TOL));1312 assert(isequalRel(satrec.cc4, 2.711979715083e-07, TOL));1313 assert(isequalRel(satrec.cc5, 4.632159335659e-05, TOL));1314 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1315 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1316 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1317 assert(isequalRel(satrec.delmo, 7.090728303385e+00, TOL));1318 assert(isequalRel(satrec.eta, 9.812550443388e-01, TOL));1319 assert(isequalRel(satrec.argpdot, 1.816762761577e-07, TOL));1320 assert(isequalRel(satrec.omgcof, 1.188366956468e-20, TOL));1321 assert(isequalRel(satrec.sinmao, 3.445790247894e-01, TOL));1322 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1323 assert(isequalRel(satrec.t2cof, -8.748684495232e-11, TOL));1324 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1325 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1326 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1327 assert(isequalRel(satrec.x1mth2, 7.821219295588e-01, TOL));1328 assert(isequalRel(satrec.x7thm1, 5.251464930881e-01, TOL));1329 assert(isequalRel(satrec.mdot, 8.782060217382e-03, TOL));1330 assert(isequalRel(satrec.nodedot, -1.910984836962e-06, TOL));1331 assert(isequalRel(satrec.xlcof, 1.885437909935e-03, TOL));1332 assert(isequalRel(satrec.xmcof, 2.388216628336e-15, TOL));1333 assert(isequalRel(satrec.nodecf, 1.752965458283e-16, TOL));1334 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));1335 assert(isequalRel(satrec.d2201, -1.358430480330e-11, TOL));1336 assert(isequalRel(satrec.d2211, 8.393534226859e-11, TOL));1337 assert(isequalRel(satrec.d3210, -7.731467500396e-12, TOL));1338 assert(isequalRel(satrec.d3222, -1.225068944742e-11, TOL));1339 assert(isequalRel(satrec.d4410, 4.702956210526e-12, TOL));1340 assert(isequalRel(satrec.d4422, 8.003291640479e-12, TOL));1341 assert(isequalRel(satrec.d5220, -6.224656265138e-12, TOL));1342 assert(isequalRel(satrec.d5232, 2.558930440722e-12, TOL));1343 assert(isequalRel(satrec.d5421, -5.640794406041e-12, TOL));1344 assert(isequalRel(satrec.d5433, -3.910753384831e-12, TOL));1345 assert(isequalRel(satrec.dedt, 1.441546149773e-08, TOL));1346 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1347 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1348 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1349 assert(isequalRel(satrec.didt, -1.685608671533e-09, TOL));1350 assert(isequalRel(satrec.dmdt, 1.948849567720e-07, TOL));1351 assert(isequalRel(satrec.dnodt, -6.831807033508e-09, TOL));1352 assert(isequalRel(satrec.domdt, -7.014119890435e-08, TOL));1353 assert(isequalRel(satrec.e3, -5.809658803806e-05, TOL));1354 assert(isequalRel(satrec.ee2, 1.029719050358e-04, TOL));1355 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1356 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1357 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1358 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1359 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1360 assert(isequalRel(satrec.se2, -5.827763896555e-04, TOL));1361 assert(isequalRel(satrec.se3, 7.782941825865e-04, TOL));1362 assert(isequalRel(satrec.sgh2, -1.403967386252e-05, TOL));1363 assert(isequalRel(satrec.sgh3, -1.232243049360e-03, TOL));1364 assert(isequalRel(satrec.sgh4, -6.871312109088e-05, TOL));1365 assert(isequalRel(satrec.sh2, 1.040864137284e-03, TOL));1366 assert(isequalRel(satrec.sh3, 1.047903595216e-03, TOL));1367 assert(isequalRel(satrec.si2, 1.704326979978e-03, TOL));1368 assert(isequalRel(satrec.si3, 5.269146587838e-04, TOL));1369 assert(isequalRel(satrec.sl2, 6.958156453603e-04, TOL));1370 assert(isequalRel(satrec.sl3, -1.138733166786e-03, TOL));1371 assert(isequalRel(satrec.sl4, 2.956953768062e-04, TOL));1372 assert(isequalRel(satrec.gsto, 4.912171010008e+00, TOL));1373 assert(isequalRel(satrec.xfact, -8.754654235733e-03, TOL));1374 assert(isequalRel(satrec.xgh2, -1.645505874222e-04, TOL));1375 assert(isequalRel(satrec.xgh3, 1.067426866480e-04, TOL));1376 assert(isequalRel(satrec.xgh4, -3.617344251676e-05, TOL));1377 assert(isequalRel(satrec.xh2, -7.385557332388e-05, TOL));1378 assert(isequalRel(satrec.xh3, -1.379346924380e-04, TOL));1379 assert(isequalRel(satrec.xi2, -1.440041796867e-04, TOL));1380 assert(isequalRel(satrec.xi3, -2.339553088854e-04, TOL));1381 assert(isequalRel(satrec.xl2, -1.733725252342e-04, TOL));1382 assert(isequalRel(satrec.xl3, 1.029442407285e-04, TOL));1383 assert(isequalRel(satrec.xl4, 1.556663348362e-04, TOL));1384 assert(isequalRel(satrec.xlamo, -2.560712769541e+00, TOL));1385 assert(isequalRel(satrec.zmol, 1.632890219145e+00, TOL));1386 assert(isequalRel(satrec.zmos, 2.966847067538e+00, TOL));1387 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1388 assert(isequalRel(satrec.xli, -2.560712769541e+00, TOL));1389 assert(isequalRel(satrec.xni, 8.782535528761e-03, TOL));1390 equal(satrec.method, 'd');1391 equal(satrec.init, 'n');1392});1393// 218971394test('72, satin, 4.994900000000e-04, 3.087230000000e-02, 2.054846235912e+04, 4.676136746492e+00, 1.084697695505e+00, 1.548791215586e+00, 6.962749021661e-02, 1.352103080862e+00', function () {1395 var satin, rets, satrec, TOL = 0.000001;1396 satin = {1397 'error': 0.000000000000e+00,1398 'satnum': 2.231200000000e+04,1399 'epochyr': 6.000000000000e+00,1400 'epochdays': 9.446235912000e+01,1401 'ndot': 3.030085476634e-06,1402 'nddot': 1.723108624943e-14,1403 'bstar': 4.994900000000e-04,1404 'inclo': 1.084697695505e+00,1405 'nodeo': 1.352103080862e+00,1406 'ecco': 3.087230000000e-02,1407 'argpo': 4.676136746492e+00,1408 'mo': 1.548791215586e+00,1409 'no': 6.962749021661e-02,1410 'a': 1.044879048565e+00,1411 'alta': 7.713686801602e-02,1412 'altp': 1.262122911400e-02,1413 'jdsatepoch': 2.453829962359e+06 1414 };1415 satrec = sgp4init(72, satin, 4.994900000000e-04, 3.087230000000e-02, 2.054846235912e+04, 4.676136746492e+00, 1.084697695505e+00, 1.548791215586e+00, 6.962749021661e-02, 1.352103080862e+00);1416 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1417 assert(isequalRel(satrec.satnum, 2.231200000000e+04, TOL));1418 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1419 assert(isequalRel(satrec.epochdays, 9.446235912000e+01, TOL));1420 assert(isequalRel(satrec.ndot, 3.030085476634e-06, TOL));1421 assert(isequalRel(satrec.nddot, 1.723108624943e-14, TOL));1422 assert(isequalRel(satrec.bstar, 4.994900000000e-04, TOL));1423 assert(isequalRel(satrec.inclo, 1.084697695505e+00, TOL));1424 assert(isequalRel(satrec.nodeo, 1.352103080862e+00, TOL));1425 assert(isequalRel(satrec.ecco, 3.087230000000e-02, TOL));1426 assert(isequalRel(satrec.argpo, 4.676136746492e+00, TOL));1427 assert(isequalRel(satrec.mo, 1.548791215586e+00, TOL));1428 assert(isequalRel(satrec.no, 6.964539419426e-02, TOL));1429 assert(isequalRel(satrec.a, 1.044879048565e+00, TOL));1430 assert(isequalRel(satrec.alta, 7.713686801602e-02, TOL));1431 assert(isequalRel(satrec.altp, 1.262122911400e-02, TOL));1432 assert(isequalRel(satrec.jdsatepoch, 2.453829962359e+06, TOL));1433 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1434 assert(isequalRel(satrec.aycof, 1.036711029802e-03, TOL));1435 assert(isequalRel(satrec.con41, -3.452285162292e-01, TOL));1436 assert(isequalRel(satrec.cc1, 3.375003429857e-05, TOL));1437 assert(isequalRel(satrec.cc4, 1.304503580746e-01, TOL));1438 assert(isequalRel(satrec.cc5, 2.910356158160e+00, TOL));1439 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1440 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1441 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1442 assert(isequalRel(satrec.delmo, 1.052100787201e+00, TOL));1443 assert(isequalRel(satrec.eta, 7.759622143528e-01, TOL));1444 assert(isequalRel(satrec.argpdot, 4.626953140656e-06, TOL));1445 assert(isequalRel(satrec.omgcof, -8.249597709173e-08, TOL));1446 assert(isequalRel(satrec.sinmao, 9.997578973099e-01, TOL));1447 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1448 assert(isequalRel(satrec.t2cof, 5.062505144786e-05, TOL));1449 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1450 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1451 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1452 assert(isequalRel(satrec.x1mth2, 7.817428387431e-01, TOL));1453 assert(isequalRel(satrec.x7thm1, 5.278001287984e-01, TOL));1454 assert(isequalRel(satrec.mdot, 6.962748907452e-02, TOL));1455 assert(isequalRel(satrec.nodedot, -4.844420412010e-05, TOL));1456 assert(isequalRel(satrec.xlcof, 1.885176460051e-03, TOL));1457 assert(isequalRel(satrec.xmcof, -2.814305098253e-04, TOL));1458 assert(isequalRel(satrec.nodecf, -5.724210237297e-09, TOL));1459 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1460 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1461 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1462 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1463 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1464 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1465 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1466 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1467 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1468 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1469 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1470 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));1471 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1472 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1473 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1474 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));1475 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));1476 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));1477 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));1478 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));1479 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));1480 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1481 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1482 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1483 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1484 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1485 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));1486 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));1487 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));1488 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));1489 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));1490 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));1491 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));1492 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));1493 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));1494 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));1495 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));1496 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));1497 assert(isequalRel(satrec.gsto, 6.267076519855e+00, TOL));1498 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1499 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));1500 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));1501 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));1502 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));1503 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));1504 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));1505 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));1506 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));1507 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));1508 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));1509 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1510 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));1511 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));1512 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1513 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1514 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1515 equal(satrec.method, 'n');1516 equal(satrec.init, 'n');1517});1518// 223121519//# *** error: t:= 494.202867 *** code = 11520test('72, satin, 2.986800000000e-04, 7.541712000000e-01, 2.063055909107e+04, 4.421379762224e+00, 1.108345161540e+00, 3.276925483789e-01, 8.581775554476e-03, 6.186235757890e+00', function () {1521 var satin, rets, satrec, TOL = 0.000001;1522 satin = {1523 'error': 0.000000000000e+00,1524 'satnum': 2.267400000000e+04,1525 'epochyr': 6.000000000000e+00,1526 'epochdays': 1.765590910700e+02,1527 'ndot': 6.426811360208e-11,1528 'nddot': 0.000000000000e+00,1529 'bstar': 2.986800000000e-04,1530 'inclo': 1.108345161540e+00,1531 'nodeo': 6.186235757890e+00,1532 'ecco': 7.541712000000e-01,1533 'argpo': 4.421379762224e+00,1534 'mo': 3.276925483789e-01,1535 'no': 8.581775554476e-03,1536 'a': 4.218924436776e+00,1537 'alta': 6.400715741968e+00,1538 'altp': 3.713313158324e-02,1539 'jdsatepoch': 2.453912059091e+06 1540 };1541 satrec = sgp4init(72, satin, 2.986800000000e-04, 7.541712000000e-01, 2.063055909107e+04, 4.421379762224e+00, 1.108345161540e+00, 3.276925483789e-01, 8.581775554476e-03, 6.186235757890e+00);1542 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1543 assert(isequalRel(satrec.satnum, 2.267400000000e+04, TOL));1544 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1545 assert(isequalRel(satrec.epochdays, 1.765590910700e+02, TOL));1546 assert(isequalRel(satrec.ndot, 6.426811360208e-11, TOL));1547 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1548 assert(isequalRel(satrec.bstar, 2.986800000000e-04, TOL));1549 assert(isequalRel(satrec.inclo, 1.108345161540e+00, TOL));1550 assert(isequalRel(satrec.nodeo, 6.186235757890e+00, TOL));1551 assert(isequalRel(satrec.ecco, 7.541712000000e-01, TOL));1552 assert(isequalRel(satrec.argpo, 4.421379762224e+00, TOL));1553 assert(isequalRel(satrec.mo, 3.276925483789e-01, TOL));1554 assert(isequalRel(satrec.no, 8.582332516240e-03, TOL));1555 assert(isequalRel(satrec.a, 4.218924436776e+00, TOL));1556 assert(isequalRel(satrec.alta, 6.400715741968e+00, TOL));1557 assert(isequalRel(satrec.altp, 3.713313158324e-02, TOL));1558 assert(isequalRel(satrec.jdsatepoch, 2.453912059091e+06, TOL));1559 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1560 assert(isequalRel(satrec.aycof, 1.049373693837e-03, TOL));1561 assert(isequalRel(satrec.con41, -4.028688855919e-01, TOL));1562 assert(isequalRel(satrec.cc1, 2.595887844361e-09, TOL));1563 assert(isequalRel(satrec.cc4, 5.255038362816e-06, TOL));1564 assert(isequalRel(satrec.cc5, 9.189456533467e-04, TOL));1565 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1566 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1567 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1568 assert(isequalRel(satrec.delmo, 7.295146735799e+00, TOL));1569 assert(isequalRel(satrec.eta, 9.922473468655e-01, TOL));1570 assert(isequalRel(satrec.argpdot, -1.142224275335e-08, TOL));1571 assert(isequalRel(satrec.omgcof, -2.270642728079e-20, TOL));1572 assert(isequalRel(satrec.sinmao, 3.218592207367e-01, TOL));1573 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1574 assert(isequalRel(satrec.t2cof, 3.893831766541e-09, TOL));1575 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1576 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1577 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1578 assert(isequalRel(satrec.x1mth2, 8.009562951973e-01, TOL));1579 assert(isequalRel(satrec.x7thm1, 3.933059336189e-01, TOL));1580 assert(isequalRel(satrec.mdot, 8.581775564227e-03, TOL));1581 assert(isequalRel(satrec.nodedot, -1.877848338725e-06, TOL));1582 assert(isequalRel(satrec.xlcof, 1.897798118762e-03, TOL));1583 assert(isequalRel(satrec.xmcof, -4.732771188141e-15, TOL));1584 assert(isequalRel(satrec.nodecf, -7.360860344711e-15, TOL));1585 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));1586 assert(isequalRel(satrec.d2201, -1.241189028817e-11, TOL));1587 assert(isequalRel(satrec.d2211, 8.551864262335e-11, TOL));1588 assert(isequalRel(satrec.d3210, -6.602089272382e-12, TOL));1589 assert(isequalRel(satrec.d3222, -1.302466004394e-11, TOL));1590 assert(isequalRel(satrec.d4410, 4.891528985291e-12, TOL));1591 assert(isequalRel(satrec.d4422, 8.891260588609e-12, TOL));1592 assert(isequalRel(satrec.d5220, -6.477888050339e-12, TOL));1593 assert(isequalRel(satrec.d5232, 2.138467008675e-12, TOL));1594 assert(isequalRel(satrec.d5421, -5.750904185904e-12, TOL));1595 assert(isequalRel(satrec.d5433, -4.510549332610e-12, TOL));1596 assert(isequalRel(satrec.dedt, 7.330390566401e-09, TOL));1597 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1598 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1599 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1600 assert(isequalRel(satrec.didt, -2.350896248702e-08, TOL));1601 assert(isequalRel(satrec.dmdt, -2.726008010046e-09, TOL));1602 assert(isequalRel(satrec.dnodt, -9.800554699737e-08, TOL));1603 assert(isequalRel(satrec.domdt, 3.479071142642e-08, TOL));1604 assert(isequalRel(satrec.e3, -1.880237977527e-04, TOL));1605 assert(isequalRel(satrec.ee2, 6.551908742706e-04, TOL));1606 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1607 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1608 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1609 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1610 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1611 assert(isequalRel(satrec.se2, -1.668215845123e-03, TOL));1612 assert(isequalRel(satrec.se3, 3.610858069376e-03, TOL));1613 assert(isequalRel(satrec.sgh2, -4.299448087716e-03, TOL));1614 assert(isequalRel(satrec.sgh3, -1.722984622184e-03, TOL));1615 assert(isequalRel(satrec.sgh4, -6.889598529018e-05, TOL));1616 assert(isequalRel(satrec.sh2, 3.935976325614e-03, TOL));1617 assert(isequalRel(satrec.sh3, 3.059743184660e-03, TOL));1618 assert(isequalRel(satrec.si2, 1.789568818084e-03, TOL));1619 assert(isequalRel(satrec.si3, 2.366876188168e-04, TOL));1620 assert(isequalRel(satrec.sl2, 9.202998763432e-03, TOL));1621 assert(isequalRel(satrec.sl3, 2.742276317175e-03, TOL));1622 assert(isequalRel(satrec.sl4, 3.044773891692e-04, TOL));1623 assert(isequalRel(satrec.gsto, 2.003968969617e+00, TOL));1624 assert(isequalRel(satrec.xfact, -8.755049561816e-03, TOL));1625 assert(isequalRel(satrec.xgh2, 2.558144451794e-04, TOL));1626 assert(isequalRel(satrec.xgh3, 7.760342525429e-04, TOL));1627 assert(isequalRel(satrec.xgh4, -3.626970983073e-05, TOL));1628 assert(isequalRel(satrec.xh2, -4.442804590880e-05, TOL));1629 assert(isequalRel(satrec.xh3, -7.585547023917e-04, TOL));1630 assert(isequalRel(satrec.xi2, -1.445258766608e-04, TOL));1631 assert(isequalRel(satrec.xi3, -2.241607759555e-04, TOL));1632 assert(isequalRel(satrec.xl2, -6.443953743437e-04, TOL));1633 assert(isequalRel(satrec.xl3, -1.634546261908e-03, TOL));1634 assert(isequalRel(satrec.xl4, 1.602895511062e-04, TOL));1635 assert(isequalRel(satrec.xlamo, 2.409040817745e+00, TOL));1636 assert(isequalRel(satrec.zmol, 1.755039480870e+00, TOL));1637 assert(isequalRel(satrec.zmos, 2.976061799015e+00, TOL));1638 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1639 assert(isequalRel(satrec.xli, 2.409040817745e+00, TOL));1640 assert(isequalRel(satrec.xni, 8.582332516240e-03, TOL));1641 equal(satrec.method, 'd');1642 equal(satrec.init, 'n');1643});1644// 226741645test('72, satin, 7.659000000000e-04, 7.258491000000e-01, 2.062945752052e+04, 5.167015834603e+00, 1.230387309486e-01, 1.449687929999e-01, 9.857037897024e-03, 3.138517383448e+00', function () {1646 var satin, rets, satrec, TOL = 0.000001;1647 satin = {1648 'error': 0.000000000000e+00,1649 'satnum': 2.317700000000e+04,1650 'epochyr': 6.000000000000e+00,1651 'epochdays': 1.754575205200e+02,1652 'ndot': 1.169613005677e-11,1653 'nddot': 0.000000000000e+00,1654 'bstar': 7.659000000000e-04,1655 'inclo': 1.230387309486e-01,1656 'nodeo': 3.138517383448e+00,1657 'ecco': 7.258491000000e-01,1658 'argpo': 5.167015834603e+00,1659 'mo': 1.449687929999e-01,1660 'no': 9.857037897024e-03,1661 'a': 3.846705136955e+00,1662 'alta': 5.638832598578e+00,1663 'altp': 5.457767533072e-02,1664 'jdsatepoch': 2.453910957521e+06 1665 };1666 satrec = sgp4init(72, satin, 7.659000000000e-04, 7.258491000000e-01, 2.062945752052e+04, 5.167015834603e+00, 1.230387309486e-01, 1.449687929999e-01, 9.857037897024e-03, 3.138517383448e+00);1667 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1668 assert(isequalRel(satrec.satnum, 2.317700000000e+04, TOL));1669 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1670 assert(isequalRel(satrec.epochdays, 1.754575205200e+02, TOL));1671 assert(isequalRel(satrec.ndot, 1.169613005677e-11, TOL));1672 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1673 assert(isequalRel(satrec.bstar, 7.659000000000e-04, TOL));1674 assert(isequalRel(satrec.inclo, 1.230387309486e-01, TOL));1675 assert(isequalRel(satrec.nodeo, 3.138517383448e+00, TOL));1676 assert(isequalRel(satrec.ecco, 7.258491000000e-01, TOL));1677 assert(isequalRel(satrec.argpo, 5.167015834603e+00, TOL));1678 assert(isequalRel(satrec.mo, 1.449687929999e-01, TOL));1679 assert(isequalRel(satrec.no, 9.853789469239e-03, TOL));1680 assert(isequalRel(satrec.a, 3.846705136955e+00, TOL));1681 assert(isequalRel(satrec.alta, 5.638832598578e+00, TOL));1682 assert(isequalRel(satrec.altp, 5.457767533072e-02, TOL));1683 assert(isequalRel(satrec.jdsatepoch, 2.453910957521e+06, TOL));1684 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1685 assert(isequalRel(satrec.aycof, 1.439034777135e-04, TOL));1686 assert(isequalRel(satrec.con41, 1.954813125046e+00, TOL));1687 assert(isequalRel(satrec.cc1, 1.125288811171e-09, TOL));1688 assert(isequalRel(satrec.cc4, 9.659235530288e-07, TOL));1689 assert(isequalRel(satrec.cc5, 1.465564872513e-04, TOL));1690 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1691 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1692 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1693 assert(isequalRel(satrec.delmo, 7.699641690923e+00, TOL));1694 assert(isequalRel(satrec.eta, 9.849822474735e-01, TOL));1695 assert(isequalRel(satrec.argpdot, 9.499446270781e-06, TOL));1696 assert(isequalRel(satrec.omgcof, 2.696879352118e-20, TOL));1697 assert(isequalRel(satrec.sinmao, 1.444615501293e-01, TOL));1698 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1699 assert(isequalRel(satrec.t2cof, 1.687933216756e-09, TOL));1700 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1701 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1702 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1703 assert(isequalRel(satrec.x1mth2, 1.506229165127e-02, TOL));1704 assert(isequalRel(satrec.x7thm1, 5.894563958441e+00, TOL));1705 assert(isequalRel(satrec.mdot, 9.857038097825e-03, TOL));1706 assert(isequalRel(satrec.nodedot, -4.803174199882e-06, TOL));1707 assert(isequalRel(satrec.xlcof, 2.875339560094e-04, TOL));1708 assert(isequalRel(satrec.xmcof, -2.077874548988e-14, TOL));1709 assert(isequalRel(satrec.nodecf, -8.929851828102e-15, TOL));1710 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1711 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1712 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1713 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1714 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1715 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1716 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1717 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1718 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1719 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1720 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1721 assert(isequalRel(satrec.dedt, -1.045444380488e-08, TOL));1722 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1723 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1724 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1725 assert(isequalRel(satrec.didt, 2.376724085775e-08, TOL));1726 assert(isequalRel(satrec.dmdt, -2.642690499755e-08, TOL));1727 assert(isequalRel(satrec.dnodt, -4.838389780477e-07, TOL));1728 assert(isequalRel(satrec.domdt, 4.812656940526e-07, TOL));1729 assert(isequalRel(satrec.e3, 5.883771878310e-04, TOL));1730 assert(isequalRel(satrec.ee2, 1.201802618946e-04, TOL));1731 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1732 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1733 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1734 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1735 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1736 assert(isequalRel(satrec.se2, -3.424600980580e-03, TOL));1737 assert(isequalRel(satrec.se3, -1.945460736508e-03, TOL));1738 assert(isequalRel(satrec.sgh2, 2.807746435654e-03, TOL));1739 assert(isequalRel(satrec.sgh3, -4.287929901990e-03, TOL));1740 assert(isequalRel(satrec.sgh4, -6.285500316310e-05, TOL));1741 assert(isequalRel(satrec.sh2, -1.277477731310e-04, TOL));1742 assert(isequalRel(satrec.sh3, 3.309216641173e-03, TOL));1743 assert(isequalRel(satrec.si2, 7.513453732828e-04, TOL));1744 assert(isequalRel(satrec.si3, -1.615208443659e-03, TOL));1745 assert(isequalRel(satrec.sl2, -6.591258953724e-03, TOL));1746 assert(isequalRel(satrec.sl3, 8.653034599493e-03, TOL));1747 assert(isequalRel(satrec.sl4, 2.613596417420e-04, TOL));1748 assert(isequalRel(satrec.gsto, 1.346832291139e+00, TOL));1749 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1750 assert(isequalRel(satrec.xgh2, -7.580873897080e-04, TOL));1751 assert(isequalRel(satrec.xgh3, 8.944532635768e-05, TOL));1752 assert(isequalRel(satrec.xgh4, -3.308948578837e-05, TOL));1753 assert(isequalRel(satrec.xh2, 4.592174078680e-04, TOL));1754 assert(isequalRel(satrec.xh3, -3.581021323765e-04, TOL));1755 assert(isequalRel(satrec.xi2, -3.094906804917e-04, TOL));1756 assert(isequalRel(satrec.xi3, 8.206020674696e-05, TOL));1757 assert(isequalRel(satrec.xl2, 1.595875573261e-03, TOL));1758 assert(isequalRel(satrec.xl3, -2.025915791658e-05, TOL));1759 assert(isequalRel(satrec.xl4, 1.375905769766e-04, TOL));1760 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1761 assert(isequalRel(satrec.zmol, 1.503851507578e+00, TOL));1762 assert(isequalRel(satrec.zmos, 2.957112607744e+00, TOL));1763 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1764 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1765 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1766 equal(satrec.method, 'd');1767 equal(satrec.init, 'n');1768});1769// 231771770test('72, satin, 1.000000000000e-04, 9.728298000000e-01, 1.637649999999e+04, 5.312084111370e-01, 5.017647066558e-01, 2.356194490192e-02, 3.189367114872e-04, 4.139920985731e-02', function () {1771 var satin, rets, satrec, TOL = 0.000001;1772 satin = {1773 'error': 0.000000000000e+00,1774 'satnum': 2.333300000000e+04,1775 'epochyr': 9.400000000000e+01,1776 'epochdays': 3.054999999900e+02,1777 'ndot': -5.240714689374e-09,1778 'nddot': 5.674466379549e-13,1779 'bstar': 1.000000000000e-04,1780 'inclo': 5.017647066558e-01,1781 'nodeo': 4.139920985731e-02,1782 'ecco': 9.728298000000e-01,1783 'argpo': 5.312084111370e-01,1784 'mo': 2.356194490192e-02,1785 'no': 3.189367114872e-04,1786 'a': 3.788350677218e+01,1787 'alta': 7.373771108867e+01,1788 'altp': 2.930245570162e-02,1789 'jdsatepoch': 2.449658000000e+06 1790 };1791 satrec = sgp4init(72, satin, 1.000000000000e-04, 9.728298000000e-01, 1.637649999999e+04, 5.312084111370e-01, 5.017647066558e-01, 2.356194490192e-02, 3.189367114872e-04, 4.139920985731e-02);1792 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1793 assert(isequalRel(satrec.satnum, 2.333300000000e+04, TOL));1794 assert(isequalRel(satrec.epochyr, 9.400000000000e+01, TOL));1795 assert(isequalRel(satrec.epochdays, 3.054999999900e+02, TOL));1796 assert(isequalRel(satrec.ndot, -5.240714689374e-09, TOL));1797 assert(isequalRel(satrec.nddot, 5.674466379549e-13, TOL));1798 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));1799 assert(isequalRel(satrec.inclo, 5.017647066558e-01, TOL));1800 assert(isequalRel(satrec.nodeo, 4.139920985731e-02, TOL));1801 assert(isequalRel(satrec.ecco, 9.728298000000e-01, TOL));1802 assert(isequalRel(satrec.argpo, 5.312084111370e-01, TOL));1803 assert(isequalRel(satrec.mo, 2.356194490192e-02, TOL));1804 assert(isequalRel(satrec.no, 3.189177226396e-04, TOL));1805 assert(isequalRel(satrec.a, 3.788350677218e+01, TOL));1806 assert(isequalRel(satrec.alta, 7.373771108867e+01, TOL));1807 assert(isequalRel(satrec.altp, 2.930245570162e-02, TOL));1808 assert(isequalRel(satrec.jdsatepoch, 2.449658000000e+06, TOL));1809 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1810 assert(isequalRel(satrec.aycof, 5.639581568863e-04, TOL));1811 assert(isequalRel(satrec.con41, 1.305993571902e+00, TOL));1812 assert(isequalRel(satrec.cc1, 3.721578957178e-10, TOL));1813 assert(isequalRel(satrec.cc4, 2.666792794038e-07, TOL));1814 assert(isequalRel(satrec.cc5, 1.254245061371e-03, TOL));1815 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1816 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1817 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1818 assert(isequalRel(satrec.delmo, 7.991104360376e+00, TOL));1819 assert(isequalRel(satrec.eta, 9.995358627143e-01, TOL));1820 assert(isequalRel(satrec.argpdot, 1.787618353473e-07, TOL));1821 assert(isequalRel(satrec.omgcof, 1.758924860415e-27, TOL));1822 assert(isequalRel(satrec.sinmao, 2.355976483361e-02, TOL));1823 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1824 assert(isequalRel(satrec.t2cof, 5.582368435766e-10, TOL));1825 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1826 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1827 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1828 assert(isequalRel(satrec.x1mth2, 2.313354760326e-01, TOL));1829 assert(isequalRel(satrec.x7thm1, 4.380651667771e+00, TOL));1830 assert(isequalRel(satrec.mdot, 3.189367173340e-04, TOL));1831 assert(isequalRel(satrec.nodedot, -1.102439219498e-07, TOL));1832 assert(isequalRel(satrec.xlcof, 1.109395794943e-03, TOL));1833 assert(isequalRel(satrec.xmcof, -6.973844182638e-20, TOL));1834 assert(isequalRel(satrec.nodecf, -7.687599963907e-18, TOL));1835 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1836 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1837 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1838 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1839 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1840 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1841 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1842 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1843 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1844 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1845 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1846 assert(isequalRel(satrec.dedt, 2.968135603242e-09, TOL));1847 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1848 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1849 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1850 assert(isequalRel(satrec.didt, -3.439044884764e-07, TOL));1851 assert(isequalRel(satrec.dmdt, -3.438051105625e-06, TOL));1852 assert(isequalRel(satrec.dnodt, -5.053925231474e-07, TOL));1853 assert(isequalRel(satrec.domdt, 6.914571527623e-07, TOL));1854 assert(isequalRel(satrec.e3, 6.618130467595e-03, TOL));1855 assert(isequalRel(satrec.ee2, -7.503198877723e-03, TOL));1856 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1857 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1858 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1859 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1860 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1861 assert(isequalRel(satrec.se2, 4.629809809051e-02, TOL));1862 assert(isequalRel(satrec.se3, 4.271626851497e-02, TOL));1863 assert(isequalRel(satrec.sgh2, -4.391480163694e-02, TOL));1864 assert(isequalRel(satrec.sgh3, 4.776472532865e-02, TOL));1865 assert(isequalRel(satrec.sgh4, -6.536713592881e-04, TOL));1866 assert(isequalRel(satrec.sh2, 5.087055669958e-02, TOL));1867 assert(isequalRel(satrec.sh3, 2.194123446194e-02, TOL));1868 assert(isequalRel(satrec.si2, 8.750068533754e-02, TOL));1869 assert(isequalRel(satrec.si3, 3.511647715856e-02, TOL));1870 assert(isequalRel(satrec.sl2, 3.692252174204e-01, TOL));1871 assert(isequalRel(satrec.sl3, -4.025541103842e-01, TOL));1872 assert(isequalRel(satrec.sl4, 9.259903790801e-03, TOL));1873 assert(isequalRel(satrec.gsto, 3.849219568564e+00, TOL));1874 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1875 assert(isequalRel(satrec.xgh2, -6.878292929739e-03, TOL));1876 assert(isequalRel(satrec.xgh3, -7.775516402908e-03, TOL));1877 assert(isequalRel(satrec.xgh4, -3.441197687525e-04, TOL));1878 assert(isequalRel(satrec.xh2, -1.179576494215e-02, TOL));1879 assert(isequalRel(satrec.xh3, 1.169037463880e-02, TOL));1880 assert(isequalRel(satrec.xi2, -1.956589871380e-02, TOL));1881 assert(isequalRel(satrec.xi3, 2.039566495961e-02, TOL));1882 assert(isequalRel(satrec.xl2, 5.825328423320e-02, TOL));1883 assert(isequalRel(satrec.xl3, 6.572632496892e-02, TOL));1884 assert(isequalRel(satrec.xl4, 4.874798177836e-03, TOL));1885 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1886 assert(isequalRel(satrec.zmol, 5.607868196210e+00, TOL));1887 assert(isequalRel(satrec.zmos, 5.196058843771e+00, TOL));1888 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1889 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1890 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1891 equal(satrec.method, 'd');1892 equal(satrec.init, 'n');1893});1894// 233331895test('72, satin, 1.295600000000e-03, 5.782022000000e-01, 2.062576535463e+04, 4.789944431026e+00, 1.209984410530e-01, 4.405647364347e-01, 1.953881109593e-02, 4.972443038932e-03', function () {1896 var satin, rets, satrec, TOL = 0.000001;1897 satin = {1898 'error': 0.000000000000e+00,1899 'satnum': 2.359900000000e+04,1900 'epochyr': 6.000000000000e+00,1901 'epochdays': 1.717653546300e+02,1902 'ndot': 2.593328981965e-09,1903 'nddot': 2.712557796520e-16,1904 'bstar': 1.295600000000e-03,1905 'inclo': 1.209984410530e-01,1906 'nodeo': 4.972443038932e-03,1907 'ecco': 5.782022000000e-01,1908 'argpo': 4.789944431026e+00,1909 'mo': 4.405647364347e-01,1910 'no': 1.953881109593e-02,1911 'a': 2.437742106707e+00,1912 'alta': 2.847249955837e+00,1913 'altp': 2.823425757631e-02,1914 'jdsatepoch': 2.453907265355e+06 1915 };1916 satrec = sgp4init(72, satin, 1.295600000000e-03, 5.782022000000e-01, 2.062576535463e+04, 4.789944431026e+00, 1.209984410530e-01, 4.405647364347e-01, 1.953881109593e-02, 4.972443038932e-03);1917 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));1918 assert(isequalRel(satrec.satnum, 2.359900000000e+04, TOL));1919 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1920 assert(isequalRel(satrec.epochdays, 1.717653546300e+02, TOL));1921 assert(isequalRel(satrec.ndot, 2.593328981965e-09, TOL));1922 assert(isequalRel(satrec.nddot, 2.712557796520e-16, TOL));1923 assert(isequalRel(satrec.bstar, 1.295600000000e-03, TOL));1924 assert(isequalRel(satrec.inclo, 1.209984410530e-01, TOL));1925 assert(isequalRel(satrec.nodeo, 4.972443038932e-03, TOL));1926 assert(isequalRel(satrec.ecco, 5.782022000000e-01, TOL));1927 assert(isequalRel(satrec.argpo, 4.789944431026e+00, TOL));1928 assert(isequalRel(satrec.mo, 4.405647364347e-01, TOL));1929 assert(isequalRel(satrec.no, 1.952919673236e-02, TOL));1930 assert(isequalRel(satrec.a, 2.437742106707e+00, TOL));1931 assert(isequalRel(satrec.alta, 2.847249955837e+00, TOL));1932 assert(isequalRel(satrec.altp, 2.823425757631e-02, TOL));1933 assert(isequalRel(satrec.jdsatepoch, 2.453907265355e+06, TOL));1934 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1935 assert(isequalRel(satrec.aycof, 1.415289540171e-04, TOL));1936 assert(isequalRel(satrec.con41, 1.956292061635e+00, TOL));1937 assert(isequalRel(satrec.cc1, 8.878203501276e-08, TOL));1938 assert(isequalRel(satrec.cc4, 6.394027779674e-05, TOL));1939 assert(isequalRel(satrec.cc5, 4.806366086277e-03, TOL));1940 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1941 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1942 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1943 assert(isequalRel(satrec.delmo, 6.795809884804e+00, TOL));1944 assert(isequalRel(satrec.eta, 9.885421902905e-01, TOL));1945 assert(isequalRel(satrec.argpdot, 2.370814015402e-05, TOL));1946 assert(isequalRel(satrec.omgcof, 6.113727976134e-19, TOL));1947 assert(isequalRel(satrec.sinmao, 4.264503433455e-01, TOL));1948 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1949 assert(isequalRel(satrec.t2cof, 1.331730525191e-07, TOL));1950 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1951 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1952 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1953 assert(isequalRel(satrec.x1mth2, 1.456931278838e-02, TOL));1954 assert(isequalRel(satrec.x7thm1, 5.898014810481e+00, TOL));1955 assert(isequalRel(satrec.mdot, 1.953881035267e-02, TOL));1956 assert(isequalRel(satrec.nodedot, -1.198223317894e-05, TOL));1957 assert(isequalRel(satrec.xlcof, 2.827982657092e-04, TOL));1958 assert(isequalRel(satrec.xmcof, -6.865432422290e-13, TOL));1959 assert(isequalRel(satrec.nodecf, -2.471318865063e-12, TOL));1960 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1961 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1962 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1963 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1964 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1965 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1966 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1967 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1968 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1969 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1970 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1971 assert(isequalRel(satrec.dedt, -4.020215919893e-10, TOL));1972 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1973 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1974 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1975 assert(isequalRel(satrec.didt, -8.390202397339e-10, TOL));1976 assert(isequalRel(satrec.dmdt, -3.093486129009e-08, TOL));1977 assert(isequalRel(satrec.dnodt, 1.298165842561e-07, TOL));1978 assert(isequalRel(satrec.domdt, -1.214482290414e-07, TOL));1979 assert(isequalRel(satrec.e3, 1.917688589693e-04, TOL));1980 assert(isequalRel(satrec.ee2, 2.600403830731e-04, TOL));1981 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1982 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1983 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1984 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1985 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1986 assert(isequalRel(satrec.se2, -2.021959812118e-03, TOL));1987 assert(isequalRel(satrec.se3, 4.664465684109e-04, TOL));1988 assert(isequalRel(satrec.sgh2, -7.734435306744e-04, TOL));1989 assert(isequalRel(satrec.sgh3, -3.415977655410e-03, TOL));1990 assert(isequalRel(satrec.sgh4, -3.761802411036e-05, TOL));1991 assert(isequalRel(satrec.sh2, -2.320545150812e-04, TOL));1992 assert(isequalRel(satrec.sh3, -6.756286295110e-04, TOL));1993 assert(isequalRel(satrec.si2, -1.848221304876e-04, TOL));1994 assert(isequalRel(satrec.si3, 1.185722011180e-04, TOL));1995 assert(isequalRel(satrec.sl2, 1.207731977398e-03, TOL));1996 assert(isequalRel(satrec.sl3, 5.449750974362e-03, TOL));1997 assert(isequalRel(satrec.sl4, 1.229961546518e-04, TOL));1998 assert(isequalRel(satrec.gsto, 3.217495488339e+00, TOL));1999 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2000 assert(isequalRel(satrec.xgh2, -3.210545596328e-04, TOL));2001 assert(isequalRel(satrec.xgh3, 4.292321013506e-04, TOL));2002 assert(isequalRel(satrec.xgh4, -1.980369121860e-05, TOL));2003 assert(isequalRel(satrec.xh2, -7.343991154683e-05, TOL));2004 assert(isequalRel(satrec.xh3, 1.243873320172e-04, TOL));2005 assert(isequalRel(satrec.xi2, 4.375268409065e-05, TOL));2006 assert(isequalRel(satrec.xi3, 1.339081864290e-05, TOL));2007 assert(isequalRel(satrec.xl2, 5.069978526244e-04, TOL));2008 assert(isequalRel(satrec.xl3, -6.661160092554e-04, TOL));2009 assert(isequalRel(satrec.xl4, 6.475028727329e-05, TOL));2010 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2011 assert(isequalRel(satrec.zmol, 6.619375088630e-01, TOL));2012 assert(isequalRel(satrec.zmos, 2.893600055028e+00, TOL));2013 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2014 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2015 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2016 equal(satrec.method, 'd');2017 equal(satrec.init, 'n');2018});2019// 235992020test('72, satin, 1.000000000000e-04, 2.664000000000e-03, 2.063104061740e+04, 5.429679160382e+00, 6.725800805485e-02, 8.429940287133e-01, 4.397272140132e-03, 1.396474586435e+00', function () {2021 var satin, rets, satrec, TOL = 0.000001;2022 satin = {2023 'error': 0.000000000000e+00,2024 'satnum': 2.420800000000e+04,2025 'epochyr': 6.000000000000e+00,2026 'epochdays': 1.770406174000e+02,2027 'ndot': -2.848280376519e-12,2028 'nddot': 0.000000000000e+00,2029 'bstar': 1.000000000000e-04,2030 'inclo': 6.725800805485e-02,2031 'nodeo': 1.396474586435e+00,2032 'ecco': 2.664000000000e-03,2033 'argpo': 5.429679160382e+00,2034 'mo': 8.429940287133e-01,2035 'no': 4.397272140132e-03,2036 'a': 6.588667917946e+00,2037 'alta': 5.606220129279e+00,2038 'altp': 5.571115706612e+00,2039 'jdsatepoch': 2.453912540617e+06 2040 };2041 satrec = sgp4init(72, satin, 1.000000000000e-04, 2.664000000000e-03, 2.063104061740e+04, 5.429679160382e+00, 6.725800805485e-02, 8.429940287133e-01, 4.397272140132e-03, 1.396474586435e+00);2042 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2043 assert(isequalRel(satrec.satnum, 2.420800000000e+04, TOL));2044 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2045 assert(isequalRel(satrec.epochdays, 1.770406174000e+02, TOL));2046 assert(isequalRel(satrec.ndot, -2.848280376519e-12, TOL));2047 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2048 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2049 assert(isequalRel(satrec.inclo, 6.725800805485e-02, TOL));2050 assert(isequalRel(satrec.nodeo, 1.396474586435e+00, TOL));2051 assert(isequalRel(satrec.ecco, 2.664000000000e-03, TOL));2052 assert(isequalRel(satrec.argpo, 5.429679160382e+00, TOL));2053 assert(isequalRel(satrec.mo, 8.429940287133e-01, TOL));2054 assert(isequalRel(satrec.no, 4.397108759492e-03, TOL));2055 assert(isequalRel(satrec.a, 6.588667917946e+00, TOL));2056 assert(isequalRel(satrec.alta, 5.606220129279e+00, TOL));2057 assert(isequalRel(satrec.altp, 5.571115706612e+00, TOL));2058 assert(isequalRel(satrec.jdsatepoch, 2.453912540617e+06, TOL));2059 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2060 assert(isequalRel(satrec.aycof, 7.880291502327e-05, TOL));2061 assert(isequalRel(satrec.con41, 1.986449532035e+00, TOL));2062 assert(isequalRel(satrec.cc1, 5.634192653482e-18, TOL));2063 assert(isequalRel(satrec.cc4, 8.790422114838e-16, TOL));2064 assert(isequalRel(satrec.cc5, 2.562217395482e-11, TOL));2065 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2066 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2067 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2068 assert(isequalRel(satrec.delmo, 1.006294703824e+00, TOL));2069 assert(isequalRel(satrec.eta, 3.147552327709e-03, TOL));2070 assert(isequalRel(satrec.argpdot, 3.271746274001e-07, TOL));2071 assert(isequalRel(satrec.omgcof, 1.192347277720e-20, TOL));2072 assert(isequalRel(satrec.sinmao, 7.466381822854e-01, TOL));2073 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2074 assert(isequalRel(satrec.t2cof, 8.451288980223e-18, TOL));2075 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2076 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2077 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2078 assert(isequalRel(satrec.x1mth2, 4.516822655120e-03, TOL));2079 assert(isequalRel(satrec.x7thm1, 5.968382241414e+00, TOL));2080 assert(isequalRel(satrec.mdot, 4.397272137107e-03, TOL));2081 assert(isequalRel(satrec.nodedot, -1.641412021814e-07, TOL));2082 assert(isequalRel(satrec.xlcof, 1.575612369310e-04, TOL));2083 assert(isequalRel(satrec.xmcof, -1.545771663735e-11, TOL));2084 assert(isequalRel(satrec.nodecf, -3.236204349649e-24, TOL));2085 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));2086 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2087 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2088 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2089 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2090 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2091 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2092 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2093 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2094 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2095 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2096 assert(isequalRel(satrec.dedt, 9.928697389680e-11, TOL));2097 assert(isequalRel(satrec.del1, -6.446921893630e-13, TOL));2098 assert(isequalRel(satrec.del2, 1.431037712307e-11, TOL));2099 assert(isequalRel(satrec.del3, 2.011847944584e-12, TOL));2100 assert(isequalRel(satrec.didt, 3.031124826307e-08, TOL));2101 assert(isequalRel(satrec.dmdt, -1.325603345647e-07, TOL));2102 assert(isequalRel(satrec.dnodt, 1.822046740261e-08, TOL));2103 assert(isequalRel(satrec.domdt, 4.338936906528e-08, TOL));2104 assert(isequalRel(satrec.e3, -7.726902954388e-06, TOL));2105 assert(isequalRel(satrec.ee2, -5.176143424006e-07, TOL));2106 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2107 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2108 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2109 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2110 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2111 assert(isequalRel(satrec.se2, 3.935674677679e-05, TOL));2112 assert(isequalRel(satrec.se3, 3.101303936462e-05, TOL));2113 assert(isequalRel(satrec.sgh2, -1.095943198289e-02, TOL));2114 assert(isequalRel(satrec.sgh3, 1.543789357065e-02, TOL));2115 assert(isequalRel(satrec.sgh4, -2.047755658748e-04, TOL));2116 assert(isequalRel(satrec.sh2, 1.170723269672e-03, TOL));2117 assert(isequalRel(satrec.sh3, -1.086189670839e-03, TOL));2118 assert(isequalRel(satrec.si2, -1.002689875952e-03, TOL));2119 assert(isequalRel(satrec.si3, -1.074034874057e-03, TOL));2120 assert(isequalRel(satrec.sl2, 1.012379841762e-02, TOL));2121 assert(isequalRel(satrec.sl3, -1.636988036209e-02, TOL));2122 assert(isequalRel(satrec.sl4, 4.778128024756e-04, TOL));2123 assert(isequalRel(satrec.gsto, 5.037771726289e+00, TOL));2124 assert(isequalRel(satrec.xfact, -4.375013627469e-03, TOL));2125 assert(isequalRel(satrec.xgh2, 2.915576106025e-03, TOL));2126 assert(isequalRel(satrec.xgh3, -4.189146928255e-04, TOL));2127 assert(isequalRel(satrec.xgh4, -1.078023679235e-04, TOL));2128 assert(isequalRel(satrec.xh2, -3.065019513911e-04, TOL));2129 assert(isequalRel(satrec.xh3, -3.781667774154e-05, TOL));2130 assert(isequalRel(satrec.xi2, -2.998211222471e-05, TOL));2131 assert(isequalRel(satrec.xi3, 2.707830507804e-04, TOL));2132 assert(isequalRel(satrec.xl2, -2.963865666279e-03, TOL));2133 assert(isequalRel(satrec.xl3, 7.064676449674e-04, TOL));2134 assert(isequalRel(satrec.xl4, 2.515405161303e-04, TOL));2135 assert(isequalRel(satrec.xlamo, 2.631376049241e+00, TOL));2136 assert(isequalRel(satrec.zmol, 1.864840548802e+00, TOL));2137 assert(isequalRel(satrec.zmos, 2.984345003862e+00, TOL));2138 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2139 assert(isequalRel(satrec.xli, 2.631376049241e+00, TOL));2140 assert(isequalRel(satrec.xni, 4.397108759492e-03, TOL));2141 equal(satrec.method, 'd');2142 equal(satrec.init, 'n');2143});2144// 242082145test('72, satin, 0.000000000000e+00, 1.765000000000e-04, 1.976268057285e+04, 2.710391608592e-01, 6.981317007977e-06, 3.964236143225e-01, 4.375160345672e-03, 4.255350081140e+00', function () {2146 var satin, rets, satrec, TOL = 0.000001;2147 satin = {2148 'error': 0.000000000000e+00,2149 'satnum': 2.595400000000e+04,2150 'epochyr': 4.000000000000e+00,2151 'epochdays': 3.968057285000e+01,2152 'ndot': -3.272492347489e-12,2153 'nddot': 0.000000000000e+00,2154 'bstar': 0.000000000000e+00,2155 'inclo': 6.981317007977e-06,2156 'nodeo': 4.255350081140e+00,2157 'ecco': 1.765000000000e-04,2158 'argpo': 2.710391608592e-01,2159 'mo': 3.964236143225e-01,2160 'no': 4.375160345672e-03,2161 'a': 6.610848412423e+00,2162 'alta': 5.612015227168e+00,2163 'altp': 5.609681597679e+00,2164 'jdsatepoch': 2.453044180573e+06 2165 };2166 satrec = sgp4init(72, satin, 0.000000000000e+00, 1.765000000000e-04, 1.976268057285e+04, 2.710391608592e-01, 6.981317007977e-06, 3.964236143225e-01, 4.375160345672e-03, 4.255350081140e+00);2167 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2168 assert(isequalRel(satrec.satnum, 2.595400000000e+04, TOL));2169 assert(isequalRel(satrec.epochyr, 4.000000000000e+00, TOL));2170 assert(isequalRel(satrec.epochdays, 3.968057285000e+01, TOL));2171 assert(isequalRel(satrec.ndot, -3.272492347489e-12, TOL));2172 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2173 assert(isequalRel(satrec.bstar, 0.000000000000e+00, TOL));2174 assert(isequalRel(satrec.inclo, 6.981317007977e-06, TOL));2175 assert(isequalRel(satrec.nodeo, 4.255350081140e+00, TOL));2176 assert(isequalRel(satrec.ecco, 1.765000000000e-04, TOL));2177 assert(isequalRel(satrec.argpo, 2.710391608592e-01, TOL));2178 assert(isequalRel(satrec.mo, 3.964236143225e-01, TOL));2179 assert(isequalRel(satrec.no, 4.374997775854e-03, TOL));2180 assert(isequalRel(satrec.a, 6.610848412423e+00, TOL));2181 assert(isequalRel(satrec.alta, 5.612015227168e+00, TOL));2182 assert(isequalRel(satrec.altp, 5.609681597679e+00, TOL));2183 assert(isequalRel(satrec.jdsatepoch, 2.453044180573e+06, TOL));2184 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2185 assert(isequalRel(satrec.aycof, 8.185837560538e-09, TOL));2186 assert(isequalRel(satrec.con41, 1.999999999854e+00, TOL));2187 assert(isequalRel(satrec.cc1, 0.000000000000e+00, TOL));2188 assert(isequalRel(satrec.cc4, 7.533441570767e-17, TOL));2189 assert(isequalRel(satrec.cc5, 2.530147989142e-11, TOL));2190 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2191 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2192 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2193 assert(isequalRel(satrec.delmo, 1.000576853575e+00, TOL));2194 assert(isequalRel(satrec.eta, 2.084102332028e-04, TOL));2195 assert(isequalRel(satrec.argpdot, 3.251801634695e-07, TOL));2196 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));2197 assert(isequalRel(satrec.sinmao, 3.861217895520e-01, TOL));2198 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2199 assert(isequalRel(satrec.t2cof, 0.000000000000e+00, TOL));2200 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2201 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2202 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2203 assert(isequalRel(satrec.x1mth2, 4.873879078104e-11, TOL));2204 assert(isequalRel(satrec.x7thm1, 5.999999999659e+00, TOL));2205 assert(isequalRel(satrec.mdot, 4.375160342650e-03, TOL));2206 assert(isequalRel(satrec.nodedot, -1.625870617371e-07, TOL));2207 assert(isequalRel(satrec.xlcof, 1.637167512103e-08, TOL));2208 assert(isequalRel(satrec.xmcof, -0.000000000000e+00, TOL));2209 assert(isequalRel(satrec.nodecf, -0.000000000000e+00, TOL));2210 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));2211 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2212 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2213 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2214 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2215 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2216 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2217 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2218 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2219 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2220 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2221 assert(isequalRel(satrec.dedt, 3.553156778959e-12, TOL));2222 assert(isequalRel(satrec.del1, -6.397483834459e-13, TOL));2223 assert(isequalRel(satrec.del2, 1.410403339869e-11, TOL));2224 assert(isequalRel(satrec.del3, 1.978471517958e-12, TOL));2225 assert(isequalRel(satrec.didt, -2.555341579158e-08, TOL));2226 assert(isequalRel(satrec.dmdt, -9.603349062976e-08, TOL));2227 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2228 assert(isequalRel(satrec.domdt, 2.359014000576e-08, TOL));2229 assert(isequalRel(satrec.e3, -1.443253711966e-07, TOL));2230 assert(isequalRel(satrec.ee2, -4.967861523155e-07, TOL));2231 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2232 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2233 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2234 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2235 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2236 assert(isequalRel(satrec.se2, -2.393510838524e-06, TOL));2237 assert(isequalRel(satrec.se3, 2.297499314735e-06, TOL));2238 assert(isequalRel(satrec.sgh2, -1.264715658450e-02, TOL));2239 assert(isequalRel(satrec.sgh3, -1.273189516222e-02, TOL));2240 assert(isequalRel(satrec.sgh4, -2.058112167495e-04, TOL));2241 assert(isequalRel(satrec.sh2, -1.099705176855e-03, TOL));2242 assert(isequalRel(satrec.sh3, 1.167960133285e-03, TOL));2243 assert(isequalRel(satrec.si2, 1.176752281702e-03, TOL));2244 assert(isequalRel(satrec.si3, 9.654718969481e-04, TOL));2245 assert(isequalRel(satrec.sl2, 1.215221622343e-02, TOL));2246 assert(isequalRel(satrec.sl3, 1.153344263874e-02, TOL));2247 assert(isequalRel(satrec.sl4, 4.802261863070e-04, TOL));2248 assert(isequalRel(satrec.gsto, 4.036986406591e-01, TOL));2249 assert(isequalRel(satrec.xfact, -4.375016371464e-03, TOL));2250 assert(isequalRel(satrec.xgh2, 6.708089970693e-04, TOL));2251 assert(isequalRel(satrec.xgh3, -2.691818508104e-03, TOL));2252 assert(isequalRel(satrec.xgh4, -1.083475775834e-04, TOL));2253 assert(isequalRel(satrec.xh2, -2.688548161140e-04, TOL));2254 assert(isequalRel(satrec.xh3, -1.120931668890e-04, TOL));2255 assert(isequalRel(satrec.xi2, -7.859155231505e-05, TOL));2256 assert(isequalRel(satrec.xi3, 2.677016040710e-04, TOL));2257 assert(isequalRel(satrec.xl2, -4.478395208697e-04, TOL));2258 assert(isequalRel(satrec.xl3, 2.528608623316e-03, TOL));2259 assert(isequalRel(satrec.xl4, 2.528110216744e-04, TOL));2260 assert(isequalRel(satrec.xlamo, 4.519114215663e+00, TOL));2261 assert(isequalRel(satrec.zmol, 4.917119876491e+00, TOL));2262 assert(isequalRel(satrec.zmos, 6.132061041587e-01, TOL));2263 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2264 assert(isequalRel(satrec.xli, 4.519114215663e+00, TOL));2265 assert(isequalRel(satrec.xni, 4.374997775854e-03, TOL));2266 equal(satrec.method, 'd');2267 equal(satrec.init, 'n');2268});2269// 259542270test('72, satin, 1.000000000000e-04, 3.319000000000e-04, 2.056074503247e+04, 1.504114277393e+00, 2.862339973271e-04, 3.181019641392e+00, 4.375271959478e-03, 4.651962191022e+00', function () {2271 var satin, rets, satrec, TOL = 0.000001;2272 satin = {2273 'error': 0.000000000000e+00,2274 'satnum': 2.690000000000e+04,2275 'epochyr': 6.000000000000e+00,2276 'epochdays': 1.067450324700e+02,2277 'ndot': 1.363538478121e-12,2278 'nddot': 0.000000000000e+00,2279 'bstar': 1.000000000000e-04,2280 'inclo': 2.862339973271e-04,2281 'nodeo': 4.651962191022e+00,2282 'ecco': 3.319000000000e-04,2283 'argpo': 1.504114277393e+00,2284 'mo': 3.181019641392e+00,2285 'no': 4.375271959478e-03,2286 'a': 6.610735982828e+00,2287 'alta': 5.612930086100e+00,2288 'altp': 5.608541879555e+00,2289 'jdsatepoch': 2.453842245032e+06 2290 };2291 satrec = sgp4init(72, satin, 1.000000000000e-04, 3.319000000000e-04, 2.056074503247e+04, 1.504114277393e+00, 2.862339973271e-04, 3.181019641392e+00, 4.375271959478e-03, 4.651962191022e+00);2292 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2293 assert(isequalRel(satrec.satnum, 2.690000000000e+04, TOL));2294 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2295 assert(isequalRel(satrec.epochdays, 1.067450324700e+02, TOL));2296 assert(isequalRel(satrec.ndot, 1.363538478121e-12, TOL));2297 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2298 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2299 assert(isequalRel(satrec.inclo, 2.862339973271e-04, TOL));2300 assert(isequalRel(satrec.nodeo, 4.651962191022e+00, TOL));2301 assert(isequalRel(satrec.ecco, 3.319000000000e-04, TOL));2302 assert(isequalRel(satrec.argpo, 1.504114277393e+00, TOL));2303 assert(isequalRel(satrec.mo, 3.181019641392e+00, TOL));2304 assert(isequalRel(satrec.no, 4.375109379983e-03, TOL));2305 assert(isequalRel(satrec.a, 6.610735982828e+00, TOL));2306 assert(isequalRel(satrec.alta, 5.612930086100e+00, TOL));2307 assert(isequalRel(satrec.altp, 5.608541879555e+00, TOL));2308 assert(isequalRel(satrec.jdsatepoch, 2.453842245032e+06, TOL));2309 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2310 assert(isequalRel(satrec.aycof, 3.356193354019e-07, TOL));2311 assert(isequalRel(satrec.con41, 1.999999754210e+00, TOL));2312 assert(isequalRel(satrec.cc1, 5.536164233960e-18, TOL));2313 assert(isequalRel(satrec.cc4, 1.245710890009e-16, TOL));2314 assert(isequalRel(satrec.cc5, 2.530310386868e-11, TOL));2315 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2316 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2317 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2318 assert(isequalRel(satrec.delmo, 9.988256529794e-01, TOL));2319 assert(isequalRel(satrec.eta, 3.919069069565e-04, TOL));2320 assert(isequalRel(satrec.argpdot, 3.251995395495e-07, TOL));2321 assert(isequalRel(satrec.omgcof, 4.030634987259e-23, TOL));2322 assert(isequalRel(satrec.sinmao, -3.941677380405e-02, TOL));2323 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2324 assert(isequalRel(satrec.t2cof, 8.304246350939e-18, TOL));2325 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2326 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2327 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2328 assert(isequalRel(satrec.x1mth2, 8.192989897626e-08, TOL));2329 assert(isequalRel(satrec.x7thm1, 5.999999426491e+00, TOL));2330 assert(isequalRel(satrec.mdot, 4.375271956456e-03, TOL));2331 assert(isequalRel(satrec.nodedot, -1.625967594802e-07, TOL));2332 assert(isequalRel(satrec.xlcof, 6.712386673667e-07, TOL));2333 assert(isequalRel(satrec.xmcof, -9.808470215307e-10, TOL));2334 assert(isequalRel(satrec.nodecf, -3.149999696385e-24, TOL));2335 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));2336 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2337 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2338 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2339 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2340 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2341 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2342 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2343 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2344 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2345 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2346 assert(isequalRel(satrec.dedt, -3.521807114582e-12, TOL));2347 assert(isequalRel(satrec.del1, -6.398136216901e-13, TOL));2348 assert(isequalRel(satrec.del2, 1.410522936173e-11, TOL));2349 assert(isequalRel(satrec.del3, 1.978672345716e-12, TOL));2350 assert(isequalRel(satrec.didt, -3.073811485140e-08, TOL));2351 assert(isequalRel(satrec.dmdt, -1.613621211138e-07, TOL));2352 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2353 assert(isequalRel(satrec.domdt, 9.088792566710e-08, TOL));2354 assert(isequalRel(satrec.e3, -4.297357109584e-07, TOL));2355 assert(isequalRel(satrec.ee2, -8.575863014313e-07, TOL));2356 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2357 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2358 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2359 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2360 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2361 assert(isequalRel(satrec.se2, 4.977710503291e-06, TOL));2362 assert(isequalRel(satrec.se3, -3.758122880832e-06, TOL));2363 assert(isequalRel(satrec.sgh2, 1.170238813200e-02, TOL));2364 assert(isequalRel(satrec.sgh3, 1.596617407202e-02, TOL));2365 assert(isequalRel(satrec.sgh4, -2.058059586065e-04, TOL));2366 assert(isequalRel(satrec.sh2, -1.469489949578e-03, TOL));2367 assert(isequalRel(satrec.sh3, 7.031457064751e-04, TOL));2368 assert(isequalRel(satrec.si2, 6.596584265507e-04, TOL));2369 assert(isequalRel(satrec.si3, 1.342180142943e-03, TOL));2370 assert(isequalRel(satrec.sl2, -1.219566699304e-02, TOL));2371 assert(isequalRel(satrec.sl3, -1.716537238492e-02, TOL));2372 assert(isequalRel(satrec.sl4, 4.802139525359e-04, TOL));2373 assert(isequalRel(satrec.gsto, 1.971276525301e+00, TOL));2374 assert(isequalRel(satrec.xfact, -4.375014382954e-03, TOL));2375 assert(isequalRel(satrec.xgh2, 1.468610866371e-03, TOL));2376 assert(isequalRel(satrec.xgh3, -2.762771903365e-03, TOL));2377 assert(isequalRel(satrec.xgh4, -1.083448094784e-04, TOL));2378 assert(isequalRel(satrec.xh2, 2.443977229280e-04, TOL));2379 assert(isequalRel(satrec.xh3, 1.980068154638e-04, TOL));2380 assert(isequalRel(satrec.xi2, 1.700595365594e-04, TOL));2381 assert(isequalRel(satrec.xi3, -2.181240526799e-04, TOL));2382 assert(isequalRel(satrec.xl2, -1.672610170679e-03, TOL));2383 assert(isequalRel(satrec.xl3, 2.984308463316e-03, TOL));2384 assert(isequalRel(satrec.xl4, 2.528045813088e-04, TOL));2385 assert(isequalRel(satrec.xlamo, 1.082634277327e+00, TOL));2386 assert(isequalRel(satrec.zmol, 4.685095846573e+00, TOL));2387 assert(isequalRel(satrec.zmos, 1.775121968701e+00, TOL));2388 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2389 assert(isequalRel(satrec.xli, 1.082634277327e+00, TOL));2390 assert(isequalRel(satrec.xni, 4.375109379983e-03, TOL));2391 equal(satrec.method, 'd');2392 equal(satrec.init, 'n');2393});2394// 269002395test('72, satin, 1.000000000000e-04, 5.602877000000e-01, 2.062885818871e+04, 2.159817024075e+00, 1.195051373450e+00, 5.280959654819e+00, 8.973503578612e-03, 4.121251198722e+00', function () {2396 var satin, rets, satrec, TOL = 0.000001;2397 satin = {2398 'error': 0.000000000000e+00,2399 'satnum': 2.697500000000e+04,2400 'epochyr': 6.000000000000e+00,2401 'epochdays': 1.748581887100e+02,2402 'ndot': 1.878653014299e-11,2403 'nddot': 0.000000000000e+00,2404 'bstar': 1.000000000000e-04,2405 'inclo': 1.195051373450e+00,2406 'nodeo': 4.121251198722e+00,2407 'ecco': 5.602877000000e-01,2408 'argpo': 2.159817024075e+00,2409 'mo': 5.280959654819e+00,2410 'no': 8.973503578612e-03,2411 'a': 4.095231791940e+00,2412 'alta': 5.389739793613e+00,2413 'altp': 8.007237902671e-01,2414 'jdsatepoch': 2.453910358189e+06 2415 };2416 satrec = sgp4init(72, satin, 1.000000000000e-04, 5.602877000000e-01, 2.062885818871e+04, 2.159817024075e+00, 1.195051373450e+00, 5.280959654819e+00, 8.973503578612e-03, 4.121251198722e+00);2417 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2418 assert(isequalRel(satrec.satnum, 2.697500000000e+04, TOL));2419 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2420 assert(isequalRel(satrec.epochdays, 1.748581887100e+02, TOL));2421 assert(isequalRel(satrec.ndot, 1.878653014299e-11, TOL));2422 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2423 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2424 assert(isequalRel(satrec.inclo, 1.195051373450e+00, TOL));2425 assert(isequalRel(satrec.nodeo, 4.121251198722e+00, TOL));2426 assert(isequalRel(satrec.ecco, 5.602877000000e-01, TOL));2427 assert(isequalRel(satrec.argpo, 2.159817024075e+00, TOL));2428 assert(isequalRel(satrec.mo, 5.280959654819e+00, TOL));2429 assert(isequalRel(satrec.no, 8.973959238486e-03, TOL));2430 assert(isequalRel(satrec.a, 4.095231791940e+00, TOL));2431 assert(isequalRel(satrec.alta, 5.389739793613e+00, TOL));2432 assert(isequalRel(satrec.altp, 8.007237902671e-01, TOL));2433 assert(isequalRel(satrec.jdsatepoch, 2.453910358189e+06, TOL));2434 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2435 assert(isequalRel(satrec.aycof, 1.090732388372e-03, TOL));2436 assert(isequalRel(satrec.con41, -5.960087184875e-01, TOL));2437 assert(isequalRel(satrec.cc1, 4.811273805740e-15, TOL));2438 assert(isequalRel(satrec.cc4, 4.594680777195e-11, TOL));2439 assert(isequalRel(satrec.cc5, 7.696169715955e-09, TOL));2440 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2441 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2442 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2443 assert(isequalRel(satrec.delmo, 2.748275216336e+00, TOL));2444 assert(isequalRel(satrec.eta, 7.442528818758e-01, TOL));2445 assert(isequalRel(satrec.argpdot, -3.016738966805e-07, TOL));2446 assert(isequalRel(satrec.omgcof, -2.621335469760e-20, TOL));2447 assert(isequalRel(satrec.sinmao, -8.426714247932e-01, TOL));2448 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2449 assert(isequalRel(satrec.t2cof, 7.216910708610e-15, TOL));2450 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2451 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2452 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2453 assert(isequalRel(satrec.x1mth2, 8.653362394958e-01, TOL));2454 assert(isequalRel(satrec.x7thm1, -5.735367647089e-02, TOL));2455 assert(isequalRel(satrec.mdot, 8.973503564981e-03, TOL));2456 assert(isequalRel(satrec.nodedot, -6.772847467554e-07, TOL));2457 assert(isequalRel(satrec.xlcof, 1.928908639400e-03, TOL));2458 assert(isequalRel(satrec.xmcof, -3.327990358418e-15, TOL));2459 assert(isequalRel(satrec.nodecf, -7.827127474091e-21, TOL));2460 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));2461 assert(isequalRel(satrec.d2201, -9.786807233862e-12, TOL));2462 assert(isequalRel(satrec.d2211, 4.375070167297e-11, TOL));2463 assert(isequalRel(satrec.d3210, -7.299736059955e-13, TOL));2464 assert(isequalRel(satrec.d3222, -3.088972920727e-12, TOL));2465 assert(isequalRel(satrec.d4410, 1.175930799908e-12, TOL));2466 assert(isequalRel(satrec.d4422, 1.666014658389e-12, TOL));2467 assert(isequalRel(satrec.d5220, -5.223073387126e-13, TOL));2468 assert(isequalRel(satrec.d5232, -4.239623278319e-14, TOL));2469 assert(isequalRel(satrec.d5421, -5.046358599919e-13, TOL));2470 assert(isequalRel(satrec.d5433, -3.893572552863e-13, TOL));2471 assert(isequalRel(satrec.dedt, -3.971152052616e-08, TOL));2472 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2473 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2474 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2475 assert(isequalRel(satrec.didt, 9.978447336132e-10, TOL));2476 assert(isequalRel(satrec.dmdt, 2.773996268752e-09, TOL));2477 assert(isequalRel(satrec.dnodt, -6.124174505388e-09, TOL));2478 assert(isequalRel(satrec.domdt, 1.574985894206e-08, TOL));2479 assert(isequalRel(satrec.e3, -2.267021997425e-04, TOL));2480 assert(isequalRel(satrec.ee2, -2.551224465045e-04, TOL));2481 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2482 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2483 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2484 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2485 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2486 assert(isequalRel(satrec.se2, 2.254910627255e-03, TOL));2487 assert(isequalRel(satrec.se3, -2.280386619192e-04, TOL));2488 assert(isequalRel(satrec.sgh2, -3.389917058225e-03, TOL));2489 assert(isequalRel(satrec.sgh3, 1.654422300963e-03, TOL));2490 assert(isequalRel(satrec.sgh4, -8.310926481500e-05, TOL));2491 assert(isequalRel(satrec.sh2, -9.721139826925e-04, TOL));2492 assert(isequalRel(satrec.sh3, -2.919237403379e-03, TOL));2493 assert(isequalRel(satrec.si2, 6.537866741737e-04, TOL));2494 assert(isequalRel(satrec.si3, 3.149325116495e-03, TOL));2495 assert(isequalRel(satrec.sl2, 9.242202107515e-03, TOL));2496 assert(isequalRel(satrec.sl3, -3.312631236734e-03, TOL));2497 assert(isequalRel(satrec.sl4, 2.656187161612e-04, TOL));2498 assert(isequalRel(satrec.gsto, 3.853994597295e+00, TOL));2499 assert(isequalRel(satrec.xfact, -8.752357893374e-03, TOL));2500 assert(isequalRel(satrec.xgh2, 5.870668970928e-04, TOL));2501 assert(isequalRel(satrec.xgh3, 3.411079917117e-04, TOL));2502 assert(isequalRel(satrec.xgh4, -4.375217084695e-05, TOL));2503 assert(isequalRel(satrec.xh2, -2.939157970135e-04, TOL));2504 assert(isequalRel(satrec.xh3, 4.419605173894e-04, TOL));2505 assert(isequalRel(satrec.xi2, 3.177266725877e-04, TOL));2506 assert(isequalRel(satrec.xi3, -4.193605290405e-04, TOL));2507 assert(isequalRel(satrec.xl2, -1.435489158349e-03, TOL));2508 assert(isequalRel(satrec.xl3, -9.317921317489e-04, TOL));2509 assert(isequalRel(satrec.xl4, 1.398327307491e-04, TOL));2510 assert(isequalRel(satrec.xlamo, 5.815472857673e+00, TOL));2511 assert(isequalRel(satrec.zmol, 1.367187593900e+00, TOL));2512 assert(isequalRel(satrec.zmos, 2.946802915738e+00, TOL));2513 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2514 assert(isequalRel(satrec.xli, 5.815472857673e+00, TOL));2515 assert(isequalRel(satrec.xni, 8.973959238486e-03, TOL));2516 equal(satrec.method, 'd');2517 equal(satrec.init, 'n');2518});2519// 269752520test('72, satin, 3.594000000000e-05, 8.840000000000e-05, 2.063178615833e+04, 1.539317568406e+00, 1.717897912141e+00, 4.746112232192e+00, 6.263454709052e-02, 4.323112489349e+00', function () {2521 var satin, rets, satrec, TOL = 0.000001;2522 satin = {2523 'error': 0.000000000000e+00,2524 'satnum': 2.805700000000e+04,2525 'epochyr': 6.000000000000e+00,2526 'epochdays': 1.777861583300e+02,2527 'ndot': 1.818051304161e-12,2528 'nddot': 0.000000000000e+00,2529 'bstar': 3.594000000000e-05,2530 'inclo': 1.717897912141e+00,2531 'nodeo': 4.323112489349e+00,2532 'ecco': 8.840000000000e-05,2533 'argpo': 1.539317568406e+00,2534 'mo': 4.746112232192e+00,2535 'no': 6.263454709052e-02,2536 'a': 1.121270907313e+00,2537 'alta': 1.213700276612e-01,2538 'altp': 1.211717869648e-01,2539 'jdsatepoch': 2.453913286158e+06 2540 };2541 satrec = sgp4init(72, satin, 3.594000000000e-05, 8.840000000000e-05, 2.063178615833e+04, 1.539317568406e+00, 1.717897912141e+00, 4.746112232192e+00, 6.263454709052e-02, 4.323112489349e+00);2542 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2543 assert(isequalRel(satrec.satnum, 2.805700000000e+04, TOL));2544 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2545 assert(isequalRel(satrec.epochdays, 1.777861583300e+02, TOL));2546 assert(isequalRel(satrec.ndot, 1.818051304161e-12, TOL));2547 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2548 assert(isequalRel(satrec.bstar, 3.594000000000e-05, TOL));2549 assert(isequalRel(satrec.inclo, 1.717897912141e+00, TOL));2550 assert(isequalRel(satrec.nodeo, 4.323112489349e+00, TOL));2551 assert(isequalRel(satrec.ecco, 8.840000000000e-05, TOL));2552 assert(isequalRel(satrec.argpo, 1.539317568406e+00, TOL));2553 assert(isequalRel(satrec.mo, 4.746112232192e+00, TOL));2554 assert(isequalRel(satrec.no, 6.267239862091e-02, TOL));2555 assert(isequalRel(satrec.a, 1.121270907313e+00, TOL));2556 assert(isequalRel(satrec.alta, 1.213700276612e-01, TOL));2557 assert(isequalRel(satrec.altp, 1.211717869648e-01, TOL));2558 assert(isequalRel(satrec.jdsatepoch, 2.453913286158e+06, TOL));2559 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));2560 assert(isequalRel(satrec.aycof, 1.159871551252e-03, TOL));2561 assert(isequalRel(satrec.con41, -9.355502628635e-01, TOL));2562 assert(isequalRel(satrec.cc1, 3.328688812461e-11, TOL));2563 assert(isequalRel(satrec.cc4, -4.387798057377e-08, TOL));2564 assert(isequalRel(satrec.cc5, 3.031301664072e-05, TOL));2565 assert(isequalRel(satrec.d2, 4.574585313329e-20, TOL));2566 assert(isequalRel(satrec.d3, 9.379455598865e-29, TOL));2567 assert(isequalRel(satrec.d4, 2.240943706149e-37, TOL));2568 assert(isequalRel(satrec.delmo, 1.000092295250e+00, TOL));2569 assert(isequalRel(satrec.eta, 9.124259161262e-04, TOL));2570 assert(isequalRel(satrec.argpdot, -3.607711622942e-05, TOL));2571 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));2572 assert(isequalRel(satrec.sinmao, -9.994314250315e-01, TOL));2573 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2574 assert(isequalRel(satrec.t2cof, 4.993033218692e-11, TOL));2575 assert(isequalRel(satrec.t3cof, 4.796188697533e-20, TOL));2576 assert(isequalRel(satrec.t4cof, 7.500633436595e-29, TOL));2577 assert(isequalRel(satrec.t5cof, 1.447687575846e-37, TOL));2578 assert(isequalRel(satrec.x1mth2, 9.785167542878e-01, TOL));2579 assert(isequalRel(satrec.x7thm1, -8.496172800149e-01, TOL));2580 assert(isequalRel(satrec.mdot, 6.263452620104e-02, TOL));2581 assert(isequalRel(satrec.nodedot, 1.183970648571e-05, TOL));2582 assert(isequalRel(satrec.xlcof, 1.540605749216e-03, TOL));2583 assert(isequalRel(satrec.xmcof, 0.000000000000e+00, TOL));2584 assert(isequalRel(satrec.nodecf, 1.383445114983e-15, TOL));2585 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2586 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2587 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2588 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2589 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2590 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2591 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2592 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2593 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2594 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2595 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2596 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));2597 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2598 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2599 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2600 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));2601 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));2602 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2603 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));2604 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));2605 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));2606 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2607 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2608 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2609 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2610 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2611 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));2612 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));2613 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));2614 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));2615 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));2616 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));2617 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));2618 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));2619 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));2620 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));2621 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));2622 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));2623 assert(isequalRel(satrec.gsto, 3.451783621544e+00, TOL));2624 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2625 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));2626 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));2627 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));2628 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));2629 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));2630 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));2631 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));2632 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));2633 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));2634 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));2635 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2636 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));2637 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));2638 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2639 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2640 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2641 equal(satrec.method, 'n');2642 equal(satrec.init, 'n');2643});2644// 280572645test('72, satin, 1.000000000000e-04, 4.850600000000e-03, 2.062957071136e+04, 4.647183479530e+00, 9.552152089580e-01, 1.626058686901e+00, 8.751201646284e-03, 5.669000452744e+00', function () {2646 var satin, rets, satrec, TOL = 0.000001;2647 satin = {2648 'error': 0.000000000000e+00,2649 'satnum': 2.812900000000e+04,2650 'epochyr': 6.000000000000e+00,2651 'epochdays': 1.755707113600e+02,2652 'ndot': -3.151288927212e-12,2653 'nddot': 0.000000000000e+00,2654 'bstar': 1.000000000000e-04,2655 'inclo': 9.552152089580e-01,2656 'nodeo': 5.669000452744e+00,2657 'ecco': 4.850600000000e-03,2658 'argpo': 4.647183479530e+00,2659 'mo': 1.626058686901e+00,2660 'no': 8.751201646284e-03,2661 'a': 4.164294042188e+00,2662 'alta': 3.184493366869e+00,2663 'altp': 3.144094717507e+00,2664 'jdsatepoch': 2.453911070711e+06 2665 };2666 satrec = sgp4init(72, satin, 1.000000000000e-04, 4.850600000000e-03, 2.062957071136e+04, 4.647183479530e+00, 9.552152089580e-01, 1.626058686901e+00, 8.751201646284e-03, 5.669000452744e+00);2667 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2668 assert(isequalRel(satrec.satnum, 2.812900000000e+04, TOL));2669 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2670 assert(isequalRel(satrec.epochdays, 1.755707113600e+02, TOL));2671 assert(isequalRel(satrec.ndot, -3.151288927212e-12, TOL));2672 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2673 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2674 assert(isequalRel(satrec.inclo, 9.552152089580e-01, TOL));2675 assert(isequalRel(satrec.nodeo, 5.669000452744e+00, TOL));2676 assert(isequalRel(satrec.ecco, 4.850600000000e-03, TOL));2677 assert(isequalRel(satrec.argpo, 4.647183479530e+00, TOL));2678 assert(isequalRel(satrec.mo, 1.626058686901e+00, TOL));2679 assert(isequalRel(satrec.no, 8.751201528747e-03, TOL));2680 assert(isequalRel(satrec.a, 4.164294042188e+00, TOL));2681 assert(isequalRel(satrec.alta, 3.184493366869e+00, TOL));2682 assert(isequalRel(satrec.altp, 3.144094717507e+00, TOL));2683 assert(isequalRel(satrec.jdsatepoch, 2.453911070711e+06, TOL));2684 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2685 assert(isequalRel(satrec.aycof, 9.573020490049e-04, TOL));2686 assert(isequalRel(satrec.con41, 2.868387191268e-04, TOL));2687 assert(isequalRel(satrec.cc1, 6.943749715587e-17, TOL));2688 assert(isequalRel(satrec.cc4, 2.116354478564e-14, TOL));2689 assert(isequalRel(satrec.cc5, 1.586907226023e-10, TOL));2690 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2691 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2692 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2693 assert(isequalRel(satrec.delmo, 9.989385058711e-01, TOL));2694 assert(isequalRel(satrec.eta, 6.408283505618e-03, TOL));2695 assert(isequalRel(satrec.argpdot, 2.733167532830e-07, TOL));2696 assert(isequalRel(satrec.omgcof, -2.720221625576e-19, TOL));2697 assert(isequalRel(satrec.sinmao, 9.984734243415e-01, TOL));2698 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2699 assert(isequalRel(satrec.t2cof, 1.041562457338e-16, TOL));2700 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2701 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2702 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2703 assert(isequalRel(satrec.x1mth2, 6.665710537603e-01, TOL));2704 assert(isequalRel(satrec.x7thm1, 1.334002623678e+00, TOL));2705 assert(isequalRel(satrec.mdot, 8.751201649839e-03, TOL));2706 assert(isequalRel(satrec.nodedot, -4.732303306962e-07, TOL));2707 assert(isequalRel(satrec.xlcof, 1.786381798147e-03, TOL));2708 assert(isequalRel(satrec.xmcof, -4.085200213224e-11, TOL));2709 assert(isequalRel(satrec.nodecf, -1.150070791226e-22, TOL));2710 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2711 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2712 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2713 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2714 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2715 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2716 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2717 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2718 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2719 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2720 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2721 assert(isequalRel(satrec.dedt, -1.106805331423e-10, TOL));2722 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2723 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2724 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2725 assert(isequalRel(satrec.didt, -8.158095760647e-09, TOL));2726 assert(isequalRel(satrec.dmdt, -2.274847457650e-08, TOL));2727 assert(isequalRel(satrec.dnodt, -1.962977385408e-08, TOL));2728 assert(isequalRel(satrec.domdt, 8.552991333113e-09, TOL));2729 assert(isequalRel(satrec.e3, -3.876849228949e-06, TOL));2730 assert(isequalRel(satrec.ee2, 5.421891510864e-06, TOL));2731 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2732 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2733 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2734 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2735 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2736 assert(isequalRel(satrec.se2, -2.399586065802e-06, TOL));2737 assert(isequalRel(satrec.se3, 3.979795711446e-05, TOL));2738 assert(isequalRel(satrec.sgh2, -7.340466124056e-03, TOL));2739 assert(isequalRel(satrec.sgh3, -9.267102539452e-04, TOL));2740 assert(isequalRel(satrec.sgh4, -1.028902184234e-04, TOL));2741 assert(isequalRel(satrec.sh2, 1.019818515817e-03, TOL));2742 assert(isequalRel(satrec.sh3, -1.260734846663e-04, TOL));2743 assert(isequalRel(satrec.si2, -3.379233009896e-04, TOL));2744 assert(isequalRel(satrec.si3, -1.160185387548e-03, TOL));2745 assert(isequalRel(satrec.sl2, 6.096109975713e-03, TOL));2746 assert(isequalRel(satrec.sl3, 1.773703432654e-03, TOL));2747 assert(isequalRel(satrec.sl4, 2.400824215399e-04, TOL));2748 assert(isequalRel(satrec.gsto, 2.059978512381e+00, TOL));2749 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2750 assert(isequalRel(satrec.xgh2, 6.595724207569e-04, TOL));2751 assert(isequalRel(satrec.xgh3, 1.091630835372e-03, TOL));2752 assert(isequalRel(satrec.xgh4, -5.416568688173e-05, TOL));2753 assert(isequalRel(satrec.xh2, -1.288582105817e-04, TOL));2754 assert(isequalRel(satrec.xh3, -9.703376083569e-05, TOL));2755 assert(isequalRel(satrec.xi2, -8.270003713552e-05, TOL));2756 assert(isequalRel(satrec.xi3, 1.575914794162e-04, TOL));2757 assert(isequalRel(satrec.xl2, -4.514061623044e-04, TOL));2758 assert(isequalRel(satrec.xl3, -1.081448579815e-03, TOL));2759 assert(isequalRel(satrec.xl4, 1.263893640252e-04, TOL));2760 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2761 assert(isequalRel(satrec.zmol, 1.529662090192e+00, TOL));2762 assert(isequalRel(satrec.zmos, 2.959059713970e+00, TOL));2763 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2764 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2765 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2766 equal(satrec.method, 'd');2767 equal(satrec.init, 'n');2768});2769// 281292770test('72, satin, 1.867800000000e-04, 2.487000000000e-03, 2.062121788666e+04, 4.551082160257e+00, 1.134423871224e+00, 1.744613667001e+00, 7.190131350005e-02, 6.032084787695e+00', function () {2771 var satin, rets, satrec, TOL = 0.000001;2772 satin = {2773 'error': 0.000000000000e+00,2774 'satnum': 2.835000000000e+04,2775 'epochyr': 6.000000000000e+00,2776 'epochdays': 1.672178866600e+02,2777 'ndot': 4.894949208109e-07,2778 'nddot': 1.604830078871e-14,2779 'bstar': 1.867800000000e-04,2780 'inclo': 1.134423871224e+00,2781 'nodeo': 6.032084787695e+00,2782 'ecco': 2.487000000000e-03,2783 'argpo': 4.551082160257e+00,2784 'mo': 1.744613667001e+00,2785 'no': 7.190131350005e-02,2786 'a': 1.022732284475e+00,2787 'alta': 2.527581966614e-02,2788 'altp': 2.018874928316e-02,2789 'jdsatepoch': 2.453902717887e+06 2790 };2791 satrec = sgp4init(72, satin, 1.867800000000e-04, 2.487000000000e-03, 2.062121788666e+04, 4.551082160257e+00, 1.134423871224e+00, 1.744613667001e+00, 7.190131350005e-02, 6.032084787695e+00);2792 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2793 assert(isequalRel(satrec.satnum, 2.835000000000e+04, TOL));2794 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2795 assert(isequalRel(satrec.epochdays, 1.672178866600e+02, TOL));2796 assert(isequalRel(satrec.ndot, 4.894949208109e-07, TOL));2797 assert(isequalRel(satrec.nddot, 1.604830078871e-14, TOL));2798 assert(isequalRel(satrec.bstar, 1.867800000000e-04, TOL));2799 assert(isequalRel(satrec.inclo, 1.134423871224e+00, TOL));2800 assert(isequalRel(satrec.nodeo, 6.032084787695e+00, TOL));2801 assert(isequalRel(satrec.ecco, 2.487000000000e-03, TOL));2802 assert(isequalRel(satrec.argpo, 4.551082160257e+00, TOL));2803 assert(isequalRel(satrec.mo, 1.744613667001e+00, TOL));2804 assert(isequalRel(satrec.no, 7.192721985507e-02, TOL));2805 assert(isequalRel(satrec.a, 1.022732284475e+00, TOL));2806 assert(isequalRel(satrec.alta, 2.527581966614e-02, TOL));2807 assert(isequalRel(satrec.altp, 2.018874928316e-02, TOL));2808 assert(isequalRel(satrec.jdsatepoch, 2.453902717887e+06, TOL));2809 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2810 assert(isequalRel(satrec.aycof, 1.062657581303e-03, TOL));2811 assert(isequalRel(satrec.con41, -4.640891584380e-01, TOL));2812 assert(isequalRel(satrec.cc1, 4.544683509554e-06, TOL));2813 assert(isequalRel(satrec.cc4, 1.268170994709e-02, TOL));2814 assert(isequalRel(satrec.cc5, 7.841276141148e-01, TOL));2815 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2816 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2817 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2818 assert(isequalRel(satrec.delmo, 9.133197917493e-01, TOL));2819 assert(isequalRel(satrec.eta, 1.721425121901e-01, TOL));2820 assert(isequalRel(satrec.argpdot, -6.065080248370e-06, TOL));2821 assert(isequalRel(satrec.omgcof, -7.957944273337e-05, TOL));2822 assert(isequalRel(satrec.sinmao, 9.849317608904e-01, TOL));2823 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2824 assert(isequalRel(satrec.t2cof, 6.817025264331e-06, TOL));2825 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2826 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2827 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2828 assert(isequalRel(satrec.x1mth2, 8.213630528127e-01, TOL));2829 assert(isequalRel(satrec.x7thm1, 2.504586303113e-01, TOL));2830 assert(isequalRel(satrec.mdot, 7.190130726551e-02, TOL));2831 assert(isequalRel(satrec.nodedot, -4.713799132252e-05, TOL));2832 assert(isequalRel(satrec.xlcof, 1.909689949638e-03, TOL));2833 assert(isequalRel(satrec.xmcof, -9.271553108060e-02, TOL));2834 assert(isequalRel(satrec.nodecf, -7.511102051252e-10, TOL));2835 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2836 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2837 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2838 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2839 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2840 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2841 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2842 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2843 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2844 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2845 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2846 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));2847 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2848 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2849 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2850 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));2851 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));2852 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2853 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));2854 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));2855 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));2856 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2857 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2858 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2859 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2860 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2861 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));2862 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));2863 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));2864 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));2865 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));2866 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));2867 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));2868 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));2869 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));2870 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));2871 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));2872 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));2873 assert(isequalRel(satrec.gsto, 5.982608943601e+00, TOL));2874 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2875 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));2876 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));2877 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));2878 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));2879 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));2880 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));2881 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));2882 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));2883 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));2884 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));2885 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2886 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));2887 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));2888 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2889 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2890 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2891 equal(satrec.method, 'n');2892 equal(satrec.init, 'n');2893});2894// 283502895//# *** error: t:= 1560.000000 *** code = 12896test('72, satin, 9.639000000000e-04, 6.249053000000e-01, 2.063181079184e+04, 2.971510317983e+00, 4.977679026688e-01, 3.715744890972e+00, 1.655781478256e-02, 2.006838915138e+00', function () {2897 var satin, rets, satrec, TOL = 0.000001;2898 satin = {2899 'error': 0.000000000000e+00,2900 'satnum': 2.862300000000e+04,2901 'epochyr': 6.000000000000e+00,2902 'epochdays': 1.778107918400e+02,2903 'ndot': 1.932115842984e-08,2904 'nddot': 1.453052254138e-15,2905 'bstar': 9.639000000000e-04,2906 'inclo': 4.977679026688e-01,2907 'nodeo': 2.006838915138e+00,2908 'ecco': 6.249053000000e-01,2909 'argpo': 2.971510317983e+00,2910 'mo': 3.715744890972e+00,2911 'no': 1.655781478256e-02,2912 'a': 2.722186242514e+00,2913 'alta': 3.423294853048e+00,2914 'altp': 2.107763197986e-02,2915 'jdsatepoch': 2.453913310792e+06 2916 };2917 satrec = sgp4init(72, satin, 9.639000000000e-04, 6.249053000000e-01, 2.063181079184e+04, 2.971510317983e+00, 4.977679026688e-01, 3.715744890972e+00, 1.655781478256e-02, 2.006838915138e+00);2918 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));2919 assert(isequalRel(satrec.satnum, 2.862300000000e+04, TOL));2920 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2921 assert(isequalRel(satrec.epochdays, 1.778107918400e+02, TOL));2922 assert(isequalRel(satrec.ndot, 1.932115842984e-08, TOL));2923 assert(isequalRel(satrec.nddot, 1.453052254138e-15, TOL));2924 assert(isequalRel(satrec.bstar, 9.639000000000e-04, TOL));2925 assert(isequalRel(satrec.inclo, 4.977679026688e-01, TOL));2926 assert(isequalRel(satrec.nodeo, 2.006838915138e+00, TOL));2927 assert(isequalRel(satrec.ecco, 6.249053000000e-01, TOL));2928 assert(isequalRel(satrec.argpo, 2.971510317983e+00, TOL));2929 assert(isequalRel(satrec.mo, 3.715744890972e+00, TOL));2930 assert(isequalRel(satrec.no, 1.655279727416e-02, TOL));2931 assert(isequalRel(satrec.a, 2.722186242514e+00, TOL));2932 assert(isequalRel(satrec.alta, 3.423294853048e+00, TOL));2933 assert(isequalRel(satrec.altp, 2.107763197986e-02, TOL));2934 assert(isequalRel(satrec.jdsatepoch, 2.453913310792e+06, TOL));2935 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2936 assert(isequalRel(satrec.aycof, 5.598449387749e-04, TOL));2937 assert(isequalRel(satrec.con41, 1.316080099741e+00, TOL));2938 assert(isequalRel(satrec.cc1, 7.794470372523e-07, TOL));2939 assert(isequalRel(satrec.cc4, 6.870308409853e-04, TOL));2940 assert(isequalRel(satrec.cc5, 6.136467900309e-02, TOL));2941 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2942 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2943 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2944 assert(isequalRel(satrec.delmo, 4.602372744525e-03, TOL));2945 assert(isequalRel(satrec.eta, 9.928637385504e-01, TOL));2946 assert(isequalRel(satrec.argpdot, 1.398466945436e-05, TOL));2947 assert(isequalRel(satrec.omgcof, -3.459244932824e-17, TOL));2948 assert(isequalRel(satrec.sinmao, -5.431231594784e-01, TOL));2949 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2950 assert(isequalRel(satrec.t2cof, 1.169170555878e-06, TOL));2951 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2952 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2953 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2954 assert(isequalRel(satrec.x1mth2, 2.279733000863e-01, TOL));2955 assert(isequalRel(satrec.x7thm1, 4.404186899396e+00, TOL));2956 assert(isequalRel(satrec.mdot, 1.655781496506e-02, TOL));2957 assert(isequalRel(satrec.nodedot, -8.592532289781e-06, TOL));2958 assert(isequalRel(satrec.xlcof, 1.101608572960e-03, TOL));2959 assert(isequalRel(satrec.xmcof, -1.089540957252e-12, TOL));2960 assert(isequalRel(satrec.nodecf, -1.426027039134e-11, TOL));2961 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2962 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2963 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2964 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2965 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2966 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2967 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2968 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2969 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2970 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2971 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2972 assert(isequalRel(satrec.dedt, -1.284368777035e-08, TOL));2973 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2974 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2975 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2976 assert(isequalRel(satrec.didt, 2.182189987367e-08, TOL));2977 assert(isequalRel(satrec.dmdt, -1.266772856942e-08, TOL));2978 assert(isequalRel(satrec.dnodt, -1.981003275567e-08, TOL));2979 assert(isequalRel(satrec.domdt, 2.122734368629e-08, TOL));2980 assert(isequalRel(satrec.e3, 2.080207273239e-04, TOL));2981 assert(isequalRel(satrec.ee2, 2.279612848318e-04, TOL));2982 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2983 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2984 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2985 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2986 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2987 assert(isequalRel(satrec.se2, -2.010666927152e-03, TOL));2988 assert(isequalRel(satrec.se3, 1.234888459603e-04, TOL));2989 assert(isequalRel(satrec.sgh2, 4.404694052449e-04, TOL));2990 assert(isequalRel(satrec.sgh3, -3.174852765982e-03, TOL));2991 assert(isequalRel(satrec.sgh4, -4.246782106577e-05, TOL));2992 assert(isequalRel(satrec.sh2, 4.897361699131e-04, TOL));2993 assert(isequalRel(satrec.sh3, -1.594883558919e-04, TOL));2994 assert(isequalRel(satrec.si2, -1.422358125944e-03, TOL));2995 assert(isequalRel(satrec.si3, -1.642085155919e-03, TOL));2996 assert(isequalRel(satrec.sl2, -1.791873501287e-03, TOL));2997 assert(isequalRel(satrec.sl3, 5.840111590196e-03, TOL));2998 assert(isequalRel(satrec.sl4, 1.481689063817e-04, TOL));2999 assert(isequalRel(satrec.gsto, 3.606984295022e+00, TOL));3000 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3001 assert(isequalRel(satrec.xgh2, -3.876052640328e-04, TOL));3002 assert(isequalRel(satrec.xgh3, 2.628367881541e-04, TOL));3003 assert(isequalRel(satrec.xgh4, -2.235682588341e-05, TOL));3004 assert(isequalRel(satrec.xh2, -7.296812344377e-05, TOL));3005 assert(isequalRel(satrec.xh3, -4.081833544751e-05, TOL));3006 assert(isequalRel(satrec.xi2, -6.948628061380e-05, TOL));3007 assert(isequalRel(satrec.xi3, 3.512666727653e-04, TOL));3008 assert(isequalRel(satrec.xl2, 8.272799129225e-04, TOL));3009 assert(isequalRel(satrec.xl3, -3.372511878045e-04, TOL));3010 assert(isequalRel(satrec.xl4, 7.800226991119e-05, TOL));3011 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3012 assert(isequalRel(satrec.zmol, 2.040461217495e+00, TOL));3013 assert(isequalRel(satrec.zmos, 2.997593526865e+00, TOL));3014 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3015 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3016 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3017 equal(satrec.method, 'd');3018 equal(satrec.init, 'n');3019});3020// 286233021test('72, satin, 1.000000000000e-04, 3.350000000000e-05, 2.063046683397e+04, 2.407123197766e-01, 3.316125578789e-05, 9.712827100519e-01, 4.375111781885e-03, 5.008105351538e+00', function () {3022 var satin, rets, satrec, TOL = 0.000001;3023 satin = {3024 'error': 0.000000000000e+00,3025 'satnum': 2.862600000000e+04,3026 'epochyr': 6.000000000000e+00,3027 'epochdays': 1.764668339700e+02,3028 'ndot': -6.211675289216e-12,3029 'nddot': 0.000000000000e+00,3030 'bstar': 1.000000000000e-04,3031 'inclo': 3.316125578789e-05,3032 'nodeo': 5.008105351538e+00,3033 'ecco': 3.350000000000e-05,3034 'argpo': 2.407123197766e-01,3035 'mo': 9.712827100519e-01,3036 'no': 4.375111781885e-03,3037 'a': 6.610897332657e+00,3038 'alta': 5.611118797718e+00,3039 'altp': 5.610675867596e+00,3040 'jdsatepoch': 2.453911966834e+06 3041 };3042 satrec = sgp4init(72, satin, 1.000000000000e-04, 3.350000000000e-05, 2.063046683397e+04, 2.407123197766e-01, 3.316125578789e-05, 9.712827100519e-01, 4.375111781885e-03, 5.008105351538e+00);3043 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));3044 assert(isequalRel(satrec.satnum, 2.862600000000e+04, TOL));3045 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));3046 assert(isequalRel(satrec.epochdays, 1.764668339700e+02, TOL));3047 assert(isequalRel(satrec.ndot, -6.211675289216e-12, TOL));3048 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));3049 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));3050 assert(isequalRel(satrec.inclo, 3.316125578789e-05, TOL));3051 assert(isequalRel(satrec.nodeo, 5.008105351538e+00, TOL));3052 assert(isequalRel(satrec.ecco, 3.350000000000e-05, TOL));3053 assert(isequalRel(satrec.argpo, 2.407123197766e-01, TOL));3054 assert(isequalRel(satrec.mo, 9.712827100519e-01, TOL));3055 assert(isequalRel(satrec.no, 4.374949216286e-03, TOL));3056 assert(isequalRel(satrec.a, 6.610897332657e+00, TOL));3057 assert(isequalRel(satrec.alta, 5.611118797718e+00, TOL));3058 assert(isequalRel(satrec.altp, 5.610675867596e+00, TOL));3059 assert(isequalRel(satrec.jdsatepoch, 2.453911966834e+06, TOL));3060 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));3061 assert(isequalRel(satrec.aycof, 3.888272840575e-08, TOL));3062 assert(isequalRel(satrec.con41, 1.999999996701e+00, TOL));3063 assert(isequalRel(satrec.cc1, 5.535451443276e-18, TOL));3064 assert(isequalRel(satrec.cc4, 3.003618119250e-17, TOL));3065 assert(isequalRel(satrec.cc5, 2.530077451701e-11, TOL));3066 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));3067 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));3068 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));3069 assert(isequalRel(satrec.delmo, 1.000066959797e+00, TOL));3070 assert(isequalRel(satrec.eta, 3.955656358140e-05, TOL));3071 assert(isequalRel(satrec.argpdot, 3.251717209515e-07, TOL));3072 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));3073 assert(isequalRel(satrec.sinmao, 8.256101499198e-01, TOL));3074 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3075 assert(isequalRel(satrec.t2cof, 8.303177164914e-18, TOL));3076 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));3077 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));3078 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));3079 assert(isequalRel(satrec.x1mth2, 1.099668800464e-09, TOL));3080 assert(isequalRel(satrec.x7thm1, 5.999999992302e+00, TOL));3081 assert(isequalRel(satrec.mdot, 4.375111778864e-03, TOL));3082 assert(isequalRel(satrec.nodedot, -1.625828407295e-07, TOL));3083 assert(isequalRel(satrec.xlcof, 7.776545680615e-08, TOL));3084 assert(isequalRel(satrec.xmcof, 0.000000000000e+00, TOL));3085 assert(isequalRel(satrec.nodecf, -3.149324885339e-24, TOL));3086 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));3087 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3088 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3089 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3090 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3091 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3092 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3093 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3094 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3095 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3096 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3097 assert(isequalRel(satrec.dedt, -1.163351218344e-12, TOL));3098 assert(isequalRel(satrec.del1, -6.397199405204e-13, TOL));3099 assert(isequalRel(satrec.del2, 1.410351263886e-11, TOL));3100 assert(isequalRel(satrec.del3, 1.978384035449e-12, TOL));3101 assert(isequalRel(satrec.didt, -2.947177196394e-08, TOL));3102 assert(isequalRel(satrec.dmdt, -1.045030124521e-07, TOL));3103 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3104 assert(isequalRel(satrec.domdt, 3.403399555001e-08, TOL));3105 assert(isequalRel(satrec.e3, 9.730286584479e-08, TOL));3106 assert(isequalRel(satrec.ee2, 4.116645807083e-09, TOL));3107 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3108 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3109 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3110 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3111 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3112 assert(isequalRel(satrec.se2, -4.897269431303e-07, TOL));3113 assert(isequalRel(satrec.se3, -3.982514162897e-07, TOL));3114 assert(isequalRel(satrec.sgh2, 1.218979806720e-02, TOL));3115 assert(isequalRel(satrec.sgh3, -1.372729148759e-02, TOL));3116 assert(isequalRel(satrec.sgh4, -2.058135042329e-04, TOL));3117 assert(isequalRel(satrec.sh2, -1.607052704128e-03, TOL));3118 assert(isequalRel(satrec.sh3, 1.922166128879e-04, TOL));3119 assert(isequalRel(satrec.si2, 1.068903225853e-04, TOL));3120 assert(isequalRel(satrec.si3, 1.503069663730e-03, TOL));3121 assert(isequalRel(satrec.sl2, -1.268456207451e-02, TOL));3122 assert(isequalRel(satrec.sl3, 1.252883219957e-02, TOL));3123 assert(isequalRel(satrec.sl4, 4.802315103772e-04, TOL));3124 assert(isequalRel(satrec.gsto, 1.422713433736e+00, TOL));3125 assert(isequalRel(satrec.xfact, -4.375014405570e-03, TOL));3126 assert(isequalRel(satrec.xgh2, -2.791926643954e-03, TOL));3127 assert(isequalRel(satrec.xgh3, -6.071229788246e-05, TOL));3128 assert(isequalRel(satrec.xgh4, -1.083487818097e-04, TOL));3129 assert(isequalRel(satrec.xh2, 2.358741028641e-04, TOL));3130 assert(isequalRel(satrec.xh3, 2.037703492136e-04, TOL));3131 assert(isequalRel(satrec.xi2, 1.978957741048e-04, TOL));3132 assert(isequalRel(satrec.xi3, -1.979448507755e-04, TOL));3133 assert(isequalRel(satrec.xl2, 2.660801647839e-03, TOL));3134 assert(isequalRel(satrec.xl3, 3.319557433091e-04, TOL));3135 assert(isequalRel(satrec.xl4, 2.528138244862e-04, TOL));3136 assert(isequalRel(satrec.xlamo, 4.797386947630e+00, TOL));3137 assert(isequalRel(satrec.zmol, 1.734002358913e+00, TOL));3138 assert(isequalRel(satrec.zmos, 2.974474794500e+00, TOL));3139 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3140 assert(isequalRel(satrec.xli, 4.797386947630e+00, TOL));3141 assert(isequalRel(satrec.xni, 4.374949216286e-03, TOL));3142 equal(satrec.method, 'd');3143 equal(satrec.init, 'n');3144});3145// 286263146test('72, satin, 2.447600000000e-04, 3.039550000000e-02, 2.042202012661e+04, 4.259462076858e+00, 1.683781961252e+00, 1.931246959905e+00, 7.182099414601e-02, 2.757595783542e+00', function () {3147 var satin, rets, satrec, TOL = 0.000001;3148 satin = {3149 'error': 0.000000000000e+00,3150 'satnum': 2.887200000000e+04,3151 'epochyr': 5.000000000000e+00,3152 'epochdays': 3.330201266100e+02,3153 'ndot': 7.876004598447e-07,3154 'nddot': 0.000000000000e+00,3155 'bstar': 2.447600000000e-04,3156 'inclo': 1.683781961252e+00,3157 'nodeo': 2.757595783542e+00,3158 'ecco': 3.039550000000e-02,3159 'argpo': 4.259462076858e+00,3160 'mo': 1.931246959905e+00,3161 'no': 7.182099414601e-02,3162 'a': 1.023494641816e+00,3163 'alta': 5.460427320098e-02,3164 'altp': -7.614989569634e-03,3165 'jdsatepoch': 2.453703520127e+06 3166 };3167 satrec = sgp4init(72, satin, 2.447600000000e-04, 3.039550000000e-02, 2.042202012661e+04, 4.259462076858e+00, 1.683781961252e+00, 1.931246959905e+00, 7.182099414601e-02, 2.757595783542e+00);3168 assert(isequalRel(satrec.error, 5.000000000000e+00, TOL));3169 assert(isequalRel(satrec.satnum, 2.887200000000e+04, TOL));3170 assert(isequalRel(satrec.epochyr, 5.000000000000e+00, TOL));3171 assert(isequalRel(satrec.epochdays, 3.330201266100e+02, TOL));3172 assert(isequalRel(satrec.ndot, 7.876004598447e-07, TOL));3173 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));3174 assert(isequalRel(satrec.bstar, 2.447600000000e-04, TOL));3175 assert(isequalRel(satrec.inclo, 1.683781961252e+00, TOL));3176 assert(isequalRel(satrec.nodeo, 2.757595783542e+00, TOL));3177 assert(isequalRel(satrec.ecco, 3.039550000000e-02, TOL));3178 assert(isequalRel(satrec.argpo, 4.259462076858e+00, TOL));3179 assert(isequalRel(satrec.mo, 1.931246959905e+00, TOL));3180 assert(isequalRel(satrec.no, 7.187462824278e-02, TOL));3181 assert(isequalRel(satrec.a, 1.023494641816e+00, TOL));3182 assert(isequalRel(satrec.alta, 5.460427320098e-02, TOL));3183 assert(isequalRel(satrec.altp, -7.614989569634e-03, TOL));3184 assert(isequalRel(satrec.jdsatepoch, 2.453703520127e+06, TOL));3185 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));3186 assert(isequalRel(satrec.aycof, 1.165058672797e-03, TOL));3187 assert(isequalRel(satrec.con41, -9.618654265547e-01, TOL));3188 assert(isequalRel(satrec.cc1, 7.305340120570e-06, TOL));3189 assert(isequalRel(satrec.cc4, 7.438327469896e-02, TOL));3190 assert(isequalRel(satrec.cc5, 1.716904676665e+00, TOL));3191 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));3192 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));3193 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));3194 assert(isequalRel(satrec.delmo, 8.962003458657e-02, TOL));3195 assert(isequalRel(satrec.eta, 1.566479807341e+00, TOL));3196 assert(isequalRel(satrec.argpdot, -5.216790415232e-05, TOL));3197 assert(isequalRel(satrec.omgcof, -2.314443451479e-05, TOL));3198 assert(isequalRel(satrec.sinmao, 9.357379822238e-01, TOL));3199 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3200 assert(isequalRel(satrec.t2cof, 1.095801018086e-05, TOL));3201 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));3202 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));3203 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));3204 assert(isequalRel(satrec.x1mth2, 9.872884755182e-01, TOL));3205 assert(isequalRel(satrec.x7thm1, -9.110193286276e-01, TOL));3206 assert(isequalRel(satrec.mdot, 7.182095759003e-02, TOL));3207 assert(isequalRel(satrec.nodedot, 1.255223994192e-05, TOL));3208 assert(isequalRel(satrec.xlcof, 1.599541437465e-03, TOL));3209 assert(isequalRel(satrec.xmcof, -1.333903884591e-03, TOL));3210 assert(isequalRel(satrec.nodecf, 3.218186128767e-10, TOL));3211 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));3212 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3213 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3214 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3215 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3216 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3217 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3218 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3219 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3220 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3221 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3222 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));3223 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));3224 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));3225 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));3226 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));3227 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));3228 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3229 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));3230 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));3231 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3232 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3233 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3234 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3235 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3236 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3237 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3238 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3239 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3240 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3241 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3242 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3243 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3244 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3245 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3246 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3247 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3248 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3249 assert(isequalRel(satrec.gsto, 1.313288306073e+00, TOL));3250 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3251 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3252 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3253 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3254 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3255 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3256 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3257 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3258 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3259 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3260 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3261 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3262 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3263 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3264 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3265 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3266 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3267 equal(satrec.method, 'n');3268 equal(satrec.init, 'n');3269});3270// 288723271test('72, satin, 1.351900000000e-01, 1.584800000000e-03, 2.062426783845e+04, 4.838269107356e+00, 1.438653958468e+00, 1.464563371214e+00, 6.952270688787e-02, 4.773269555353e+00', function () {3272 var satin, rets, satrec, TOL = 0.000001;3273 satin = {3274 'error': 0.000000000000e+00,3275 'satnum': 2.914100000000e+04,3276 'epochyr': 6.000000000000e+00,3277 'epochdays': 1.702678384500e+02,3278 'ndot': 3.030085476634e-06,3279 'nddot': 0.000000000000e+00,3280 'bstar': 1.351900000000e-01,3281 'inclo': 1.438653958468e+00,3282 'nodeo': 4.773269555353e+00,3283 'ecco': 1.584800000000e-03,3284 'argpo': 4.838269107356e+00,3285 'mo': 1.464563371214e+00,3286 'no': 6.952270688787e-02,3287 'a': 1.045928666506e+00,3288 'alta': 4.758625425707e-02,3289 'altp': 4.427107875571e-02,3290 'jdsatepoch': 2.453905767838e+06 3291 };3292 satrec = sgp4init(72, satin, 1.351900000000e-01, 1.584800000000e-03, 2.062426783845e+04, 4.838269107356e+00, 1.438653958468e+00, 1.464563371214e+00, 6.952270688787e-02, 4.773269555353e+00);3293 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));3294 assert(isequalRel(satrec.satnum, 2.914100000000e+04, TOL));3295 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));3296 assert(isequalRel(satrec.epochdays, 1.702678384500e+02, TOL));3297 assert(isequalRel(satrec.ndot, 3.030085476634e-06, TOL));3298 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));3299 assert(isequalRel(satrec.bstar, 1.351900000000e-01, TOL));3300 assert(isequalRel(satrec.inclo, 1.438653958468e+00, TOL));3301 assert(isequalRel(satrec.nodeo, 4.773269555353e+00, TOL));3302 assert(isequalRel(satrec.ecco, 1.584800000000e-03, TOL));3303 assert(isequalRel(satrec.argpo, 4.838269107356e+00, TOL));3304 assert(isequalRel(satrec.mo, 1.464563371214e+00, TOL));3305 assert(isequalRel(satrec.no, 6.957163219428e-02, TOL));3306 assert(isequalRel(satrec.a, 1.045928666506e+00, TOL));3307 assert(isequalRel(satrec.alta, 4.758625425707e-02, TOL));3308 assert(isequalRel(satrec.altp, 4.427107875571e-02, TOL));3309 assert(isequalRel(satrec.jdsatepoch, 2.453905767838e+06, TOL));3310 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));3311 assert(isequalRel(satrec.aycof, 1.162312577206e-03, TOL));3312 assert(isequalRel(satrec.con41, -9.479193821401e-01, TOL));3313 assert(isequalRel(satrec.cc1, 1.402302071488e-05, TOL));3314 assert(isequalRel(satrec.cc4, 2.616998163647e-06, TOL));3315 assert(isequalRel(satrec.cc5, 3.283768193269e-03, TOL));3316 assert(isequalRel(satrec.d2, 2.476202150265e-08, TOL));3317 assert(isequalRel(satrec.d3, 6.547187456016e-11, TOL));3318 assert(isequalRel(satrec.d4, 2.018849945761e-13, TOL));3319 assert(isequalRel(satrec.delmo, 1.015954241921e+00, TOL));3320 assert(isequalRel(satrec.eta, 4.989044945409e-02, TOL));3321 assert(isequalRel(satrec.argpdot, -4.707515274342e-05, TOL));3322 assert(isequalRel(satrec.omgcof, 1.612649561091e-04, TOL));3323 assert(isequalRel(satrec.sinmao, 9.943625842940e-01, TOL));3324 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3325 assert(isequalRel(satrec.t2cof, 2.103453107232e-05, TOL));3326 assert(isequalRel(satrec.t3cof, 2.515531172259e-08, TOL));3327 assert(isequalRel(satrec.t4cof, 5.015251483767e-11, TOL));3328 assert(isequalRel(satrec.t5cof, 1.240995902746e-13, TOL));3329 assert(isequalRel(satrec.x1mth2, 9.826397940467e-01, TOL));3330 assert(isequalRel(satrec.x7thm1, -8.784785583269e-01, TOL));3331 assert(isequalRel(satrec.mdot, 6.952267544908e-02, TOL));3332 assert(isequalRel(satrec.nodedot, -1.357344170800e-05, TOL));3333 assert(isequalRel(satrec.xlcof, 1.878784117365e-03, TOL));3334 assert(isequalRel(satrec.xmcof, -1.762227730388e+00, TOL));3335 assert(isequalRel(satrec.nodecf, -6.684813053795e-10, TOL));3336 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));3337 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3338 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3339 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3340 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3341 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3342 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3343 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3344 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3345 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3346 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3347 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));3348 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));3349 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));3350 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));3351 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));3352 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));3353 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3354 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));3355 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));3356 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3357 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3358 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3359 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3360 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3361 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3362 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3363 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3364 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3365 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3366 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3367 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3368 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3369 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3370 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3371 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3372 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3373 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3374 assert(isequalRel(satrec.gsto, 6.574767745587e-02, TOL));3375 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3376 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3377 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3378 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3379 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3380 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3381 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3382 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3383 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3384 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3385 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3386 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3387 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3388 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3389 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3390 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3391 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3392 equal(satrec.method, 'n');3393 equal(satrec.init, 'n');3394});3395// 291413396//# *** error: t:= 440.000000 *** code = 63397test('72, satin, 1.333400000000e-03, 2.025790000000e-02, 2.063128732010e+04, 1.662431348512e+00, 8.998830356820e-01, 4.675754519385e+00, 6.867101959232e-02, 3.731344643826e+00', function () {3398 var satin, rets, satrec, TOL = 0.000001;3399 satin = {3400 'error': 0.000000000000e+00,3401 'satnum': 2.923800000000e+04,3402 'epochyr': 6.000000000000e+00,3403 'epochdays': 1.772873201000e+02,3404 'ndot': 2.321912102767e-08,3405 'nddot': 2.277403850108e-14,3406 'bstar': 1.333400000000e-03,3407 'inclo': 8.998830356820e-01,3408 'nodeo': 3.731344643826e+00,3409 'ecco': 2.025790000000e-02,3410 'argpo': 1.662431348512e+00,3411 'mo': 4.675754519385e+00,3412 'no': 6.867101959232e-02,3413 'a': 1.054558924065e+00,3414 'alta': 7.592207329265e-02,3415 'altp': 3.319577483702e-02,3416 'jdsatepoch': 2.453912787320e+06 3417 };3418 satrec = sgp4init(72, satin, 1.333400000000e-03, 2.025790000000e-02, 2.063128732010e+04, 1.662431348512e+00, 8.998830356820e-01, 4.675754519385e+00, 6.867101959232e-02, 3.731344643826e+00);3419 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));3420 assert(isequalRel(satrec.satnum, 2.923800000000e+04, TOL));3421 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));3422 assert(isequalRel(satrec.epochdays, 1.772873201000e+02, TOL));3423 assert(isequalRel(satrec.ndot, 2.321912102767e-08, TOL));3424 assert(isequalRel(satrec.nddot, 2.277403850108e-14, TOL));3425 assert(isequalRel(satrec.bstar, 1.333400000000e-03, TOL));3426 assert(isequalRel(satrec.inclo, 8.998830356820e-01, TOL));3427 assert(isequalRel(satrec.nodeo, 3.731344643826e+00, TOL));3428 assert(isequalRel(satrec.ecco, 2.025790000000e-02, TOL));3429 assert(isequalRel(satrec.argpo, 1.662431348512e+00, TOL));3430 assert(isequalRel(satrec.mo, 4.675754519385e+00, TOL));3431 assert(isequalRel(satrec.no, 6.866301602203e-02, TOL));3432 assert(isequalRel(satrec.a, 1.054558924065e+00, TOL));3433 assert(isequalRel(satrec.alta, 7.592207329265e-02, TOL));3434 assert(isequalRel(satrec.altp, 3.319577483702e-02, TOL));3435 assert(isequalRel(satrec.jdsatepoch, 2.453912787320e+06, TOL));3436 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));3437 assert(isequalRel(satrec.aycof, 9.183928514987e-04, TOL));3438 assert(isequalRel(satrec.con41, 1.595385835540e-01, TOL));3439 assert(isequalRel(satrec.cc1, 2.269353322605e-07, TOL));3440 assert(isequalRel(satrec.cc4, 2.625327421249e-04, TOL));3441 assert(isequalRel(satrec.cc5, 5.899869491082e-03, TOL));3442 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));3443 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));3444 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));3445 assert(isequalRel(satrec.delmo, 9.456636074024e-01, TOL));3446 assert(isequalRel(satrec.eta, 5.037493042251e-01, TOL));3447 assert(isequalRel(satrec.argpdot, 4.669456818517e-05, TOL));3448 assert(isequalRel(satrec.omgcof, -2.081758941314e-08, TOL));3449 assert(isequalRel(satrec.sinmao, -9.993290331798e-01, TOL));3450 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3451 assert(isequalRel(satrec.t2cof, 3.404029983907e-07, TOL));3452 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));3453 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));3454 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));3455 assert(isequalRel(satrec.x1mth2, 6.134871388153e-01, TOL));3456 assert(isequalRel(satrec.x7thm1, 1.705590028293e+00, TOL));3457 assert(isequalRel(satrec.mdot, 6.867102786080e-02, TOL));3458 assert(isequalRel(satrec.nodedot, -6.241104888509e-05, TOL));3459 assert(isequalRel(satrec.xlcof, 1.729667795817e-03, TOL));3460 assert(isequalRel(satrec.xmcof, -5.062259410359e-05, TOL));3461 assert(isequalRel(satrec.nodecf, -4.952332336293e-11, TOL));3462 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));3463 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3464 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3465 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3466 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3467 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3468 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3469 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3470 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3471 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3472 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3473 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));3474 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));3475 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));3476 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));3477 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));3478 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));3479 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3480 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));3481 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));3482 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3483 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3484 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3485 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3486 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3487 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3488 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3489 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3490 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3491 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3492 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3493 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3494 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3495 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3496 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3497 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3498 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3499 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3500 assert(isequalRel(satrec.gsto, 3.089091736929e-01, TOL));3501 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3502 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3503 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3504 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3505 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3506 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3507 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3508 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3509 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3510 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3511 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3512 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3513 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3514 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3515 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3516 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3517 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3518 equal(satrec.method, 'n');3519 equal(satrec.init, 'n');3520});3521// 292383522test('72, satin, 6.681600000000e-05, 8.673100000000e-03, 1.123298708465e+04, 9.197675718500e-01, 1.271358913676e+00, 1.929834988540e+00, 7.006731262088e-02, 2.024039134916e+00', function () {3523 var satin, rets, satrec, TOL = 0.000001;3524 satin = {3525 'error': 0.000000000000e+00,3526 'satnum': 8.888800000000e+04,3527 'epochyr': 8.000000000000e+01,3528 'epochdays': 2.759870846500e+02,3529 'ndot': 2.214810700439e-09,3530 'nddot': 2.913090538750e-13,3531 'bstar': 6.681600000000e-05,3532 'inclo': 1.271358913676e+00,3533 'nodeo': 2.024039134916e+00,3534 'ecco': 8.673100000000e-03,3535 'argpo': 9.197675718500e-01,3536 'mo': 1.929834988540e+00,3537 'no': 7.006731262088e-02,3538 'a': 1.040501892439e+00,3539 'alta': 4.952626940243e-02,3540 'altp': 3.147751547580e-02,3541 'jdsatepoch': 2.444514487085e+06 3542 };3543 satrec = sgp4init(72, satin, 6.681600000000e-05, 8.673100000000e-03, 1.123298708465e+04, 9.197675718500e-01, 1.271358913676e+00, 1.929834988540e+00, 7.006731262088e-02, 2.024039134916e+00);3544 assert(isequalRel(satrec.error, 0.000000000000e+00, TOL));3545 assert(isequalRel(satrec.satnum, 8.888800000000e+04, TOL));3546 assert(isequalRel(satrec.epochyr, 8.000000000000e+01, TOL));3547 assert(isequalRel(satrec.epochdays, 2.759870846500e+02, TOL));3548 assert(isequalRel(satrec.ndot, 2.214810700439e-09, TOL));3549 assert(isequalRel(satrec.nddot, 2.913090538750e-13, TOL));3550 assert(isequalRel(satrec.bstar, 6.681600000000e-05, TOL));3551 assert(isequalRel(satrec.inclo, 1.271358913676e+00, TOL));3552 assert(isequalRel(satrec.nodeo, 2.024039134916e+00, TOL));3553 assert(isequalRel(satrec.ecco, 8.673100000000e-03, TOL));3554 assert(isequalRel(satrec.argpo, 9.197675718500e-01, TOL));3555 assert(isequalRel(satrec.mo, 1.929834988540e+00, TOL));3556 assert(isequalRel(satrec.no, 7.010615566653e-02, TOL));3557 assert(isequalRel(satrec.a, 1.040501892439e+00, TOL));3558 assert(isequalRel(satrec.alta, 4.952626940243e-02, TOL));3559 assert(isequalRel(satrec.altp, 3.147751547580e-02, TOL));3560 assert(isequalRel(satrec.jdsatepoch, 2.444514487085e+06, TOL));3561 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));3562 assert(isequalRel(satrec.aycof, 1.120360099968e-03, TOL));3563 assert(isequalRel(satrec.con41, -7.389556198424e-01, TOL));3564 assert(isequalRel(satrec.cc1, 2.333804402169e-08, TOL));3565 assert(isequalRel(satrec.cc4, 3.772011178428e-04, TOL));3566 assert(isequalRel(satrec.cc5, 1.233491918541e-02, TOL));3567 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));3568 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));3569 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));3570 assert(isequalRel(satrec.delmo, 6.963086753786e-01, TOL));3571 assert(isequalRel(satrec.eta, 3.234711971626e-01, TOL));3572 assert(isequalRel(satrec.argpdot, -2.971792488745e-05, TOL));3573 assert(isequalRel(satrec.omgcof, 1.634830475080e-07, TOL));3574 assert(isequalRel(satrec.sinmao, 9.362350458581e-01, TOL));3575 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3576 assert(isequalRel(satrec.t2cof, 3.500706603253e-08, TOL));3577 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));3578 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));3579 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));3580 assert(isequalRel(satrec.x1mth2, 9.129852066141e-01, TOL));3581 assert(isequalRel(satrec.x7thm1, -3.908964462990e-01, TOL));3582 assert(isequalRel(satrec.mdot, 7.006729343208e-02, TOL));3583 assert(isequalRel(satrec.nodedot, -3.096311241687e-05, TOL));3584 assert(isequalRel(satrec.xlcof, 1.935745758017e-03, TOL));3585 assert(isequalRel(satrec.xmcof, -4.935338810866e-05, TOL));3586 assert(isequalRel(satrec.nodecf, -2.535821868201e-12, TOL));3587 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));3588 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3589 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3590 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3591 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3592 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3593 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3594 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3595 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3596 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3597 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3598 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));3599 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));3600 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));3601 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));3602 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));3603 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));3604 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3605 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));3606 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));3607 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3608 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3609 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3610 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3611 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3612 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3613 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3614 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3615 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3616 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3617 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3618 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3619 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3620 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3621 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3622 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3623 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3624 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3625 assert(isequalRel(satrec.gsto, 1.082901416696e-01, TOL));3626 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3627 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3628 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3629 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3630 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3631 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3632 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3633 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3634 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3635 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3636 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3637 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3638 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3639 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3640 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3641 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3642 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3643 equal(satrec.method, 'n');3644 equal(satrec.init, 'n');3645});...

Full Screen

Full Screen

twoline2rv_test.js

Source:twoline2rv_test.js Github

copy

Full Screen

1/*global getgravc: true,2 module: true, test: true, equal: true, notEqual: true, ok: true, isequalRel: true,3 twoline2rv: true4*/5// provide globals for the called functions and its dependents6// TODO: getgravc() should be called in twoline2rv as they are (now) in MATLAB code7// var rets = getgravc(72),8// tumin = rets.shift(),9// mu = rets.shift(),10// radiusearthkm = rets.shift(),11// xke = rets.shift(),12// j2 = rets.shift(),13// j3 = rets.shift(),14// j4 = rets.shift(),15// j3oj2 = rets.shift(),16var opsmode = 'i'; // from running testmat.m: i, v 72, SGP4-VER.TLE17module('twoline2rv');18//cshenton@dhcp-247/SGP4 MATLAB$ octave testmat.m19//input opsmode afspc a, improved i i20//input type of run c, v, m: v21//input constants 721, 72, 84 7222//input elset filename: SGP4-VER.TLE 23// invoke: twoline2rv(whichconst, longstr1, longstr2, typerun, typeinput)24test('1 00005U 58002B 00179.78495062 .00000023 00000-0 28098-4 0 4753', function () {25 var rets = twoline2rv(72,26 '1 00005U 58002B 00179.78495062 .00000023 00000-0 28098-4 0 4753',27 '2 00005 34.2682 348.7242 1859667 331.7664 19.3264 10.82419157413667 0.00 4320.0 360.00 ',28 'v', 'e');29 satrec = rets.shift(),30 startmfe = rets.shift(),31 stopmfe = rets.shift(),32 deltamin = rets.shift(),33 TOL = 0.000001;34 equal(satrec.error, 0);35 equal(satrec.satnum, 5);36 assert(isequalRel(satrec.epochyr, 0.000000000000e+00, TOL));37 assert(isequalRel(satrec.epochdays, 1.797849506200e+02, TOL));38 assert(isequalRel(satrec.ndot, 6.969196665950e-13, TOL));39 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));40 assert(isequalRel(satrec.bstar, 2.809800000000e-05, TOL));41 assert(isequalRel(satrec.inclo, 5.980929187319e-01, TOL));42 assert(isequalRel(satrec.nodeo, 6.086385471383e+00, TOL));43 assert(isequalRel(satrec.ecco, 1.859667000000e-01, TOL));44 assert(isequalRel(satrec.argpo, 5.790416027489e+00, TOL));45 assert(isequalRel(satrec.mo, 3.373093125574e-01, TOL));46 assert(isequalRel(satrec.no, 4.720630155918e-02, TOL));47 assert(isequalRel(satrec.a, 1.353457482755e+00, TOL));48 assert(isequalRel(satrec.alta, 6.051555044136e-01, TOL));49 assert(isequalRel(satrec.altp, 1.017594610970e-01, TOL));50 assert(isequalRel(satrec.jdsatepoch, 2.451723284951e+06, TOL));51 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));52 assert(isequalRel(satrec.aycof, 6.602162317959e-04, TOL));53 assert(isequalRel(satrec.con41, 1.048865087996e+00, TOL));54 assert(isequalRel(satrec.cc1, 9.531093269423e-12, TOL));55 assert(isequalRel(satrec.cc4, 5.259360731617e-07, TOL));56 assert(isequalRel(satrec.cc5, 1.646515247679e-05, TOL));57 assert(isequalRel(satrec.d2, 1.439873790292e-21, TOL));58 assert(isequalRel(satrec.d3, 3.217106892468e-31, TOL));59 assert(isequalRel(satrec.d4, 8.358359772163e-41, TOL));60 assert(isequalRel(satrec.delmo, 4.873084659112e+00, TOL));61 assert(isequalRel(satrec.eta, 7.369095429280e-01, TOL));62 assert(isequalRel(satrec.argpdot, 5.429305256054e-05, TOL));63 assert(isequalRel(satrec.omgcof, 6.701312384410e-15, TOL));64 assert(isequalRel(satrec.sinmao, 3.309492298727e-01, TOL));65 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));66 assert(isequalRel(satrec.t2cof, 1.429663990413e-11, TOL));67 assert(isequalRel(satrec.t3cof, 1.621557268113e-21, TOL));68 assert(isequalRel(satrec.t4cof, 2.846182838253e-31, TOL));69 assert(isequalRel(satrec.t5cof, 6.080661397341e-41, TOL));70 assert(isequalRel(satrec.x1mth2, 3.170449706681e-01, TOL));71 assert(isequalRel(satrec.x7thm1, 3.780685205323e+00, TOL));72 assert(isequalRel(satrec.mdot, 4.722944338321e-02, TOL));73 assert(isequalRel(satrec.nodedot, -3.717135384537e-05, TOL));74 assert(isequalRel(satrec.xlcof, 1.289057728039e-03, TOL));75 assert(isequalRel(satrec.xmcof, -1.885936118348e-11, TOL));76 assert(isequalRel(satrec.nodecf, -1.194221173313e-15, TOL));77 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));78 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));79 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));80 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));81 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));82 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));83 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));84 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));85 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));86 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));87 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));88 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));89 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));90 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));91 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));92 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));93 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));94 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));95 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));96 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));97 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));98 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));99 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));100 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));101 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));102 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));103 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));104 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));105 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));106 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));107 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));108 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));109 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));110 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));111 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));112 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));113 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));114 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));115 assert(isequalRel(satrec.gsto, 3.469172342379e+00, TOL));116 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));117 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));118 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));119 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));120 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));121 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));122 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));123 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));124 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));125 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));126 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));127 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));128 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));129 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));130 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));131 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));132 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));133 equal(satrec.method, "n");134 equal(satrec.init, "n");135 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));136 assert(isequalRel(stopmfe, 4.320000000000e+03, TOL));137 assert(isequalRel(deltamin, 3.600000000000e+02, TOL));138});139// 5140test('1 04632U 70093B 04031.91070959 -.00000084 00000-0 10000-3 0 9955', function () {141 var rets = twoline2rv(72,142 '1 04632U 70093B 04031.91070959 -.00000084 00000-0 10000-3 0 9955',143 '2 04632 11.4628 273.1101 1450506 207.6000 143.9350 1.20231981 44145 -5184.0 -4896.0 120.00 ',144 'v', 'e');145 satrec = rets.shift(),146 startmfe = rets.shift(),147 stopmfe = rets.shift(),148 deltamin = rets.shift(),149 TOL = 0.000001;150 equal(satrec.error, 0);151 equal(satrec.satnum, 4632);152 assert(isequalRel(satrec.epochyr, 4.000000000000e+00, TOL));153 assert(isequalRel(satrec.epochdays, 3.191070959000e+01, TOL));154 assert(isequalRel(satrec.ndot, -2.545271825825e-12, TOL));155 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));156 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));157 assert(isequalRel(satrec.inclo, 2.000636014976e-01, TOL));158 assert(isequalRel(satrec.nodeo, 4.766670465451e+00, TOL));159 assert(isequalRel(satrec.ecco, 1.450506000000e-01, TOL));160 assert(isequalRel(satrec.argpo, 3.623303527140e+00, TOL));161 assert(isequalRel(satrec.mo, 2.512139658858e+00, TOL));162 assert(isequalRel(satrec.no, 5.245868658927e-03, TOL));163 assert(isequalRel(satrec.a, 5.857265750666e+00, TOL));164 assert(isequalRel(satrec.alta, 5.706865662159e+00, TOL));165 assert(isequalRel(satrec.altp, 4.007665839172e+00, TOL));166 assert(isequalRel(satrec.jdsatepoch, 2.453036410710e+06, TOL));167 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));168 assert(isequalRel(satrec.aycof, 2.330198039387e-04, TOL));169 assert(isequalRel(satrec.con41, 1.881517177058e+00, TOL));170 assert(isequalRel(satrec.cc1, 1.343526634302e-17, TOL));171 assert(isequalRel(satrec.cc4, 9.961442478352e-14, TOL));172 assert(isequalRel(satrec.cc5, 5.042388615446e-11, TOL));173 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));174 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));175 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));176 assert(isequalRel(satrec.delmo, 6.321876200893e-01, TOL));177 assert(isequalRel(satrec.eta, 1.753535760959e-01, TOL));178 assert(isequalRel(satrec.argpdot, 4.927036138558e-07, TOL));179 assert(isequalRel(satrec.omgcof, -2.103491826186e-21, TOL));180 assert(isequalRel(satrec.sinmao, 5.887026745200e-01, TOL));181 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));182 assert(isequalRel(satrec.t2cof, 2.015289951454e-17, TOL));183 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));184 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));185 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));186 assert(isequalRel(satrec.x1mth2, 3.949427431409e-02, TOL));187 assert(isequalRel(satrec.x7thm1, 5.723540079801e+00, TOL));188 assert(isequalRel(satrec.mdot, 5.246109831442e-03, TOL));189 assert(isequalRel(satrec.nodedot, -2.539711450894e-07, TOL));190 assert(isequalRel(satrec.xlcof, 4.648659461777e-04, TOL));191 assert(isequalRel(satrec.xmcof, -8.942199364406e-15, TOL));192 assert(isequalRel(satrec.nodecf, -1.168869017451e-23, TOL));193 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));194 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));195 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));196 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));197 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));198 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));199 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));200 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));201 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));202 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));203 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));204 assert(isequalRel(satrec.dedt, -5.739257257134e-10, TOL));205 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));206 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));207 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));208 assert(isequalRel(satrec.didt, -2.669482583786e-08, TOL));209 assert(isequalRel(satrec.dmdt, -6.045613838815e-08, TOL));210 assert(isequalRel(satrec.dnodt, -6.171410259572e-08, TOL));211 assert(isequalRel(satrec.domdt, 6.528741483006e-08, TOL));212 assert(isequalRel(satrec.e3, -3.259811599808e-04, TOL));213 assert(isequalRel(satrec.ee2, 9.631690304302e-05, TOL));214 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));215 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));216 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));217 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));218 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));219 assert(isequalRel(satrec.se2, -1.598763953845e-03, TOL));220 assert(isequalRel(satrec.se3, -1.532829312733e-03, TOL));221 assert(isequalRel(satrec.sgh2, 1.009321688332e-02, TOL));222 assert(isequalRel(satrec.sgh3, -1.031125833038e-02, TOL));223 assert(isequalRel(satrec.sgh4, -1.698290639332e-04, TOL));224 assert(isequalRel(satrec.sh2, -1.436571665398e-03, TOL));225 assert(isequalRel(satrec.sh3, -2.604666666759e-04, TOL));226 assert(isequalRel(satrec.si2, -2.752019370380e-04, TOL));227 assert(isequalRel(satrec.si3, 1.412253967491e-03, TOL));228 assert(isequalRel(satrec.sl2, -9.737328456846e-03, TOL));229 assert(isequalRel(satrec.sl3, 9.584139594897e-03, TOL));230 assert(isequalRel(satrec.sl4, 4.041147860756e-04, TOL));231 assert(isequalRel(satrec.gsto, 1.716027084070e+00, TOL));232 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));233 assert(isequalRel(satrec.xgh2, 2.069563786522e-03, TOL));234 assert(isequalRel(satrec.xgh3, 6.246874813546e-04, TOL));235 assert(isequalRel(satrec.xgh4, -8.940507699742e-05, TOL));236 assert(isequalRel(satrec.xh2, -5.956657020046e-05, TOL));237 assert(isequalRel(satrec.xh3, -2.660535481999e-04, TOL));238 assert(isequalRel(satrec.xi2, -2.550806983774e-04, TOL));239 assert(isequalRel(satrec.xi3, 6.513825317331e-05, TOL));240 assert(isequalRel(satrec.xl2, -1.862212872508e-03, TOL));241 assert(isequalRel(satrec.xl3, -5.873201141188e-04, TOL));242 assert(isequalRel(satrec.xl4, 2.127428175609e-04, TOL));243 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));244 assert(isequalRel(satrec.zmol, 3.145380241287e+00, TOL));245 assert(isequalRel(satrec.zmos, 4.795490950675e-01, TOL));246 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));247 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));248 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));249 equal(satrec.method, "d");250 equal(satrec.init, "n");251 assert(isequalRel(startmfe, -5.184000000000e+03, TOL));252 assert(isequalRel(stopmfe, -4.896000000000e+03, TOL));253 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));254});255// 4632256test('1 06251U 62025E 06176.82412014 .00008885 00000-0 12808-3 0 3985', function () {257 var rets = twoline2rv(72,258 '1 06251U 62025E 06176.82412014 .00008885 00000-0 12808-3 0 3985',259 '2 06251 58.0579 54.0425 0030035 139.1568 221.1854 15.56387291 6774 0.0 2880.0 120.00 ',260 'v', 'e');261 satrec = rets.shift(),262 startmfe = rets.shift(),263 stopmfe = rets.shift(),264 deltamin = rets.shift(),265 TOL = 0.000001;266 equal(satrec.error, 0);267 equal(satrec.satnum, 6251);268 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));269 assert(isequalRel(satrec.epochdays, 1.768241201400e+02, TOL));270 assert(isequalRel(satrec.ndot, 2.692230972911e-10, TOL));271 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));272 assert(isequalRel(satrec.bstar, 1.280800000000e-04, TOL));273 assert(isequalRel(satrec.inclo, 1.013301511794e+00, TOL));274 assert(isequalRel(satrec.nodeo, 9.432195610090e-01, TOL));275 assert(isequalRel(satrec.ecco, 3.003500000000e-03, TOL));276 assert(isequalRel(satrec.argpo, 2.428744336539e+00, TOL));277 assert(isequalRel(satrec.mo, 3.860413487341e+00, TOL));278 assert(isequalRel(satrec.no, 6.791803699335e-02, TOL));279 assert(isequalRel(satrec.a, 1.062420593358e+00, TOL));280 assert(isequalRel(satrec.alta, 6.561157360986e-02, TOL));281 assert(isequalRel(satrec.altp, 5.922961310556e-02, TOL));282 assert(isequalRel(satrec.jdsatepoch, 2.453912324120e+06, TOL));283 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));284 assert(isequalRel(satrec.aycof, 9.949933492029e-04, TOL));285 assert(isequalRel(satrec.con41, -1.602801925378e-01, TOL));286 assert(isequalRel(satrec.cc1, 2.786746389227e-09, TOL));287 assert(isequalRel(satrec.cc4, 5.199527839737e-06, TOL));288 assert(isequalRel(satrec.cc5, 6.501942743088e-04, TOL));289 assert(isequalRel(satrec.d2, 6.585618757245e-16, TOL));290 assert(isequalRel(satrec.d3, 2.328345454584e-22, TOL));291 assert(isequalRel(satrec.d4, 9.598355084426e-29, TOL));292 assert(isequalRel(satrec.delmo, 8.630169062242e-01, TOL));293 assert(isequalRel(satrec.eta, 6.367505613325e-02, TOL));294 assert(isequalRel(satrec.argpdot, 1.940705735802e-05, TOL));295 assert(isequalRel(satrec.omgcof, -5.189726839277e-08, TOL));296 assert(isequalRel(satrec.sinmao, -6.584977098201e-01, TOL));297 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));298 assert(isequalRel(satrec.t2cof, 4.180119583841e-09, TOL));299 assert(isequalRel(satrec.t3cof, 6.740937866003e-16, TOL));300 assert(isequalRel(satrec.t4cof, 1.801857482522e-22, TOL));301 assert(isequalRel(satrec.t5cof, 5.969868409204e-29, TOL));302 assert(isequalRel(satrec.x1mth2, 7.200933975126e-01, TOL));303 assert(isequalRel(satrec.x7thm1, 9.593462174118e-01, TOL));304 assert(isequalRel(satrec.mdot, 6.791021042403e-02, TOL));305 assert(isequalRel(satrec.nodedot, -5.167653849627e-05, TOL));306 assert(isequalRel(satrec.xlcof, 1.836761984615e-03, TOL));307 assert(isequalRel(satrec.xmcof, -1.331465223622e-04, TOL));308 assert(isequalRel(satrec.nodecf, -5.043135183865e-13, TOL));309 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));310 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));311 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));312 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));313 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));314 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));315 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));316 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));317 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));318 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));319 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));320 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));321 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));322 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));323 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));324 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));325 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));326 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));327 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));328 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));329 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));330 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));331 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));332 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));333 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));334 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));335 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));336 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));337 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));338 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));339 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));340 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));341 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));342 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));343 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));344 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));345 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));346 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));347 assert(isequalRel(satrec.gsto, 3.673754967933e+00, TOL));348 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));349 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));350 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));351 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));352 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));353 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));354 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));355 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));356 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));357 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));358 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));359 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));360 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));361 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));362 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));363 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));364 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));365 equal(satrec.method, "n");366 equal(satrec.init, "n");367 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));368 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));369 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));370});371// 6251372test('1 08195U 75081A 06176.33215444 .00000099 00000-0 11873-3 0 813', function () {373 var rets = twoline2rv(72,374 '1 08195U 75081A 06176.33215444 .00000099 00000-0 11873-3 0 813',375 '2 08195 64.1586 279.0717 6877146 264.7651 20.2257 2.00491383225656 0.0 2880.0 120.00 ',376 'v', 'e');377 satrec = rets.shift(),378 startmfe = rets.shift(),379 stopmfe = rets.shift(),380 deltamin = rets.shift(),381 TOL = 0.000001;382 equal(satrec.error, 0);383 equal(satrec.satnum, 8195);384 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));385 assert(isequalRel(satrec.epochdays, 1.763321544400e+02, TOL));386 assert(isequalRel(satrec.ndot, 2.999784651865e-12, TOL));387 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));388 assert(isequalRel(satrec.bstar, 1.187300000000e-04, TOL));389 assert(isequalRel(satrec.inclo, 1.119778813470e+00, TOL));390 assert(isequalRel(satrec.nodeo, 4.870720014138e+00, TOL));391 assert(isequalRel(satrec.ecco, 6.877146000000e-01, TOL));392 assert(isequalRel(satrec.argpo, 4.621022739372e+00, TOL));393 assert(isequalRel(satrec.mo, 3.530050585206e-01, TOL));394 assert(isequalRel(satrec.no, 8.748547019630e-03, TOL));395 assert(isequalRel(satrec.a, 4.165282448733e+00, TOL));396 assert(isequalRel(satrec.alta, 6.029808001850e+00, TOL));397 assert(isequalRel(satrec.altp, 3.007568956154e-01, TOL));398 assert(isequalRel(satrec.jdsatepoch, 2.453911832154e+06, TOL));399 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));400 assert(isequalRel(satrec.aycof, 1.055286126372e-03, TOL));401 assert(isequalRel(satrec.con41, -4.300218866316e-01, TOL));402 assert(isequalRel(satrec.cc1, 1.942515834721e-13, TOL));403 assert(isequalRel(satrec.cc4, 1.205662340036e-09, TOL));404 assert(isequalRel(satrec.cc5, 2.066270127143e-07, TOL));405 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));406 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));407 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));408 assert(isequalRel(satrec.delmo, 6.357151283114e+00, TOL));409 assert(isequalRel(satrec.eta, 9.085028530233e-01, TOL));410 assert(isequalRel(satrec.argpdot, -7.437009265334e-08, TOL));411 assert(isequalRel(satrec.omgcof, -3.510477365587e-21, TOL));412 assert(isequalRel(satrec.sinmao, 3.457191249346e-01, TOL));413 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));414 assert(isequalRel(satrec.t2cof, 2.913773752081e-13, TOL));415 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));416 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));417 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));418 assert(isequalRel(satrec.x1mth2, 8.100072955439e-01, TOL));419 assert(isequalRel(satrec.x7thm1, 3.299489311928e-01, TOL));420 assert(isequalRel(satrec.mdot, 8.748086886633e-03, TOL));421 assert(isequalRel(satrec.nodedot, -1.284567215801e-06, TOL));422 assert(isequalRel(satrec.xlcof, 1.903275763135e-03, TOL));423 assert(isequalRel(satrec.xmcof, -2.410528625981e-15, TOL));424 assert(isequalRel(satrec.nodecf, -4.604617513548e-19, TOL));425 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));426 assert(isequalRel(satrec.d2201, -1.197359551623e-11, TOL));427 assert(isequalRel(satrec.d2211, 6.453213834121e-11, TOL));428 assert(isequalRel(satrec.d3210, -3.893722738131e-12, TOL));429 assert(isequalRel(satrec.d3222, -7.364857538023e-12, TOL));430 assert(isequalRel(satrec.d4410, 2.576960140946e-12, TOL));431 assert(isequalRel(satrec.d4422, 4.361455592714e-12, TOL));432 assert(isequalRel(satrec.d5220, -2.528789465953e-12, TOL));433 assert(isequalRel(satrec.d5232, 6.767712568551e-13, TOL));434 assert(isequalRel(satrec.d5421, -2.280698046562e-12, TOL));435 assert(isequalRel(satrec.d5433, -1.659570821491e-12, TOL));436 assert(isequalRel(satrec.dedt, -2.888547623461e-08, TOL));437 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));438 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));439 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));440 assert(isequalRel(satrec.didt, -9.784108269214e-09, TOL));441 assert(isequalRel(satrec.dmdt, 9.270786742527e-08, TOL));442 assert(isequalRel(satrec.dnodt, -6.124323489695e-08, TOL));443 assert(isequalRel(satrec.domdt, -1.415521073384e-08, TOL));444 assert(isequalRel(satrec.e3, -4.408046133189e-04, TOL));445 assert(isequalRel(satrec.ee2, -1.093428053938e-04, TOL));446 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));447 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));448 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));449 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));450 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));451 assert(isequalRel(satrec.se2, 2.501941522642e-03, TOL));452 assert(isequalRel(satrec.se3, 1.007241988530e-03, TOL));453 assert(isequalRel(satrec.sgh2, -1.261915509701e-03, TOL));454 assert(isequalRel(satrec.sgh3, 2.455746281541e-03, TOL));455 assert(isequalRel(satrec.sgh4, -7.471990261373e-05, TOL));456 assert(isequalRel(satrec.sh2, 9.458037270825e-04, TOL));457 assert(isequalRel(satrec.sh3, -3.970223690620e-03, TOL));458 assert(isequalRel(satrec.si2, -1.110569917439e-03, TOL));459 assert(isequalRel(satrec.si3, 2.735745904365e-05, TOL));460 assert(isequalRel(satrec.sl2, 4.083492666433e-03, TOL));461 assert(isequalRel(satrec.sl3, -2.119115873088e-03, TOL));462 assert(isequalRel(satrec.sl4, 2.888302541444e-04, TOL));463 assert(isequalRel(satrec.gsto, 5.741801269032e-01, TOL));464 assert(isequalRel(satrec.xfact, -8.753597222054e-03, TOL));465 assert(isequalRel(satrec.xgh2, 4.549202443830e-04, TOL));466 assert(isequalRel(satrec.xgh3, -2.464815107882e-05, TOL));467 assert(isequalRel(satrec.xgh4, -3.933566193975e-05, TOL));468 assert(isequalRel(satrec.xh2, -6.438340814882e-04, TOL));469 assert(isequalRel(satrec.xh3, 3.079429279349e-04, TOL));470 assert(isequalRel(satrec.xi2, 1.142408298542e-04, TOL));471 assert(isequalRel(satrec.xi3, 1.200089628145e-04, TOL));472 assert(isequalRel(satrec.xl2, -7.862643771994e-04, TOL));473 assert(isequalRel(satrec.xl3, -4.559423560477e-04, TOL));474 assert(isequalRel(satrec.xl4, 1.520522489668e-04, TOL));475 assert(isequalRel(satrec.xlamo, 2.662899525810e+00, TOL));476 assert(isequalRel(satrec.zmol, 1.703291771992e+00, TOL));477 assert(isequalRel(satrec.zmos, 2.972158040326e+00, TOL));478 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));479 assert(isequalRel(satrec.xli, 2.662899525810e+00, TOL));480 assert(isequalRel(satrec.xni, 8.748547019630e-03, TOL));481 equal(satrec.method, "d");482 equal(satrec.init, "n");483 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));484 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));485 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));486});487// 8195488test('1 09880U 77021A 06176.56157475 .00000421 00000-0 10000-3 0 9814', function () {489 var rets = twoline2rv(72,490 '1 09880U 77021A 06176.56157475 .00000421 00000-0 10000-3 0 9814',491 '2 09880 64.5968 349.3786 7069051 270.0229 16.3320 2.00813614112380 0.0 2880.0 120.00 ',492 'v', 'e');493 satrec = rets.shift(),494 startmfe = rets.shift(),495 stopmfe = rets.shift(),496 deltamin = rets.shift(),497 TOL = 0.000001;498 equal(satrec.error, 0);499 equal(satrec.satnum, 9880);500 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));501 assert(isequalRel(satrec.epochdays, 1.765615747500e+02, TOL));502 assert(isequalRel(satrec.ndot, 1.275665998419e-11, TOL));503 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));504 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));505 assert(isequalRel(satrec.inclo, 1.127426846252e+00, TOL));506 assert(isequalRel(satrec.nodeo, 6.097806906008e+00, TOL));507 assert(isequalRel(satrec.ecco, 7.069051000000e-01, TOL));508 assert(isequalRel(satrec.argpo, 4.712788660783e+00, TOL));509 assert(isequalRel(satrec.mo, 2.850471734357e-01, TOL));510 assert(isequalRel(satrec.no, 8.762667060363e-03, TOL));511 assert(isequalRel(satrec.a, 4.160825439041e+00, TOL));512 assert(isequalRel(satrec.alta, 6.102134162109e+00, TOL));513 assert(isequalRel(satrec.altp, 2.195167159733e-01, TOL));514 assert(isequalRel(satrec.jdsatepoch, 2.453912061575e+06, TOL));515 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));516 assert(isequalRel(satrec.aycof, 1.059164029957e-03, TOL));517 assert(isequalRel(satrec.con41, -4.479141048878e-01, TOL));518 assert(isequalRel(satrec.cc1, 5.233520166060e-13, TOL));519 assert(isequalRel(satrec.cc4, 3.662175839859e-09, TOL));520 assert(isequalRel(satrec.cc5, 6.266742443382e-07, TOL));521 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));522 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));523 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));524 assert(isequalRel(satrec.delmo, 6.820964768241e+00, TOL));525 assert(isequalRel(satrec.eta, 9.341770109733e-01, TOL));526 assert(isequalRel(satrec.argpdot, -1.318643338756e-07, TOL));527 assert(isequalRel(satrec.omgcof, 1.275740509890e-23, TOL));528 assert(isequalRel(satrec.sinmao, 2.812027215197e-01, TOL));529 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));530 assert(isequalRel(satrec.t2cof, 7.850280249091e-13, TOL));531 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));532 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));533 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));534 assert(isequalRel(satrec.x1mth2, 8.159713682959e-01, TOL));535 assert(isequalRel(satrec.x7thm1, 2.882004219285e-01, TOL));536 assert(isequalRel(satrec.mdot, 8.762146865654e-03, TOL));537 assert(isequalRel(satrec.nodedot, -1.408338623247e-06, TOL));538 assert(isequalRel(satrec.xlcof, 1.906710134565e-03, TOL));539 assert(isequalRel(satrec.xmcof, -1.931807263939e-15, TOL));540 assert(isequalRel(satrec.nodecf, -1.291113443180e-18, TOL));541 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));542 assert(isequalRel(satrec.d2201, -1.223066000340e-11, TOL));543 assert(isequalRel(satrec.d2211, 7.174605316403e-11, TOL));544 assert(isequalRel(satrec.d3210, -4.151751044682e-12, TOL));545 assert(isequalRel(satrec.d3222, -8.877536621154e-12, TOL));546 assert(isequalRel(satrec.d4410, 3.097256488149e-12, TOL));547 assert(isequalRel(satrec.d4422, 5.507367501422e-12, TOL));548 assert(isequalRel(satrec.d5220, -3.254911516032e-12, TOL));549 assert(isequalRel(satrec.d5232, 7.951364509680e-13, TOL));550 assert(isequalRel(satrec.d5421, -2.951741474264e-12, TOL));551 assert(isequalRel(satrec.d5433, -2.267801942329e-12, TOL));552 assert(isequalRel(satrec.dedt, -4.867357573014e-09, TOL));553 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));554 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));555 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));556 assert(isequalRel(satrec.didt, -1.740817385888e-09, TOL));557 assert(isequalRel(satrec.dmdt, 7.275290629300e-09, TOL));558 assert(isequalRel(satrec.dnodt, -8.615750092681e-08, TOL));559 assert(isequalRel(satrec.domdt, 2.335815977949e-08, TOL));560 assert(isequalRel(satrec.e3, 1.249431839564e-04, TOL));561 assert(isequalRel(satrec.ee2, 6.476652597055e-04, TOL));562 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));563 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));564 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));565 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));566 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));567 assert(isequalRel(satrec.se2, -3.006446485103e-03, TOL));568 assert(isequalRel(satrec.se3, 2.366248156382e-03, TOL));569 assert(isequalRel(satrec.sgh2, -2.805617954096e-03, TOL));570 assert(isequalRel(satrec.sgh3, -3.755905951700e-03, TOL));571 assert(isequalRel(satrec.sgh4, -7.268074853619e-05, TOL));572 assert(isequalRel(satrec.sh2, 2.948902195180e-03, TOL));573 assert(isequalRel(satrec.sh3, 3.166374712604e-03, TOL));574 assert(isequalRel(satrec.si2, 6.569128551896e-04, TOL));575 assert(isequalRel(satrec.si3, -6.992498193738e-04, TOL));576 assert(isequalRel(satrec.sl2, 4.534351771255e-03, TOL));577 assert(isequalRel(satrec.sl3, 6.836119210765e-03, TOL));578 assert(isequalRel(satrec.sl4, 2.911149634817e-04, TOL));579 assert(isequalRel(satrec.gsto, 2.019617116981e+00, TOL));580 assert(isequalRel(satrec.xfact, -8.754040087689e-03, TOL));581 assert(isequalRel(satrec.xgh2, -1.815715485263e-04, TOL));582 assert(isequalRel(satrec.xgh3, 8.134154625503e-04, TOL));583 assert(isequalRel(satrec.xgh4, -3.826216649032e-05, TOL));584 assert(isequalRel(satrec.xh2, 4.816111792216e-05, TOL));585 assert(isequalRel(satrec.xh3, -6.696421947166e-04, TOL));586 assert(isequalRel(satrec.xi2, -1.383644676752e-04, TOL));587 assert(isequalRel(satrec.xi3, -7.113039969238e-07, TOL));588 assert(isequalRel(satrec.xl2, 4.111399428162e-04, TOL));589 assert(isequalRel(satrec.xl3, -1.491371542789e-03, TOL));590 assert(isequalRel(satrec.xl4, 1.532550149097e-04, TOL));591 assert(isequalRel(satrec.xlamo, 2.158241444311e+00, TOL));592 assert(isequalRel(satrec.zmol, 1.755605827278e+00, TOL));593 assert(isequalRel(satrec.zmos, 2.976104523220e+00, TOL));594 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));595 assert(isequalRel(satrec.xli, 2.158241444311e+00, TOL));596 assert(isequalRel(satrec.xni, 8.762667060363e-03, TOL));597 equal(satrec.method, "d");598 equal(satrec.init, "n");599 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));600 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));601 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));602});603// 9880604test('1 09998U 74033F 05148.79417928 -.00000112 00000-0 00000+0 0 4480', function () {605 var rets = twoline2rv(72,606 '1 09998U 74033F 05148.79417928 -.00000112 00000-0 00000+0 0 4480',607 '2 09998 9.4958 313.1750 0270971 327.5225 30.8097 1.16186785 45878 -1440.0 -720.00 60.0 ',608 'v', 'e');609 satrec = rets.shift(),610 startmfe = rets.shift(),611 stopmfe = rets.shift(),612 deltamin = rets.shift(),613 TOL = 0.000001;614 equal(satrec.error, 0);615 equal(satrec.satnum, 9998);616 assert(isequalRel(satrec.epochyr, 5.000000000000e+00, TOL));617 assert(isequalRel(satrec.epochdays, 1.487941792800e+02, TOL));618 assert(isequalRel(satrec.ndot, -3.393695767767e-12, TOL));619 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));620 assert(isequalRel(satrec.bstar, 0.000000000000e+00, TOL));621 assert(isequalRel(satrec.inclo, 1.657329751109e-01, TOL));622 assert(isequalRel(satrec.nodeo, 5.465934884933e+00, TOL));623 assert(isequalRel(satrec.ecco, 2.709710000000e-02, TOL));624 assert(isequalRel(satrec.argpo, 5.716345999363e+00, TOL));625 assert(isequalRel(satrec.mo, 5.377307065517e-01, TOL));626 assert(isequalRel(satrec.no, 5.069384722250e-03, TOL));627 assert(isequalRel(satrec.a, 5.992441105490e+00, TOL));628 assert(isequalRel(satrec.alta, 5.154818881370e+00, TOL));629 assert(isequalRel(satrec.altp, 4.830063329611e+00, TOL));630 assert(isequalRel(satrec.jdsatepoch, 2.453519294179e+06, TOL));631 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));632 assert(isequalRel(satrec.aycof, 1.934392983882e-04, TOL));633 assert(isequalRel(satrec.con41, 1.918349444333e+00, TOL));634 assert(isequalRel(satrec.cc1, 0.000000000000e+00, TOL));635 assert(isequalRel(satrec.cc4, 1.472053521037e-14, TOL));636 assert(isequalRel(satrec.cc5, 3.693461648587e-11, TOL));637 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));638 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));639 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));640 assert(isequalRel(satrec.delmo, 1.086383607728e+00, TOL));641 assert(isequalRel(satrec.eta, 3.260440040582e-02, TOL));642 assert(isequalRel(satrec.argpdot, 4.436332962536e-07, TOL));643 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));644 assert(isequalRel(satrec.sinmao, 5.121882768119e-01, TOL));645 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));646 assert(isequalRel(satrec.t2cof, 0.000000000000e+00, TOL));647 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));648 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));649 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));650 assert(isequalRel(satrec.x1mth2, 2.721685188894e-02, TOL));651 assert(isequalRel(satrec.x7thm1, 5.809482036777e+00, TOL));652 assert(isequalRel(satrec.mdot, 5.069604859229e-03, TOL));653 assert(isequalRel(satrec.nodedot, -2.264779093452e-07, TOL));654 assert(isequalRel(satrec.xlcof, 3.862113846602e-04, TOL));655 assert(isequalRel(satrec.xmcof, -0.000000000000e+00, TOL));656 assert(isequalRel(satrec.nodecf, -0.000000000000e+00, TOL));657 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));658 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));659 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));660 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));661 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));662 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));663 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));664 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));665 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));666 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));667 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));668 assert(isequalRel(satrec.dedt, 2.142414632713e-10, TOL));669 assert(isequalRel(satrec.del1, -1.069242230635e-12, TOL));670 assert(isequalRel(satrec.del2, 2.268988798894e-11, TOL));671 assert(isequalRel(satrec.del3, 3.478296584410e-12, TOL));672 assert(isequalRel(satrec.didt, -2.100861346923e-08, TOL));673 assert(isequalRel(satrec.dmdt, -1.007233935453e-07, TOL));674 assert(isequalRel(satrec.dnodt, 5.240300896038e-08, TOL));675 assert(isequalRel(satrec.domdt, -2.079390322813e-08, TOL));676 assert(isequalRel(satrec.e3, 4.759541749927e-05, TOL));677 assert(isequalRel(satrec.ee2, -5.215931631248e-05, TOL));678 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));679 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));680 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));681 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));682 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));683 assert(isequalRel(satrec.se2, -4.545493382307e-04, TOL));684 assert(isequalRel(satrec.se3, -1.408307282420e-05, TOL));685 assert(isequalRel(satrec.sgh2, 3.341762775910e-04, TOL));686 assert(isequalRel(satrec.sgh3, -1.631250708160e-02, TOL));687 assert(isequalRel(satrec.sgh4, -1.775546834310e-04, TOL));688 assert(isequalRel(satrec.sh2, -7.925299564105e-04, TOL));689 assert(isequalRel(satrec.sh3, -7.614980505856e-04, TOL));690 assert(isequalRel(satrec.si2, -7.593552438778e-04, TOL));691 assert(isequalRel(satrec.si3, 7.406357152159e-04, TOL));692 assert(isequalRel(satrec.sl2, -6.650365679906e-05, TOL));693 assert(isequalRel(satrec.sl3, 1.569236751846e-02, TOL));694 assert(isequalRel(satrec.sl4, 4.145768614330e-04, TOL));695 assert(isequalRel(satrec.gsto, 3.007604046768e+00, TOL));696 assert(isequalRel(satrec.xfact, -4.374900909933e-03, TOL));697 assert(isequalRel(satrec.xgh2, -1.706031133674e-03, TOL));698 assert(isequalRel(satrec.xgh3, -1.810449604366e-03, TOL));699 assert(isequalRel(satrec.xgh4, -9.347216416174e-05, TOL));700 assert(isequalRel(satrec.xh2, -2.227234299372e-04, TOL));701 assert(isequalRel(satrec.xh3, 5.491720843604e-06, TOL));702 assert(isequalRel(satrec.xi2, -6.826729645968e-06, TOL));703 assert(isequalRel(satrec.xi3, 2.099107684283e-04, TOL));704 assert(isequalRel(satrec.xl2, 1.640123445179e-03, TOL));705 assert(isequalRel(satrec.xl3, 1.647042035558e-03, TOL));706 assert(isequalRel(satrec.xl4, 2.182504888112e-04, TOL));707 assert(isequalRel(satrec.xlamo, 2.429222236900e+00, TOL));708 assert(isequalRel(satrec.zmol, 1.585773955921e-01, TOL));709 assert(isequalRel(satrec.zmos, 2.502914127169e+00, TOL));710 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));711 assert(isequalRel(satrec.xli, 2.429222236900e+00, TOL));712 assert(isequalRel(satrec.xni, 5.069384722250e-03, TOL));713 equal(satrec.method, "d");714 equal(satrec.init, "n");715 assert(isequalRel(startmfe, -1.440000000000e+03, TOL));716 assert(isequalRel(stopmfe, -7.200000000000e+02, TOL));717 assert(isequalRel(deltamin, 6.000000000000e+01, TOL));718});719// 9998720test('1 11801U 80230.29629788 .01431103 00000-0 14311-1 13', function () {721 var rets = twoline2rv(72,722 '1 11801U 80230.29629788 .01431103 00000-0 14311-1 13',723 '2 11801 46.7916 230.4354 7318036 47.4722 10.4117 2.28537848 13 0.0 1440.0 360.00 ',724 'v', 'e');725 satrec = rets.shift(),726 startmfe = rets.shift(),727 stopmfe = rets.shift(),728 deltamin = rets.shift(),729 TOL = 0.000001;730 equal(satrec.error, 0);731 equal(satrec.satnum, 11801);732 assert(isequalRel(satrec.epochyr, 8.000000000000e+01, TOL));733 assert(isequalRel(satrec.epochdays, 2.302962978800e+02, TOL));734 assert(isequalRel(satrec.ndot, 4.336364459231e-08, TOL));735 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));736 assert(isequalRel(satrec.bstar, 1.431100000000e-02, TOL));737 assert(isequalRel(satrec.inclo, 8.166674822762e-01, TOL));738 assert(isequalRel(satrec.nodeo, 4.021856443150e+00, TOL));739 assert(isequalRel(satrec.ecco, 7.318036000000e-01, TOL));740 assert(isequalRel(satrec.argpo, 8.285461931653e-01, TOL));741 assert(isequalRel(satrec.mo, 1.817184457299e-01, TOL));742 assert(isequalRel(satrec.no, 9.971131604593e-03, TOL));743 assert(isequalRel(satrec.a, 3.817123180279e+00, TOL));744 assert(isequalRel(satrec.alta, 5.610507665251e+00, TOL));745 assert(isequalRel(satrec.altp, 2.373869530742e-02, TOL));746 assert(isequalRel(satrec.jdsatepoch, 2.444468796298e+06, TOL));747 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));748 assert(isequalRel(satrec.aycof, 8.546234428971e-04, TOL));749 assert(isequalRel(satrec.con41, 4.062531798299e-01, TOL));750 assert(isequalRel(satrec.cc1, 2.455322245841e-06, TOL));751 assert(isequalRel(satrec.cc4, 1.110884261662e-04, TOL));752 assert(isequalRel(satrec.cc5, 1.667324930436e-02, TOL));753 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));754 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));755 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));756 assert(isequalRel(satrec.delmo, 7.753547418864e+00, TOL));757 assert(isequalRel(satrec.eta, 9.956413460076e-01, TOL));758 assert(isequalRel(satrec.argpdot, 3.460657560909e-06, TOL));759 assert(isequalRel(satrec.omgcof, 7.183331930496e-18, TOL));760 assert(isequalRel(satrec.sinmao, 1.807199902444e-01, TOL));761 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));762 assert(isequalRel(satrec.t2cof, 3.682983368762e-06, TOL));763 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));764 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));765 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));766 assert(isequalRel(satrec.x1mth2, 5.312489400567e-01, TOL));767 assert(isequalRel(satrec.x7thm1, 2.281257419603e+00, TOL));768 assert(isequalRel(satrec.mdot, 9.971844927633e-03, TOL));769 assert(isequalRel(satrec.nodedot, -3.528457562328e-06, TOL));770 assert(isequalRel(satrec.xlcof, 1.629259507468e-03, TOL));771 assert(isequalRel(satrec.xmcof, -5.857169839716e-13, TOL));772 assert(isequalRel(satrec.nodecf, -1.407642839643e-11, TOL));773 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));774 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));775 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));776 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));777 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));778 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));779 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));780 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));781 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));782 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));783 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));784 assert(isequalRel(satrec.dedt, 2.638606466889e-08, TOL));785 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));786 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));787 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));788 assert(isequalRel(satrec.didt, -3.476737419877e-08, TOL));789 assert(isequalRel(satrec.dmdt, 8.037814258571e-08, TOL));790 assert(isequalRel(satrec.dnodt, -6.033631306028e-08, TOL));791 assert(isequalRel(satrec.domdt, 9.465204016205e-09, TOL));792 assert(isequalRel(satrec.e3, -7.499513315530e-05, TOL));793 assert(isequalRel(satrec.ee2, 3.984687909508e-04, TOL));794 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));795 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));796 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));797 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));798 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));799 assert(isequalRel(satrec.se2, -2.359225311260e-03, TOL));800 assert(isequalRel(satrec.se3, -7.047176327541e-05, TOL));801 assert(isequalRel(satrec.sgh2, -1.822566953373e-04, TOL));802 assert(isequalRel(satrec.sgh3, -2.213029457235e-03, TOL));803 assert(isequalRel(satrec.sgh4, -6.154293814758e-05, TOL));804 assert(isequalRel(satrec.sh2, -1.139407335123e-03, TOL));805 assert(isequalRel(satrec.sh3, 2.509518062136e-03, TOL));806 assert(isequalRel(satrec.si2, -5.208303751558e-05, TOL));807 assert(isequalRel(satrec.si3, 3.287353432187e-03, TOL));808 assert(isequalRel(satrec.sl2, 2.781684009380e-03, TOL));809 assert(isequalRel(satrec.sl3, 3.338363278200e-03, TOL));810 assert(isequalRel(satrec.sl4, 2.590677065105e-04, TOL));811 assert(isequalRel(satrec.gsto, 1.265125075736e+00, TOL));812 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));813 assert(isequalRel(satrec.xgh2, 1.510256022480e-04, TOL));814 assert(isequalRel(satrec.xgh3, 3.555337411429e-04, TOL));815 assert(isequalRel(satrec.xgh4, -3.239876023751e-05, TOL));816 assert(isequalRel(satrec.xh2, 1.128589566218e-04, TOL));817 assert(isequalRel(satrec.xh3, -4.733943399734e-04, TOL));818 assert(isequalRel(satrec.xi2, -6.414087511194e-05, TOL));819 assert(isequalRel(satrec.xi3, -5.695169719647e-04, TOL));820 assert(isequalRel(satrec.xl2, -7.034864700241e-04, TOL));821 assert(isequalRel(satrec.xl3, -5.240671428885e-04, TOL));822 assert(isequalRel(satrec.xl4, 1.363840070226e-04, TOL));823 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));824 assert(isequalRel(satrec.zmol, 3.567468389971e+00, TOL));825 assert(isequalRel(satrec.zmos, 3.896090412269e+00, TOL));826 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));827 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));828 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));829 equal(satrec.method, "d");830 equal(satrec.init, "n");831 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));832 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));833 assert(isequalRel(deltamin, 3.600000000000e+02, TOL));834});835// 11801836test('1 14128U 83058A 06176.02844893 -.00000158 00000-0 10000-3 0 9627', function () {837 var rets = twoline2rv(72,838 '1 14128U 83058A 06176.02844893 -.00000158 00000-0 10000-3 0 9627',839 '2 14128 11.4384 35.2134 0011562 26.4582 333.5652 0.98870114 46093 0.0 2880.0 120.00 ',840 'v', 'e');841 satrec = rets.shift(),842 startmfe = rets.shift(),843 stopmfe = rets.shift(),844 deltamin = rets.shift(),845 TOL = 0.000001;846 equal(satrec.error, 0);847 equal(satrec.satnum, 14128);848 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));849 assert(isequalRel(satrec.epochdays, 1.760284489300e+02, TOL));850 assert(isequalRel(satrec.ndot, -4.787535100957e-12, TOL));851 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));852 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));853 assert(isequalRel(satrec.inclo, 1.996377411601e-01, TOL));854 assert(isequalRel(satrec.nodeo, 6.145897708218e-01, TOL));855 assert(isequalRel(satrec.ecco, 1.156200000000e-03, TOL));856 assert(isequalRel(satrec.argpo, 4.617827041512e-01, TOL));857 assert(isequalRel(satrec.mo, 5.821811010073e+00, TOL));858 assert(isequalRel(satrec.no, 4.313874514604e-03, TOL));859 assert(isequalRel(satrec.a, 6.673160557243e+00, TOL));860 assert(isequalRel(satrec.alta, 5.680876065479e+00, TOL));861 assert(isequalRel(satrec.altp, 5.665445049007e+00, TOL));862 assert(isequalRel(satrec.jdsatepoch, 2.453911528449e+06, TOL));863 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));864 assert(isequalRel(satrec.aycof, 2.325304065199e-04, TOL));865 assert(isequalRel(satrec.con41, 1.882014339061e+00, TOL));866 assert(isequalRel(satrec.cc1, 5.271206196097e-18, TOL));867 assert(isequalRel(satrec.cc4, 3.653132465373e-16, TOL));868 assert(isequalRel(satrec.cc5, 2.443440693174e-11, TOL));869 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));870 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));871 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));872 assert(isequalRel(satrec.delmo, 1.003665753747e+00, TOL));873 assert(isequalRel(satrec.eta, 1.362934170593e-03, TOL));874 assert(isequalRel(satrec.argpdot, 2.992039723459e-07, TOL));875 assert(isequalRel(satrec.omgcof, 1.004726027146e-19, TOL));876 assert(isequalRel(satrec.sinmao, -4.451791296916e-01, TOL));877 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));878 assert(isequalRel(satrec.t2cof, 7.906809294146e-18, TOL));879 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));880 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));881 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));882 assert(isequalRel(satrec.x1mth2, 3.932855364617e-02, TOL));883 assert(isequalRel(satrec.x7thm1, 5.724700124477e+00, TOL));884 assert(isequalRel(satrec.mdot, 4.314022550354e-03, TOL));885 assert(isequalRel(satrec.nodedot, -1.542095005540e-07, TOL));886 assert(isequalRel(satrec.xlcof, 4.638946303203e-04, TOL));887 assert(isequalRel(satrec.xmcof, -7.745061119293e-11, TOL));888 assert(isequalRel(satrec.nodecf, -2.844567605756e-24, TOL));889 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));890 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));891 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));892 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));893 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));894 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));895 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));896 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));897 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));898 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));899 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));900 assert(isequalRel(satrec.dedt, 7.405672912273e-12, TOL));901 assert(isequalRel(satrec.del1, -5.401617059180e-13, TOL));902 assert(isequalRel(satrec.del2, 1.319183725301e-11, TOL));903 assert(isequalRel(satrec.del3, 1.815021571877e-12, TOL));904 assert(isequalRel(satrec.didt, 1.917646021027e-08, TOL));905 assert(isequalRel(satrec.dmdt, -1.336452685205e-07, TOL));906 assert(isequalRel(satrec.dnodt, 6.865572727316e-08, TOL));907 assert(isequalRel(satrec.domdt, -2.094974096530e-08, TOL));908 assert(isequalRel(satrec.e3, -2.023952527045e-06, TOL));909 assert(isequalRel(satrec.ee2, 3.000360099525e-06, TOL));910 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));911 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));912 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));913 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));914 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));915 assert(isequalRel(satrec.se2, -3.298847558934e-06, TOL));916 assert(isequalRel(satrec.se3, 2.290506347297e-05, TOL));917 assert(isequalRel(satrec.sgh2, -1.939779689075e-02, TOL));918 assert(isequalRel(satrec.sgh3, -2.730323108731e-03, TOL));919 assert(isequalRel(satrec.sgh4, -2.087272183414e-04, TOL));920 assert(isequalRel(satrec.sh2, -2.473782067380e-04, TOL));921 assert(isequalRel(satrec.sh3, -1.070558033105e-03, TOL));922 assert(isequalRel(satrec.si2, -1.043419845310e-03, TOL));923 assert(isequalRel(satrec.si3, 2.771277863689e-04, TOL));924 assert(isequalRel(satrec.sl2, 1.883089760893e-02, TOL));925 assert(isequalRel(satrec.sl3, 2.558661635920e-03, TOL));926 assert(isequalRel(satrec.sl4, 4.870307806874e-04, TOL));927 assert(isequalRel(satrec.gsto, 4.943902851905e+00, TOL));928 assert(isequalRel(satrec.xfact, -4.375061997072e-03, TOL));929 assert(isequalRel(satrec.xgh2, 1.723156593166e-03, TOL));930 assert(isequalRel(satrec.xgh3, 2.484248746878e-03, TOL));931 assert(isequalRel(satrec.xgh4, -1.098826820044e-04, TOL));932 assert(isequalRel(satrec.xh2, -1.510439919480e-04, TOL));933 assert(isequalRel(satrec.xh3, 1.680607206591e-04, TOL));934 assert(isequalRel(satrec.xi2, 1.739604100604e-04, TOL));935 assert(isequalRel(satrec.xi3, 1.380206186465e-04, TOL));936 assert(isequalRel(satrec.xl2, -1.687937988178e-03, TOL));937 assert(isequalRel(satrec.xl3, -2.328138479321e-03, TOL));938 assert(isequalRel(satrec.xl4, 2.563932429410e-04, TOL));939 assert(isequalRel(satrec.xlamo, 1.954280633142e+00, TOL));940 assert(isequalRel(satrec.zmol, 1.634038675524e+00, TOL));941 assert(isequalRel(satrec.zmos, 2.966933705124e+00, TOL));942 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));943 assert(isequalRel(satrec.xli, 1.954280633142e+00, TOL));944 assert(isequalRel(satrec.xni, 4.313874514604e-03, TOL));945 equal(satrec.method, "d");946 equal(satrec.init, "n");947 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));948 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));949 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));950});951// 14128952test('1 16925U 86065D 06151.67415771 .02550794 -30915-6 18784-3 0 4486', function () {953 var rets = twoline2rv(72,954 '1 16925U 86065D 06151.67415771 .02550794 -30915-6 18784-3 0 4486',955 '2 16925 62.0906 295.0239 5596327 245.1593 47.9690 4.88511875148616 0.0 1440.0 120.00 ',956 'v', 'e');957 satrec = rets.shift(),958 startmfe = rets.shift(),959 stopmfe = rets.shift(),960 deltamin = rets.shift(),961 TOL = 0.000001;962 equal(satrec.error, 0);963 equal(satrec.satnum, 16925);964 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));965 assert(isequalRel(satrec.epochdays, 1.516741577100e+02, TOL));966 assert(isequalRel(satrec.ndot, 7.729123930576e-08, TOL));967 assert(isequalRel(satrec.nddot, -6.505214822700e-16, TOL));968 assert(isequalRel(satrec.bstar, 1.878400000000e-04, TOL));969 assert(isequalRel(satrec.inclo, 1.083685404539e+00, TOL));970 assert(isequalRel(satrec.nodeo, 5.149138427074e+00, TOL));971 assert(isequalRel(satrec.ecco, 5.596327000000e-01, TOL));972 assert(isequalRel(satrec.argpo, 4.278836976885e+00, TOL));973 assert(isequalRel(satrec.mo, 8.372169888892e-01, TOL));974 assert(isequalRel(satrec.no, 2.131732105901e-02, TOL));975 assert(isequalRel(satrec.a, 2.300337259586e+00, TOL));976 assert(isequalRel(satrec.alta, 2.587681211079e+00, TOL));977 assert(isequalRel(satrec.altp, 1.299330809330e-02, TOL));978 assert(isequalRel(satrec.jdsatepoch, 2.453887174158e+06, TOL));979 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));980 assert(isequalRel(satrec.aycof, 1.036155981069e-03, TOL));981 assert(isequalRel(satrec.con41, -3.427179465249e-01, TOL));982 assert(isequalRel(satrec.cc1, 2.418296387339e-06, TOL));983 assert(isequalRel(satrec.cc4, 1.320286569381e-02, TOL));984 assert(isequalRel(satrec.cc5, 9.335374337378e-01, TOL));985 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));986 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));987 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));988 assert(isequalRel(satrec.delmo, 4.611401199408e+00, TOL));989 assert(isequalRel(satrec.eta, 9.924481486794e-01, TOL));990 assert(isequalRel(satrec.argpdot, 6.555617764618e-07, TOL));991 assert(isequalRel(satrec.omgcof, -2.050582310845e-16, TOL));992 assert(isequalRel(satrec.sinmao, 7.427826822235e-01, TOL));993 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));994 assert(isequalRel(satrec.t2cof, 3.627444581008e-06, TOL));995 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));996 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));997 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));998 assert(isequalRel(satrec.x1mth2, 7.809059821750e-01, TOL));999 assert(isequalRel(satrec.x7thm1, 5.336581247751e-01, TOL));1000 assert(isequalRel(satrec.mdot, 2.131535165822e-02, TOL));1001 assert(isequalRel(satrec.nodedot, -6.488927718517e-06, TOL));1002 assert(isequalRel(satrec.xlcof, 1.884597590117e-03, TOL));1003 assert(isequalRel(satrec.xmcof, -4.813611076178e-12, TOL));1004 assert(isequalRel(satrec.nodecf, -3.774194128382e-11, TOL));1005 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1006 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1007 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1008 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1009 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1010 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1011 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1012 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1013 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1014 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1015 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1016 assert(isequalRel(satrec.dedt, -2.324540208861e-09, TOL));1017 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1018 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1019 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1020 assert(isequalRel(satrec.didt, -9.012956177194e-09, TOL));1021 assert(isequalRel(satrec.dmdt, 3.250770527931e-08, TOL));1022 assert(isequalRel(satrec.dnodt, -2.039277854983e-08, TOL));1023 assert(isequalRel(satrec.domdt, -1.115284366841e-08, TOL));1024 assert(isequalRel(satrec.e3, -1.668567580056e-04, TOL));1025 assert(isequalRel(satrec.ee2, -8.275330366745e-05, TOL));1026 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1027 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1028 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1029 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1030 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1031 assert(isequalRel(satrec.se2, 1.125966825154e-03, TOL));1032 assert(isequalRel(satrec.se3, 5.685080602400e-05, TOL));1033 assert(isequalRel(satrec.sgh2, -8.864271738038e-05, TOL));1034 assert(isequalRel(satrec.sgh3, 1.625809438486e-03, TOL));1035 assert(isequalRel(satrec.sgh4, -3.500523155064e-05, TOL));1036 assert(isequalRel(satrec.sh2, 2.744561082561e-04, TOL));1037 assert(isequalRel(satrec.sh3, -9.759618675546e-04, TOL));1038 assert(isequalRel(satrec.si2, -4.991454790905e-04, TOL));1039 assert(isequalRel(satrec.si3, -4.573037379522e-04, TOL));1040 assert(isequalRel(satrec.sl2, 1.462141038683e-04, TOL));1041 assert(isequalRel(satrec.sl3, -1.456991037415e-03, TOL));1042 assert(isequalRel(satrec.sl4, 1.117866087106e-04, TOL));1043 assert(isequalRel(satrec.gsto, 2.298863660699e+00, TOL));1044 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1045 assert(isequalRel(satrec.xgh2, 2.432700701456e-04, TOL));1046 assert(isequalRel(satrec.xgh3, -1.126161998557e-04, TOL));1047 assert(isequalRel(satrec.xgh4, -1.842820863294e-05, TOL));1048 assert(isequalRel(satrec.xh2, -1.621327565099e-04, TOL));1049 assert(isequalRel(satrec.xh3, 5.347365712173e-05, TOL));1050 assert(isequalRel(satrec.xi2, -1.237488399592e-05, TOL));1051 assert(isequalRel(satrec.xi3, 1.015094158511e-04, TOL));1052 assert(isequalRel(satrec.xl2, -2.580143538619e-04, TOL));1053 assert(isequalRel(satrec.xl3, 5.639729900996e-05, TOL));1054 assert(isequalRel(satrec.xl4, 5.884911644441e-05, TOL));1055 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1056 assert(isequalRel(satrec.zmol, 2.363784803869e+00, TOL));1057 assert(isequalRel(satrec.zmos, 2.547991747703e+00, TOL));1058 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1059 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1060 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1061 equal(satrec.method, "d");1062 equal(satrec.init, "n");1063 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));1064 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));1065 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));1066});1067// 169251068test('1 20413U 83020D 05363.79166667 .00000000 00000-0 00000+0 0 7041', function () {1069 var rets = twoline2rv(72,1070 '1 20413U 83020D 05363.79166667 .00000000 00000-0 00000+0 0 7041',1071 '2 20413 12.3514 187.4253 7864447 196.3027 356.5478 0.24690082 7978 1440.0 4320.0 120.00 ',1072 'v', 'e');1073 satrec = rets.shift(),1074 startmfe = rets.shift(),1075 stopmfe = rets.shift(),1076 deltamin = rets.shift(),1077 TOL = 0.000001;1078 equal(satrec.error, 0);1079 equal(satrec.satnum, 20413);1080 assert(isequalRel(satrec.epochyr, 5.000000000000e+00, TOL));1081 assert(isequalRel(satrec.epochdays, 3.637916666700e+02, TOL));1082 assert(isequalRel(satrec.ndot, 0.000000000000e+00, TOL));1083 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1084 assert(isequalRel(satrec.bstar, 0.000000000000e+00, TOL));1085 assert(isequalRel(satrec.inclo, 2.155725972308e-01, TOL));1086 assert(isequalRel(satrec.nodeo, 3.271188586538e+00, TOL));1087 assert(isequalRel(satrec.ecco, 7.864447000000e-01, TOL));1088 assert(isequalRel(satrec.argpo, 3.426128445555e+00, TOL));1089 assert(isequalRel(satrec.mo, 6.222933050742e+00, TOL));1090 assert(isequalRel(satrec.no, 1.077283640185e-03, TOL));1091 assert(isequalRel(satrec.a, 1.682777032576e+01, TOL));1092 assert(isequalRel(satrec.alta, 2.906188111126e+01, TOL));1093 assert(isequalRel(satrec.altp, 2.593659540248e+00, TOL));1094 assert(isequalRel(satrec.jdsatepoch, 2.453734291667e+06, TOL));1095 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1096 assert(isequalRel(satrec.aycof, 2.508131883204e-04, TOL));1097 assert(isequalRel(satrec.con41, 1.862731633406e+00, TOL));1098 assert(isequalRel(satrec.cc1, 0.000000000000e+00, TOL));1099 assert(isequalRel(satrec.cc4, 9.750860292069e-14, TOL));1100 assert(isequalRel(satrec.cc5, 1.358849252297e-10, TOL));1101 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1102 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1103 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1104 assert(isequalRel(satrec.delmo, 6.181481065556e+00, TOL));1105 assert(isequalRel(satrec.eta, 8.367780746978e-01, TOL));1106 assert(isequalRel(satrec.argpdot, 8.005078790527e-08, TOL));1107 assert(isequalRel(satrec.omgcof, -0.000000000000e+00, TOL));1108 assert(isequalRel(satrec.sinmao, -6.021580708088e-02, TOL));1109 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1110 assert(isequalRel(satrec.t2cof, 0.000000000000e+00, TOL));1111 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1112 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1113 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1114 assert(isequalRel(satrec.x1mth2, 4.575612219784e-02, TOL));1115 assert(isequalRel(satrec.x7thm1, 5.679707144615e+00, TOL));1116 assert(isequalRel(satrec.mdot, 1.077308058974e-03, TOL));1117 assert(isequalRel(satrec.nodedot, -4.147025214065e-08, TOL));1118 assert(isequalRel(satrec.xlcof, 5.001580578347e-04, TOL));1119 assert(isequalRel(satrec.xmcof, -0.000000000000e+00, TOL));1120 assert(isequalRel(satrec.nodecf, -0.000000000000e+00, TOL));1121 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1122 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1123 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1124 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1125 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1126 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1127 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1128 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1129 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1130 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1131 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1132 assert(isequalRel(satrec.dedt, 9.991744175572e-08, TOL));1133 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1134 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1135 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1136 assert(isequalRel(satrec.didt, -2.656246157481e-07, TOL));1137 assert(isequalRel(satrec.dmdt, -7.442607144689e-07, TOL));1138 assert(isequalRel(satrec.dnodt, -7.900872576398e-07, TOL));1139 assert(isequalRel(satrec.domdt, 9.925475448625e-07, TOL));1140 assert(isequalRel(satrec.e3, -4.548826202443e-03, TOL));1141 assert(isequalRel(satrec.ee2, 2.057187923104e-03, TOL));1142 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1143 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1144 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1145 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1146 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1147 assert(isequalRel(satrec.se2, 2.969569919355e-02, TOL));1148 assert(isequalRel(satrec.se3, 1.468368332662e-02, TOL));1149 assert(isequalRel(satrec.sgh2, -1.634808994984e-02, TOL));1150 assert(isequalRel(satrec.sgh3, 4.324216378214e-02, TOL));1151 assert(isequalRel(satrec.sgh4, -5.162579880111e-04, TOL));1152 assert(isequalRel(satrec.sh2, 1.425174198066e-02, TOL));1153 assert(isequalRel(satrec.sh3, 4.931955088329e-03, TOL));1154 assert(isequalRel(satrec.si2, 5.144176519066e-02, TOL));1155 assert(isequalRel(satrec.si3, -8.646214930954e-04, TOL));1156 assert(isequalRel(satrec.sl2, 3.951910009817e-02, TOL));1157 assert(isequalRel(satrec.sl3, -1.241558054094e-01, TOL));1158 assert(isequalRel(satrec.sl4, 2.467220444289e-03, TOL));1159 assert(isequalRel(satrec.gsto, 4.071885638059e-01, TOL));1160 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1161 assert(isequalRel(satrec.xgh2, 6.919617584769e-03, TOL));1162 assert(isequalRel(satrec.xgh3, 2.084732624778e-03, TOL));1163 assert(isequalRel(satrec.xgh4, -2.717796594982e-04, TOL));1164 assert(isequalRel(satrec.xh2, 7.186248636015e-04, TOL));1165 assert(isequalRel(satrec.xh3, -2.561986795698e-03, TOL));1166 assert(isequalRel(satrec.xi2, -5.475272881099e-04, TOL));1167 assert(isequalRel(satrec.xi3, -9.211923499783e-03, TOL));1168 assert(isequalRel(satrec.xl2, -2.030877598251e-02, TOL));1169 assert(isequalRel(satrec.xl3, -4.767341552120e-03, TOL));1170 assert(isequalRel(satrec.xl4, 1.298847374429e-03, TOL));1171 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1172 assert(isequalRel(satrec.zmol, 5.201540682068e+00, TOL));1173 assert(isequalRel(satrec.zmos, 6.201295960309e+00, TOL));1174 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1175 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1176 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1177 equal(satrec.method, "d");1178 equal(satrec.init, "n");1179 assert(isequalRel(startmfe, 1.440000000000e+03, TOL));1180 assert(isequalRel(stopmfe, 4.320000000000e+03, TOL));1181 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));1182});1183// 204131184test('1 21897U 92011A 06176.02341244 -.00001273 00000-0 -13525-3 0 3044', function () {1185 var rets = twoline2rv(72,1186 '1 21897U 92011A 06176.02341244 -.00001273 00000-0 -13525-3 0 3044',1187 '2 21897 62.1749 198.0096 7421690 253.0462 20.1561 2.01269994104880 0.0 2880.0 120.00 ',1188 'v', 'e');1189 satrec = rets.shift(),1190 startmfe = rets.shift(),1191 stopmfe = rets.shift(),1192 deltamin = rets.shift(),1193 TOL = 0.000001;1194 equal(satrec.error, 0);1195 equal(satrec.satnum, 21897);1196 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1197 assert(isequalRel(satrec.epochdays, 1.760234124400e+02, TOL));1198 assert(isequalRel(satrec.ndot, -3.857298850328e-11, TOL));1199 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1200 assert(isequalRel(satrec.bstar, -1.352500000000e-04, TOL));1201 assert(isequalRel(satrec.inclo, 1.085156717098e+00, TOL));1202 assert(isequalRel(satrec.nodeo, 3.455919470557e+00, TOL));1203 assert(isequalRel(satrec.ecco, 7.421690000000e-01, TOL));1204 assert(isequalRel(satrec.argpo, 4.416489349660e+00, TOL));1205 assert(isequalRel(satrec.mo, 3.517903093612e-01, TOL));1206 assert(isequalRel(satrec.no, 8.782535528761e-03, TOL));1207 assert(isequalRel(satrec.a, 4.154533274527e+00, TOL));1208 assert(isequalRel(satrec.alta, 6.237899080349e+00, TOL));1209 assert(isequalRel(satrec.altp, 7.116746870457e-02, TOL));1210 assert(isequalRel(satrec.jdsatepoch, 2.453911523412e+06, TOL));1211 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1212 assert(isequalRel(satrec.aycof, 1.036962365648e-03, TOL));1213 assert(isequalRel(satrec.con41, -3.463657886765e-01, TOL));1214 assert(isequalRel(satrec.cc1, -5.832456330155e-11, TOL));1215 assert(isequalRel(satrec.cc4, 2.711979715083e-07, TOL));1216 assert(isequalRel(satrec.cc5, 4.632159335659e-05, TOL));1217 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1218 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1219 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1220 assert(isequalRel(satrec.delmo, 7.090728303385e+00, TOL));1221 assert(isequalRel(satrec.eta, 9.812550443388e-01, TOL));1222 assert(isequalRel(satrec.argpdot, 1.816762761577e-07, TOL));1223 assert(isequalRel(satrec.omgcof, 1.188366956468e-20, TOL));1224 assert(isequalRel(satrec.sinmao, 3.445790247894e-01, TOL));1225 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1226 assert(isequalRel(satrec.t2cof, -8.748684495232e-11, TOL));1227 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1228 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1229 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1230 assert(isequalRel(satrec.x1mth2, 7.821219295588e-01, TOL));1231 assert(isequalRel(satrec.x7thm1, 5.251464930881e-01, TOL));1232 assert(isequalRel(satrec.mdot, 8.782060217382e-03, TOL));1233 assert(isequalRel(satrec.nodedot, -1.910984836962e-06, TOL));1234 assert(isequalRel(satrec.xlcof, 1.885437909935e-03, TOL));1235 assert(isequalRel(satrec.xmcof, 2.388216628336e-15, TOL));1236 assert(isequalRel(satrec.nodecf, 1.752965458283e-16, TOL));1237 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));1238 assert(isequalRel(satrec.d2201, -1.358430480330e-11, TOL));1239 assert(isequalRel(satrec.d2211, 8.393534226859e-11, TOL));1240 assert(isequalRel(satrec.d3210, -7.731467500396e-12, TOL));1241 assert(isequalRel(satrec.d3222, -1.225068944742e-11, TOL));1242 assert(isequalRel(satrec.d4410, 4.702956210526e-12, TOL));1243 assert(isequalRel(satrec.d4422, 8.003291640479e-12, TOL));1244 assert(isequalRel(satrec.d5220, -6.224656265138e-12, TOL));1245 assert(isequalRel(satrec.d5232, 2.558930440722e-12, TOL));1246 assert(isequalRel(satrec.d5421, -5.640794406041e-12, TOL));1247 assert(isequalRel(satrec.d5433, -3.910753384831e-12, TOL));1248 assert(isequalRel(satrec.dedt, 1.441546149773e-08, TOL));1249 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1250 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1251 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1252 assert(isequalRel(satrec.didt, -1.685608671533e-09, TOL));1253 assert(isequalRel(satrec.dmdt, 1.948849567720e-07, TOL));1254 assert(isequalRel(satrec.dnodt, -6.831807033508e-09, TOL));1255 assert(isequalRel(satrec.domdt, -7.014119890435e-08, TOL));1256 assert(isequalRel(satrec.e3, -5.809658803806e-05, TOL));1257 assert(isequalRel(satrec.ee2, 1.029719050358e-04, TOL));1258 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1259 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1260 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1261 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1262 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1263 assert(isequalRel(satrec.se2, -5.827763896555e-04, TOL));1264 assert(isequalRel(satrec.se3, 7.782941825865e-04, TOL));1265 assert(isequalRel(satrec.sgh2, -1.403967386252e-05, TOL));1266 assert(isequalRel(satrec.sgh3, -1.232243049360e-03, TOL));1267 assert(isequalRel(satrec.sgh4, -6.871312109088e-05, TOL));1268 assert(isequalRel(satrec.sh2, 1.040864137284e-03, TOL));1269 assert(isequalRel(satrec.sh3, 1.047903595216e-03, TOL));1270 assert(isequalRel(satrec.si2, 1.704326979978e-03, TOL));1271 assert(isequalRel(satrec.si3, 5.269146587838e-04, TOL));1272 assert(isequalRel(satrec.sl2, 6.958156453603e-04, TOL));1273 assert(isequalRel(satrec.sl3, -1.138733166786e-03, TOL));1274 assert(isequalRel(satrec.sl4, 2.956953768062e-04, TOL));1275 assert(isequalRel(satrec.gsto, 4.912171010008e+00, TOL));1276 assert(isequalRel(satrec.xfact, -8.754654235733e-03, TOL));1277 assert(isequalRel(satrec.xgh2, -1.645505874222e-04, TOL));1278 assert(isequalRel(satrec.xgh3, 1.067426866480e-04, TOL));1279 assert(isequalRel(satrec.xgh4, -3.617344251676e-05, TOL));1280 assert(isequalRel(satrec.xh2, -7.385557332388e-05, TOL));1281 assert(isequalRel(satrec.xh3, -1.379346924380e-04, TOL));1282 assert(isequalRel(satrec.xi2, -1.440041796867e-04, TOL));1283 assert(isequalRel(satrec.xi3, -2.339553088854e-04, TOL));1284 assert(isequalRel(satrec.xl2, -1.733725252342e-04, TOL));1285 assert(isequalRel(satrec.xl3, 1.029442407285e-04, TOL));1286 assert(isequalRel(satrec.xl4, 1.556663348362e-04, TOL));1287 assert(isequalRel(satrec.xlamo, -2.560712769541e+00, TOL));1288 assert(isequalRel(satrec.zmol, 1.632890219145e+00, TOL));1289 assert(isequalRel(satrec.zmos, 2.966847067538e+00, TOL));1290 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1291 assert(isequalRel(satrec.xli, -2.560712769541e+00, TOL));1292 assert(isequalRel(satrec.xni, 8.782535528761e-03, TOL));1293 equal(satrec.method, "d");1294 equal(satrec.init, "n");1295 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));1296 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));1297 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));1298});1299// 218971300test('1 22312U 93002D 06094.46235912 .99999999 81888-5 49949-3 0 3953', function () {1301 var rets = twoline2rv(72,1302 '1 22312U 93002D 06094.46235912 .99999999 81888-5 49949-3 0 3953',1303 '2 22312 62.1486 77.4698 0308723 267.9229 88.7392 15.95744531 98783 54.2028672 1440.0 20.00 ',1304 'v', 'e');1305 satrec = rets.shift(),1306 startmfe = rets.shift(),1307 stopmfe = rets.shift(),1308 deltamin = rets.shift(),1309 TOL = 0.000001;1310 equal(satrec.error, 0);1311 equal(satrec.satnum, 22312);1312 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1313 assert(isequalRel(satrec.epochdays, 9.446235912000e+01, TOL));1314 assert(isequalRel(satrec.ndot, 3.030085476634e-06, TOL));1315 assert(isequalRel(satrec.nddot, 1.723108624943e-14, TOL));1316 assert(isequalRel(satrec.bstar, 4.994900000000e-04, TOL));1317 assert(isequalRel(satrec.inclo, 1.084697695505e+00, TOL));1318 assert(isequalRel(satrec.nodeo, 1.352103080862e+00, TOL));1319 assert(isequalRel(satrec.ecco, 3.087230000000e-02, TOL));1320 assert(isequalRel(satrec.argpo, 4.676136746492e+00, TOL));1321 assert(isequalRel(satrec.mo, 1.548791215586e+00, TOL));1322 assert(isequalRel(satrec.no, 6.964539419426e-02, TOL));1323 assert(isequalRel(satrec.a, 1.044879048565e+00, TOL));1324 assert(isequalRel(satrec.alta, 7.713686801602e-02, TOL));1325 assert(isequalRel(satrec.altp, 1.262122911400e-02, TOL));1326 assert(isequalRel(satrec.jdsatepoch, 2.453829962359e+06, TOL));1327 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1328 assert(isequalRel(satrec.aycof, 1.036711029802e-03, TOL));1329 assert(isequalRel(satrec.con41, -3.452285162292e-01, TOL));1330 assert(isequalRel(satrec.cc1, 3.375003429857e-05, TOL));1331 assert(isequalRel(satrec.cc4, 1.304503580746e-01, TOL));1332 assert(isequalRel(satrec.cc5, 2.910356158160e+00, TOL));1333 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1334 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1335 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1336 assert(isequalRel(satrec.delmo, 1.052100787201e+00, TOL));1337 assert(isequalRel(satrec.eta, 7.759622143528e-01, TOL));1338 assert(isequalRel(satrec.argpdot, 4.626953140656e-06, TOL));1339 assert(isequalRel(satrec.omgcof, -8.249597709173e-08, TOL));1340 assert(isequalRel(satrec.sinmao, 9.997578973099e-01, TOL));1341 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1342 assert(isequalRel(satrec.t2cof, 5.062505144786e-05, TOL));1343 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1344 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1345 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1346 assert(isequalRel(satrec.x1mth2, 7.817428387431e-01, TOL));1347 assert(isequalRel(satrec.x7thm1, 5.278001287984e-01, TOL));1348 assert(isequalRel(satrec.mdot, 6.962748907452e-02, TOL));1349 assert(isequalRel(satrec.nodedot, -4.844420412010e-05, TOL));1350 assert(isequalRel(satrec.xlcof, 1.885176460051e-03, TOL));1351 assert(isequalRel(satrec.xmcof, -2.814305098253e-04, TOL));1352 assert(isequalRel(satrec.nodecf, -5.724210237297e-09, TOL));1353 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1354 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1355 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1356 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1357 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1358 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1359 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1360 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1361 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1362 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1363 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1364 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));1365 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1366 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1367 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1368 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));1369 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));1370 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));1371 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));1372 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));1373 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));1374 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1375 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1376 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1377 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1378 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1379 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));1380 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));1381 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));1382 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));1383 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));1384 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));1385 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));1386 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));1387 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));1388 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));1389 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));1390 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));1391 assert(isequalRel(satrec.gsto, 6.267076519855e+00, TOL));1392 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1393 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));1394 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));1395 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));1396 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));1397 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));1398 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));1399 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));1400 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));1401 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));1402 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));1403 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1404 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));1405 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));1406 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1407 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1408 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1409 equal(satrec.method, "n");1410 equal(satrec.init, "n");1411 assert(isequalRel(startmfe, 5.420286720000e+01, TOL));1412 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));1413 assert(isequalRel(deltamin, 2.000000000000e+01, TOL));1414});1415// 223121416// *** error: t:= 494.202867 *** code = 11417test('1 22674U 93035D 06176.55909107 .00002121 00000-0 29868-3 0 6569', function () {1418 var rets = twoline2rv(72,1419 '1 22674U 93035D 06176.55909107 .00002121 00000-0 29868-3 0 6569',1420 '2 22674 63.5035 354.4452 7541712 253.3264 18.7754 1.96679808 93877 0.0 2880.0 120.00 ',1421 'v', 'e');1422 satrec = rets.shift(),1423 startmfe = rets.shift(),1424 stopmfe = rets.shift(),1425 deltamin = rets.shift(),1426 TOL = 0.000001;1427 equal(satrec.error, 0);1428 equal(satrec.satnum, 22674);1429 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1430 assert(isequalRel(satrec.epochdays, 1.765590910700e+02, TOL));1431 assert(isequalRel(satrec.ndot, 6.426811360208e-11, TOL));1432 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1433 assert(isequalRel(satrec.bstar, 2.986800000000e-04, TOL));1434 assert(isequalRel(satrec.inclo, 1.108345161540e+00, TOL));1435 assert(isequalRel(satrec.nodeo, 6.186235757890e+00, TOL));1436 assert(isequalRel(satrec.ecco, 7.541712000000e-01, TOL));1437 assert(isequalRel(satrec.argpo, 4.421379762224e+00, TOL));1438 assert(isequalRel(satrec.mo, 3.276925483789e-01, TOL));1439 assert(isequalRel(satrec.no, 8.582332516240e-03, TOL));1440 assert(isequalRel(satrec.a, 4.218924436776e+00, TOL));1441 assert(isequalRel(satrec.alta, 6.400715741968e+00, TOL));1442 assert(isequalRel(satrec.altp, 3.713313158324e-02, TOL));1443 assert(isequalRel(satrec.jdsatepoch, 2.453912059091e+06, TOL));1444 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1445 assert(isequalRel(satrec.aycof, 1.049373693837e-03, TOL));1446 assert(isequalRel(satrec.con41, -4.028688855919e-01, TOL));1447 assert(isequalRel(satrec.cc1, 2.595887844361e-09, TOL));1448 assert(isequalRel(satrec.cc4, 5.255038362816e-06, TOL));1449 assert(isequalRel(satrec.cc5, 9.189456533467e-04, TOL));1450 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1451 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1452 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1453 assert(isequalRel(satrec.delmo, 7.295146735799e+00, TOL));1454 assert(isequalRel(satrec.eta, 9.922473468655e-01, TOL));1455 assert(isequalRel(satrec.argpdot, -1.142224275335e-08, TOL));1456 assert(isequalRel(satrec.omgcof, -2.270642728079e-20, TOL));1457 assert(isequalRel(satrec.sinmao, 3.218592207367e-01, TOL));1458 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1459 assert(isequalRel(satrec.t2cof, 3.893831766541e-09, TOL));1460 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1461 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1462 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1463 assert(isequalRel(satrec.x1mth2, 8.009562951973e-01, TOL));1464 assert(isequalRel(satrec.x7thm1, 3.933059336189e-01, TOL));1465 assert(isequalRel(satrec.mdot, 8.581775564227e-03, TOL));1466 assert(isequalRel(satrec.nodedot, -1.877848338725e-06, TOL));1467 assert(isequalRel(satrec.xlcof, 1.897798118762e-03, TOL));1468 assert(isequalRel(satrec.xmcof, -4.732771188141e-15, TOL));1469 assert(isequalRel(satrec.nodecf, -7.360860344711e-15, TOL));1470 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));1471 assert(isequalRel(satrec.d2201, -1.241189028817e-11, TOL));1472 assert(isequalRel(satrec.d2211, 8.551864262335e-11, TOL));1473 assert(isequalRel(satrec.d3210, -6.602089272382e-12, TOL));1474 assert(isequalRel(satrec.d3222, -1.302466004394e-11, TOL));1475 assert(isequalRel(satrec.d4410, 4.891528985291e-12, TOL));1476 assert(isequalRel(satrec.d4422, 8.891260588609e-12, TOL));1477 assert(isequalRel(satrec.d5220, -6.477888050339e-12, TOL));1478 assert(isequalRel(satrec.d5232, 2.138467008675e-12, TOL));1479 assert(isequalRel(satrec.d5421, -5.750904185904e-12, TOL));1480 assert(isequalRel(satrec.d5433, -4.510549332610e-12, TOL));1481 assert(isequalRel(satrec.dedt, 7.330390566401e-09, TOL));1482 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1483 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1484 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1485 assert(isequalRel(satrec.didt, -2.350896248702e-08, TOL));1486 assert(isequalRel(satrec.dmdt, -2.726008010046e-09, TOL));1487 assert(isequalRel(satrec.dnodt, -9.800554699737e-08, TOL));1488 assert(isequalRel(satrec.domdt, 3.479071142642e-08, TOL));1489 assert(isequalRel(satrec.e3, -1.880237977527e-04, TOL));1490 assert(isequalRel(satrec.ee2, 6.551908742706e-04, TOL));1491 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1492 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1493 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1494 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1495 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1496 assert(isequalRel(satrec.se2, -1.668215845123e-03, TOL));1497 assert(isequalRel(satrec.se3, 3.610858069376e-03, TOL));1498 assert(isequalRel(satrec.sgh2, -4.299448087716e-03, TOL));1499 assert(isequalRel(satrec.sgh3, -1.722984622184e-03, TOL));1500 assert(isequalRel(satrec.sgh4, -6.889598529018e-05, TOL));1501 assert(isequalRel(satrec.sh2, 3.935976325614e-03, TOL));1502 assert(isequalRel(satrec.sh3, 3.059743184660e-03, TOL));1503 assert(isequalRel(satrec.si2, 1.789568818084e-03, TOL));1504 assert(isequalRel(satrec.si3, 2.366876188168e-04, TOL));1505 assert(isequalRel(satrec.sl2, 9.202998763432e-03, TOL));1506 assert(isequalRel(satrec.sl3, 2.742276317175e-03, TOL));1507 assert(isequalRel(satrec.sl4, 3.044773891692e-04, TOL));1508 assert(isequalRel(satrec.gsto, 2.003968969617e+00, TOL));1509 assert(isequalRel(satrec.xfact, -8.755049561816e-03, TOL));1510 assert(isequalRel(satrec.xgh2, 2.558144451794e-04, TOL));1511 assert(isequalRel(satrec.xgh3, 7.760342525429e-04, TOL));1512 assert(isequalRel(satrec.xgh4, -3.626970983073e-05, TOL));1513 assert(isequalRel(satrec.xh2, -4.442804590880e-05, TOL));1514 assert(isequalRel(satrec.xh3, -7.585547023917e-04, TOL));1515 assert(isequalRel(satrec.xi2, -1.445258766608e-04, TOL));1516 assert(isequalRel(satrec.xi3, -2.241607759555e-04, TOL));1517 assert(isequalRel(satrec.xl2, -6.443953743437e-04, TOL));1518 assert(isequalRel(satrec.xl3, -1.634546261908e-03, TOL));1519 assert(isequalRel(satrec.xl4, 1.602895511062e-04, TOL));1520 assert(isequalRel(satrec.xlamo, 2.409040817745e+00, TOL));1521 assert(isequalRel(satrec.zmol, 1.755039480870e+00, TOL));1522 assert(isequalRel(satrec.zmos, 2.976061799015e+00, TOL));1523 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1524 assert(isequalRel(satrec.xli, 2.409040817745e+00, TOL));1525 assert(isequalRel(satrec.xni, 8.582332516240e-03, TOL));1526 equal(satrec.method, "d");1527 equal(satrec.init, "n");1528 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));1529 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));1530 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));1531});1532// 226741533test('1 23177U 94040C 06175.45752052 .00000386 00000-0 76590-3 0 95', function () {1534 var rets = twoline2rv(72,1535 '1 23177U 94040C 06175.45752052 .00000386 00000-0 76590-3 0 95',1536 '2 23177 7.0496 179.8238 7258491 296.0482 8.3061 2.25906668 97438 0.0 1440.0 120.00 ',1537 'v', 'e');1538 satrec = rets.shift(),1539 startmfe = rets.shift(),1540 stopmfe = rets.shift(),1541 deltamin = rets.shift(),1542 TOL = 0.000001;1543 equal(satrec.error, 0);1544 equal(satrec.satnum, 23177);1545 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1546 assert(isequalRel(satrec.epochdays, 1.754575205200e+02, TOL));1547 assert(isequalRel(satrec.ndot, 1.169613005677e-11, TOL));1548 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1549 assert(isequalRel(satrec.bstar, 7.659000000000e-04, TOL));1550 assert(isequalRel(satrec.inclo, 1.230387309486e-01, TOL));1551 assert(isequalRel(satrec.nodeo, 3.138517383448e+00, TOL));1552 assert(isequalRel(satrec.ecco, 7.258491000000e-01, TOL));1553 assert(isequalRel(satrec.argpo, 5.167015834603e+00, TOL));1554 assert(isequalRel(satrec.mo, 1.449687929999e-01, TOL));1555 assert(isequalRel(satrec.no, 9.853789469239e-03, TOL));1556 assert(isequalRel(satrec.a, 3.846705136955e+00, TOL));1557 assert(isequalRel(satrec.alta, 5.638832598578e+00, TOL));1558 assert(isequalRel(satrec.altp, 5.457767533072e-02, TOL));1559 assert(isequalRel(satrec.jdsatepoch, 2.453910957521e+06, TOL));1560 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1561 assert(isequalRel(satrec.aycof, 1.439034777135e-04, TOL));1562 assert(isequalRel(satrec.con41, 1.954813125046e+00, TOL));1563 assert(isequalRel(satrec.cc1, 1.125288811171e-09, TOL));1564 assert(isequalRel(satrec.cc4, 9.659235530288e-07, TOL));1565 assert(isequalRel(satrec.cc5, 1.465564872513e-04, TOL));1566 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1567 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1568 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1569 assert(isequalRel(satrec.delmo, 7.699641690923e+00, TOL));1570 assert(isequalRel(satrec.eta, 9.849822474735e-01, TOL));1571 assert(isequalRel(satrec.argpdot, 9.499446270781e-06, TOL));1572 assert(isequalRel(satrec.omgcof, 2.696879352118e-20, TOL));1573 assert(isequalRel(satrec.sinmao, 1.444615501293e-01, TOL));1574 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1575 assert(isequalRel(satrec.t2cof, 1.687933216756e-09, TOL));1576 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1577 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1578 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1579 assert(isequalRel(satrec.x1mth2, 1.506229165127e-02, TOL));1580 assert(isequalRel(satrec.x7thm1, 5.894563958441e+00, TOL));1581 assert(isequalRel(satrec.mdot, 9.857038097825e-03, TOL));1582 assert(isequalRel(satrec.nodedot, -4.803174199882e-06, TOL));1583 assert(isequalRel(satrec.xlcof, 2.875339560094e-04, TOL));1584 assert(isequalRel(satrec.xmcof, -2.077874548988e-14, TOL));1585 assert(isequalRel(satrec.nodecf, -8.929851828102e-15, TOL));1586 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1587 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1588 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1589 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1590 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1591 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1592 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1593 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1594 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1595 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1596 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1597 assert(isequalRel(satrec.dedt, -1.045444380488e-08, TOL));1598 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1599 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1600 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1601 assert(isequalRel(satrec.didt, 2.376724085775e-08, TOL));1602 assert(isequalRel(satrec.dmdt, -2.642690499755e-08, TOL));1603 assert(isequalRel(satrec.dnodt, -4.838389780477e-07, TOL));1604 assert(isequalRel(satrec.domdt, 4.812656940526e-07, TOL));1605 assert(isequalRel(satrec.e3, 5.883771878310e-04, TOL));1606 assert(isequalRel(satrec.ee2, 1.201802618946e-04, TOL));1607 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1608 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1609 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1610 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1611 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1612 assert(isequalRel(satrec.se2, -3.424600980580e-03, TOL));1613 assert(isequalRel(satrec.se3, -1.945460736508e-03, TOL));1614 assert(isequalRel(satrec.sgh2, 2.807746435654e-03, TOL));1615 assert(isequalRel(satrec.sgh3, -4.287929901990e-03, TOL));1616 assert(isequalRel(satrec.sgh4, -6.285500316310e-05, TOL));1617 assert(isequalRel(satrec.sh2, -1.277477731310e-04, TOL));1618 assert(isequalRel(satrec.sh3, 3.309216641173e-03, TOL));1619 assert(isequalRel(satrec.si2, 7.513453732828e-04, TOL));1620 assert(isequalRel(satrec.si3, -1.615208443659e-03, TOL));1621 assert(isequalRel(satrec.sl2, -6.591258953724e-03, TOL));1622 assert(isequalRel(satrec.sl3, 8.653034599493e-03, TOL));1623 assert(isequalRel(satrec.sl4, 2.613596417420e-04, TOL));1624 assert(isequalRel(satrec.gsto, 1.346832291139e+00, TOL));1625 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1626 assert(isequalRel(satrec.xgh2, -7.580873897080e-04, TOL));1627 assert(isequalRel(satrec.xgh3, 8.944532635768e-05, TOL));1628 assert(isequalRel(satrec.xgh4, -3.308948578837e-05, TOL));1629 assert(isequalRel(satrec.xh2, 4.592174078680e-04, TOL));1630 assert(isequalRel(satrec.xh3, -3.581021323765e-04, TOL));1631 assert(isequalRel(satrec.xi2, -3.094906804917e-04, TOL));1632 assert(isequalRel(satrec.xi3, 8.206020674696e-05, TOL));1633 assert(isequalRel(satrec.xl2, 1.595875573261e-03, TOL));1634 assert(isequalRel(satrec.xl3, -2.025915791658e-05, TOL));1635 assert(isequalRel(satrec.xl4, 1.375905769766e-04, TOL));1636 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1637 assert(isequalRel(satrec.zmol, 1.503851507578e+00, TOL));1638 assert(isequalRel(satrec.zmos, 2.957112607744e+00, TOL));1639 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1640 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1641 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1642 equal(satrec.method, "d");1643 equal(satrec.init, "n");1644 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));1645 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));1646 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));1647});1648// 231771649test('1 23333U 94071A 94305.49999999 -.00172956 26967-3 10000-3 0 15', function () {1650 var rets = twoline2rv(72,1651 '1 23333U 94071A 94305.49999999 -.00172956 26967-3 10000-3 0 15',1652 '2 23333 28.7490 2.3720 9728298 30.4360 1.3500 0.07309491 70 0.0 1600.0 120.00 ',1653 'v', 'e');1654 satrec = rets.shift(),1655 startmfe = rets.shift(),1656 stopmfe = rets.shift(),1657 deltamin = rets.shift(),1658 TOL = 0.000001;1659 equal(satrec.error, 0);1660 equal(satrec.satnum, 23333);1661 assert(isequalRel(satrec.epochyr, 9.400000000000e+01, TOL));1662 assert(isequalRel(satrec.epochdays, 3.054999999900e+02, TOL));1663 assert(isequalRel(satrec.ndot, -5.240714689374e-09, TOL));1664 assert(isequalRel(satrec.nddot, 5.674466379549e-13, TOL));1665 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));1666 assert(isequalRel(satrec.inclo, 5.017647066558e-01, TOL));1667 assert(isequalRel(satrec.nodeo, 4.139920985731e-02, TOL));1668 assert(isequalRel(satrec.ecco, 9.728298000000e-01, TOL));1669 assert(isequalRel(satrec.argpo, 5.312084111370e-01, TOL));1670 assert(isequalRel(satrec.mo, 2.356194490192e-02, TOL));1671 assert(isequalRel(satrec.no, 3.189177226396e-04, TOL));1672 assert(isequalRel(satrec.a, 3.788350677218e+01, TOL));1673 assert(isequalRel(satrec.alta, 7.373771108867e+01, TOL));1674 assert(isequalRel(satrec.altp, 2.930245570162e-02, TOL));1675 assert(isequalRel(satrec.jdsatepoch, 2.449658000000e+06, TOL));1676 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1677 assert(isequalRel(satrec.aycof, 5.639581568863e-04, TOL));1678 assert(isequalRel(satrec.con41, 1.305993571902e+00, TOL));1679 assert(isequalRel(satrec.cc1, 3.721578957178e-10, TOL));1680 assert(isequalRel(satrec.cc4, 2.666792794038e-07, TOL));1681 assert(isequalRel(satrec.cc5, 1.254245061371e-03, TOL));1682 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1683 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1684 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1685 assert(isequalRel(satrec.delmo, 7.991104360376e+00, TOL));1686 assert(isequalRel(satrec.eta, 9.995358627143e-01, TOL));1687 assert(isequalRel(satrec.argpdot, 1.787618353473e-07, TOL));1688 assert(isequalRel(satrec.omgcof, 1.758924860415e-27, TOL));1689 assert(isequalRel(satrec.sinmao, 2.355976483361e-02, TOL));1690 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1691 assert(isequalRel(satrec.t2cof, 5.582368435766e-10, TOL));1692 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1693 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1694 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1695 assert(isequalRel(satrec.x1mth2, 2.313354760326e-01, TOL));1696 assert(isequalRel(satrec.x7thm1, 4.380651667771e+00, TOL));1697 assert(isequalRel(satrec.mdot, 3.189367173340e-04, TOL));1698 assert(isequalRel(satrec.nodedot, -1.102439219498e-07, TOL));1699 assert(isequalRel(satrec.xlcof, 1.109395794943e-03, TOL));1700 assert(isequalRel(satrec.xmcof, -6.973844182638e-20, TOL));1701 assert(isequalRel(satrec.nodecf, -7.687599963907e-18, TOL));1702 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1703 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1704 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1705 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1706 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1707 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1708 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1709 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1710 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1711 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1712 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1713 assert(isequalRel(satrec.dedt, 2.968135603242e-09, TOL));1714 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1715 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1716 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1717 assert(isequalRel(satrec.didt, -3.439044884764e-07, TOL));1718 assert(isequalRel(satrec.dmdt, -3.438051105625e-06, TOL));1719 assert(isequalRel(satrec.dnodt, -5.053925231474e-07, TOL));1720 assert(isequalRel(satrec.domdt, 6.914571527623e-07, TOL));1721 assert(isequalRel(satrec.e3, 6.618130467595e-03, TOL));1722 assert(isequalRel(satrec.ee2, -7.503198877723e-03, TOL));1723 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1724 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1725 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1726 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1727 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1728 assert(isequalRel(satrec.se2, 4.629809809051e-02, TOL));1729 assert(isequalRel(satrec.se3, 4.271626851497e-02, TOL));1730 assert(isequalRel(satrec.sgh2, -4.391480163694e-02, TOL));1731 assert(isequalRel(satrec.sgh3, 4.776472532865e-02, TOL));1732 assert(isequalRel(satrec.sgh4, -6.536713592881e-04, TOL));1733 assert(isequalRel(satrec.sh2, 5.087055669958e-02, TOL));1734 assert(isequalRel(satrec.sh3, 2.194123446194e-02, TOL));1735 assert(isequalRel(satrec.si2, 8.750068533754e-02, TOL));1736 assert(isequalRel(satrec.si3, 3.511647715856e-02, TOL));1737 assert(isequalRel(satrec.sl2, 3.692252174204e-01, TOL));1738 assert(isequalRel(satrec.sl3, -4.025541103842e-01, TOL));1739 assert(isequalRel(satrec.sl4, 9.259903790801e-03, TOL));1740 assert(isequalRel(satrec.gsto, 3.849219568564e+00, TOL));1741 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1742 assert(isequalRel(satrec.xgh2, -6.878292929739e-03, TOL));1743 assert(isequalRel(satrec.xgh3, -7.775516402908e-03, TOL));1744 assert(isequalRel(satrec.xgh4, -3.441197687525e-04, TOL));1745 assert(isequalRel(satrec.xh2, -1.179576494215e-02, TOL));1746 assert(isequalRel(satrec.xh3, 1.169037463880e-02, TOL));1747 assert(isequalRel(satrec.xi2, -1.956589871380e-02, TOL));1748 assert(isequalRel(satrec.xi3, 2.039566495961e-02, TOL));1749 assert(isequalRel(satrec.xl2, 5.825328423320e-02, TOL));1750 assert(isequalRel(satrec.xl3, 6.572632496892e-02, TOL));1751 assert(isequalRel(satrec.xl4, 4.874798177836e-03, TOL));1752 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1753 assert(isequalRel(satrec.zmol, 5.607868196210e+00, TOL));1754 assert(isequalRel(satrec.zmos, 5.196058843771e+00, TOL));1755 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1756 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1757 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1758 equal(satrec.method, "d");1759 equal(satrec.init, "n");1760 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));1761 assert(isequalRel(stopmfe, 1.600000000000e+03, TOL));1762 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));1763});1764// 233331765test('1 23599U 95029B 06171.76535463 .00085586 12891-6 12956-2 0 2905', function () {1766 var rets = twoline2rv(72,1767 '1 23599U 95029B 06171.76535463 .00085586 12891-6 12956-2 0 2905',1768 '2 23599 6.9327 0.2849 5782022 274.4436 25.2425 4.47796565123555 0.0 720.0 20.00 ',1769 'v', 'e');1770 satrec = rets.shift(),1771 startmfe = rets.shift(),1772 stopmfe = rets.shift(),1773 deltamin = rets.shift(),1774 TOL = 0.000001;1775 equal(satrec.error, 0);1776 equal(satrec.satnum, 23599);1777 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1778 assert(isequalRel(satrec.epochdays, 1.717653546300e+02, TOL));1779 assert(isequalRel(satrec.ndot, 2.593328981965e-09, TOL));1780 assert(isequalRel(satrec.nddot, 2.712557796520e-16, TOL));1781 assert(isequalRel(satrec.bstar, 1.295600000000e-03, TOL));1782 assert(isequalRel(satrec.inclo, 1.209984410530e-01, TOL));1783 assert(isequalRel(satrec.nodeo, 4.972443038932e-03, TOL));1784 assert(isequalRel(satrec.ecco, 5.782022000000e-01, TOL));1785 assert(isequalRel(satrec.argpo, 4.789944431026e+00, TOL));1786 assert(isequalRel(satrec.mo, 4.405647364347e-01, TOL));1787 assert(isequalRel(satrec.no, 1.952919673236e-02, TOL));1788 assert(isequalRel(satrec.a, 2.437742106707e+00, TOL));1789 assert(isequalRel(satrec.alta, 2.847249955837e+00, TOL));1790 assert(isequalRel(satrec.altp, 2.823425757631e-02, TOL));1791 assert(isequalRel(satrec.jdsatepoch, 2.453907265355e+06, TOL));1792 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1793 assert(isequalRel(satrec.aycof, 1.415289540171e-04, TOL));1794 assert(isequalRel(satrec.con41, 1.956292061635e+00, TOL));1795 assert(isequalRel(satrec.cc1, 8.878203501276e-08, TOL));1796 assert(isequalRel(satrec.cc4, 6.394027779674e-05, TOL));1797 assert(isequalRel(satrec.cc5, 4.806366086277e-03, TOL));1798 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1799 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1800 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1801 assert(isequalRel(satrec.delmo, 6.795809884804e+00, TOL));1802 assert(isequalRel(satrec.eta, 9.885421902905e-01, TOL));1803 assert(isequalRel(satrec.argpdot, 2.370814015402e-05, TOL));1804 assert(isequalRel(satrec.omgcof, 6.113727976134e-19, TOL));1805 assert(isequalRel(satrec.sinmao, 4.264503433455e-01, TOL));1806 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1807 assert(isequalRel(satrec.t2cof, 1.331730525191e-07, TOL));1808 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1809 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1810 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1811 assert(isequalRel(satrec.x1mth2, 1.456931278838e-02, TOL));1812 assert(isequalRel(satrec.x7thm1, 5.898014810481e+00, TOL));1813 assert(isequalRel(satrec.mdot, 1.953881035267e-02, TOL));1814 assert(isequalRel(satrec.nodedot, -1.198223317894e-05, TOL));1815 assert(isequalRel(satrec.xlcof, 2.827982657092e-04, TOL));1816 assert(isequalRel(satrec.xmcof, -6.865432422290e-13, TOL));1817 assert(isequalRel(satrec.nodecf, -2.471318865063e-12, TOL));1818 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));1819 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1820 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1821 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1822 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1823 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1824 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1825 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1826 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1827 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1828 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1829 assert(isequalRel(satrec.dedt, -4.020215919893e-10, TOL));1830 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));1831 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));1832 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));1833 assert(isequalRel(satrec.didt, -8.390202397339e-10, TOL));1834 assert(isequalRel(satrec.dmdt, -3.093486129009e-08, TOL));1835 assert(isequalRel(satrec.dnodt, 1.298165842561e-07, TOL));1836 assert(isequalRel(satrec.domdt, -1.214482290414e-07, TOL));1837 assert(isequalRel(satrec.e3, 1.917688589693e-04, TOL));1838 assert(isequalRel(satrec.ee2, 2.600403830731e-04, TOL));1839 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1840 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1841 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1842 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1843 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1844 assert(isequalRel(satrec.se2, -2.021959812118e-03, TOL));1845 assert(isequalRel(satrec.se3, 4.664465684109e-04, TOL));1846 assert(isequalRel(satrec.sgh2, -7.734435306744e-04, TOL));1847 assert(isequalRel(satrec.sgh3, -3.415977655410e-03, TOL));1848 assert(isequalRel(satrec.sgh4, -3.761802411036e-05, TOL));1849 assert(isequalRel(satrec.sh2, -2.320545150812e-04, TOL));1850 assert(isequalRel(satrec.sh3, -6.756286295110e-04, TOL));1851 assert(isequalRel(satrec.si2, -1.848221304876e-04, TOL));1852 assert(isequalRel(satrec.si3, 1.185722011180e-04, TOL));1853 assert(isequalRel(satrec.sl2, 1.207731977398e-03, TOL));1854 assert(isequalRel(satrec.sl3, 5.449750974362e-03, TOL));1855 assert(isequalRel(satrec.sl4, 1.229961546518e-04, TOL));1856 assert(isequalRel(satrec.gsto, 3.217495488339e+00, TOL));1857 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));1858 assert(isequalRel(satrec.xgh2, -3.210545596328e-04, TOL));1859 assert(isequalRel(satrec.xgh3, 4.292321013506e-04, TOL));1860 assert(isequalRel(satrec.xgh4, -1.980369121860e-05, TOL));1861 assert(isequalRel(satrec.xh2, -7.343991154683e-05, TOL));1862 assert(isequalRel(satrec.xh3, 1.243873320172e-04, TOL));1863 assert(isequalRel(satrec.xi2, 4.375268409065e-05, TOL));1864 assert(isequalRel(satrec.xi3, 1.339081864290e-05, TOL));1865 assert(isequalRel(satrec.xl2, 5.069978526244e-04, TOL));1866 assert(isequalRel(satrec.xl3, -6.661160092554e-04, TOL));1867 assert(isequalRel(satrec.xl4, 6.475028727329e-05, TOL));1868 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));1869 assert(isequalRel(satrec.zmol, 6.619375088630e-01, TOL));1870 assert(isequalRel(satrec.zmos, 2.893600055028e+00, TOL));1871 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1872 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));1873 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));1874 equal(satrec.method, "d");1875 equal(satrec.init, "n");1876 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));1877 assert(isequalRel(stopmfe, 7.200000000000e+02, TOL));1878 assert(isequalRel(deltamin, 2.000000000000e+01, TOL));1879});1880// 235991881test('1 24208U 96044A 06177.04061740 -.00000094 00000-0 10000-3 0 1600', function () {1882 var rets = twoline2rv(72,1883 '1 24208U 96044A 06177.04061740 -.00000094 00000-0 10000-3 0 1600',1884 '2 24208 3.8536 80.0121 0026640 311.0977 48.3000 1.00778054 36119 0.0 1440.0 120.00 ',1885 'v', 'e');1886 satrec = rets.shift(),1887 startmfe = rets.shift(),1888 stopmfe = rets.shift(),1889 deltamin = rets.shift(),1890 TOL = 0.000001;1891 equal(satrec.error, 0);1892 equal(satrec.satnum, 24208);1893 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));1894 assert(isequalRel(satrec.epochdays, 1.770406174000e+02, TOL));1895 assert(isequalRel(satrec.ndot, -2.848280376519e-12, TOL));1896 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));1897 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));1898 assert(isequalRel(satrec.inclo, 6.725800805485e-02, TOL));1899 assert(isequalRel(satrec.nodeo, 1.396474586435e+00, TOL));1900 assert(isequalRel(satrec.ecco, 2.664000000000e-03, TOL));1901 assert(isequalRel(satrec.argpo, 5.429679160382e+00, TOL));1902 assert(isequalRel(satrec.mo, 8.429940287133e-01, TOL));1903 assert(isequalRel(satrec.no, 4.397108759492e-03, TOL));1904 assert(isequalRel(satrec.a, 6.588667917946e+00, TOL));1905 assert(isequalRel(satrec.alta, 5.606220129279e+00, TOL));1906 assert(isequalRel(satrec.altp, 5.571115706612e+00, TOL));1907 assert(isequalRel(satrec.jdsatepoch, 2.453912540617e+06, TOL));1908 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));1909 assert(isequalRel(satrec.aycof, 7.880291502327e-05, TOL));1910 assert(isequalRel(satrec.con41, 1.986449532035e+00, TOL));1911 assert(isequalRel(satrec.cc1, 5.634192653482e-18, TOL));1912 assert(isequalRel(satrec.cc4, 8.790422114838e-16, TOL));1913 assert(isequalRel(satrec.cc5, 2.562217395482e-11, TOL));1914 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));1915 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));1916 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));1917 assert(isequalRel(satrec.delmo, 1.006294703824e+00, TOL));1918 assert(isequalRel(satrec.eta, 3.147552327709e-03, TOL));1919 assert(isequalRel(satrec.argpdot, 3.271746274001e-07, TOL));1920 assert(isequalRel(satrec.omgcof, 1.192347277720e-20, TOL));1921 assert(isequalRel(satrec.sinmao, 7.466381822854e-01, TOL));1922 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));1923 assert(isequalRel(satrec.t2cof, 8.451288980223e-18, TOL));1924 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));1925 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));1926 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));1927 assert(isequalRel(satrec.x1mth2, 4.516822655120e-03, TOL));1928 assert(isequalRel(satrec.x7thm1, 5.968382241414e+00, TOL));1929 assert(isequalRel(satrec.mdot, 4.397272137107e-03, TOL));1930 assert(isequalRel(satrec.nodedot, -1.641412021814e-07, TOL));1931 assert(isequalRel(satrec.xlcof, 1.575612369310e-04, TOL));1932 assert(isequalRel(satrec.xmcof, -1.545771663735e-11, TOL));1933 assert(isequalRel(satrec.nodecf, -3.236204349649e-24, TOL));1934 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));1935 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));1936 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));1937 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));1938 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));1939 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));1940 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));1941 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));1942 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));1943 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));1944 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));1945 assert(isequalRel(satrec.dedt, 9.928697389680e-11, TOL));1946 assert(isequalRel(satrec.del1, -6.446921893630e-13, TOL));1947 assert(isequalRel(satrec.del2, 1.431037712307e-11, TOL));1948 assert(isequalRel(satrec.del3, 2.011847944584e-12, TOL));1949 assert(isequalRel(satrec.didt, 3.031124826307e-08, TOL));1950 assert(isequalRel(satrec.dmdt, -1.325603345647e-07, TOL));1951 assert(isequalRel(satrec.dnodt, 1.822046740261e-08, TOL));1952 assert(isequalRel(satrec.domdt, 4.338936906528e-08, TOL));1953 assert(isequalRel(satrec.e3, -7.726902954388e-06, TOL));1954 assert(isequalRel(satrec.ee2, -5.176143424006e-07, TOL));1955 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));1956 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));1957 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));1958 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));1959 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));1960 assert(isequalRel(satrec.se2, 3.935674677679e-05, TOL));1961 assert(isequalRel(satrec.se3, 3.101303936462e-05, TOL));1962 assert(isequalRel(satrec.sgh2, -1.095943198289e-02, TOL));1963 assert(isequalRel(satrec.sgh3, 1.543789357065e-02, TOL));1964 assert(isequalRel(satrec.sgh4, -2.047755658748e-04, TOL));1965 assert(isequalRel(satrec.sh2, 1.170723269672e-03, TOL));1966 assert(isequalRel(satrec.sh3, -1.086189670839e-03, TOL));1967 assert(isequalRel(satrec.si2, -1.002689875952e-03, TOL));1968 assert(isequalRel(satrec.si3, -1.074034874057e-03, TOL));1969 assert(isequalRel(satrec.sl2, 1.012379841762e-02, TOL));1970 assert(isequalRel(satrec.sl3, -1.636988036209e-02, TOL));1971 assert(isequalRel(satrec.sl4, 4.778128024756e-04, TOL));1972 assert(isequalRel(satrec.gsto, 5.037771726289e+00, TOL));1973 assert(isequalRel(satrec.xfact, -4.375013627469e-03, TOL));1974 assert(isequalRel(satrec.xgh2, 2.915576106025e-03, TOL));1975 assert(isequalRel(satrec.xgh3, -4.189146928255e-04, TOL));1976 assert(isequalRel(satrec.xgh4, -1.078023679235e-04, TOL));1977 assert(isequalRel(satrec.xh2, -3.065019513911e-04, TOL));1978 assert(isequalRel(satrec.xh3, -3.781667774154e-05, TOL));1979 assert(isequalRel(satrec.xi2, -2.998211222471e-05, TOL));1980 assert(isequalRel(satrec.xi3, 2.707830507804e-04, TOL));1981 assert(isequalRel(satrec.xl2, -2.963865666279e-03, TOL));1982 assert(isequalRel(satrec.xl3, 7.064676449674e-04, TOL));1983 assert(isequalRel(satrec.xl4, 2.515405161303e-04, TOL));1984 assert(isequalRel(satrec.xlamo, 2.631376049241e+00, TOL));1985 assert(isequalRel(satrec.zmol, 1.864840548802e+00, TOL));1986 assert(isequalRel(satrec.zmos, 2.984345003862e+00, TOL));1987 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));1988 assert(isequalRel(satrec.xli, 2.631376049241e+00, TOL));1989 assert(isequalRel(satrec.xni, 4.397108759492e-03, TOL));1990 equal(satrec.method, "d");1991 equal(satrec.init, "n");1992 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));1993 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));1994 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));1995});1996// 242081997test('1 25954U 99060A 04039.68057285 -.00000108 00000-0 00000-0 0 6847', function () {1998 var rets = twoline2rv(72,1999 '1 25954U 99060A 04039.68057285 -.00000108 00000-0 00000-0 0 6847',2000 '2 25954 0.0004 243.8136 0001765 15.5294 22.7134 1.00271289 15615 -1440.0 1440.0 120.00 ',2001 'v', 'e');2002 satrec = rets.shift(),2003 startmfe = rets.shift(),2004 stopmfe = rets.shift(),2005 deltamin = rets.shift(),2006 TOL = 0.000001;2007 equal(satrec.error, 0);2008 equal(satrec.satnum, 25954);2009 assert(isequalRel(satrec.epochyr, 4.000000000000e+00, TOL));2010 assert(isequalRel(satrec.epochdays, 3.968057285000e+01, TOL));2011 assert(isequalRel(satrec.ndot, -3.272492347489e-12, TOL));2012 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2013 assert(isequalRel(satrec.bstar, 0.000000000000e+00, TOL));2014 assert(isequalRel(satrec.inclo, 6.981317007977e-06, TOL));2015 assert(isequalRel(satrec.nodeo, 4.255350081140e+00, TOL));2016 assert(isequalRel(satrec.ecco, 1.765000000000e-04, TOL));2017 assert(isequalRel(satrec.argpo, 2.710391608592e-01, TOL));2018 assert(isequalRel(satrec.mo, 3.964236143225e-01, TOL));2019 assert(isequalRel(satrec.no, 4.374997775854e-03, TOL));2020 assert(isequalRel(satrec.a, 6.610848412423e+00, TOL));2021 assert(isequalRel(satrec.alta, 5.612015227168e+00, TOL));2022 assert(isequalRel(satrec.altp, 5.609681597679e+00, TOL));2023 assert(isequalRel(satrec.jdsatepoch, 2.453044180573e+06, TOL));2024 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2025 assert(isequalRel(satrec.aycof, 8.185837560538e-09, TOL));2026 assert(isequalRel(satrec.con41, 1.999999999854e+00, TOL));2027 assert(isequalRel(satrec.cc1, 0.000000000000e+00, TOL));2028 assert(isequalRel(satrec.cc4, 7.533441570767e-17, TOL));2029 assert(isequalRel(satrec.cc5, 2.530147989142e-11, TOL));2030 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2031 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2032 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2033 assert(isequalRel(satrec.delmo, 1.000576853575e+00, TOL));2034 assert(isequalRel(satrec.eta, 2.084102332028e-04, TOL));2035 assert(isequalRel(satrec.argpdot, 3.251801634695e-07, TOL));2036 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));2037 assert(isequalRel(satrec.sinmao, 3.861217895520e-01, TOL));2038 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2039 assert(isequalRel(satrec.t2cof, 0.000000000000e+00, TOL));2040 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2041 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2042 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2043 assert(isequalRel(satrec.x1mth2, 4.873879078104e-11, TOL));2044 assert(isequalRel(satrec.x7thm1, 5.999999999659e+00, TOL));2045 assert(isequalRel(satrec.mdot, 4.375160342650e-03, TOL));2046 assert(isequalRel(satrec.nodedot, -1.625870617371e-07, TOL));2047 assert(isequalRel(satrec.xlcof, 1.637167512103e-08, TOL));2048 assert(isequalRel(satrec.xmcof, -0.000000000000e+00, TOL));2049 assert(isequalRel(satrec.nodecf, -0.000000000000e+00, TOL));2050 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));2051 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2052 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2053 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2054 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2055 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2056 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2057 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2058 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2059 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2060 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2061 assert(isequalRel(satrec.dedt, 3.553156778959e-12, TOL));2062 assert(isequalRel(satrec.del1, -6.397483834459e-13, TOL));2063 assert(isequalRel(satrec.del2, 1.410403339869e-11, TOL));2064 assert(isequalRel(satrec.del3, 1.978471517958e-12, TOL));2065 assert(isequalRel(satrec.didt, -2.555341579158e-08, TOL));2066 assert(isequalRel(satrec.dmdt, -9.603349062976e-08, TOL));2067 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2068 assert(isequalRel(satrec.domdt, 2.359014000576e-08, TOL));2069 assert(isequalRel(satrec.e3, -1.443253711966e-07, TOL));2070 assert(isequalRel(satrec.ee2, -4.967861523155e-07, TOL));2071 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2072 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2073 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2074 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2075 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2076 assert(isequalRel(satrec.se2, -2.393510838524e-06, TOL));2077 assert(isequalRel(satrec.se3, 2.297499314735e-06, TOL));2078 assert(isequalRel(satrec.sgh2, -1.264715658450e-02, TOL));2079 assert(isequalRel(satrec.sgh3, -1.273189516222e-02, TOL));2080 assert(isequalRel(satrec.sgh4, -2.058112167495e-04, TOL));2081 assert(isequalRel(satrec.sh2, -1.099705176855e-03, TOL));2082 assert(isequalRel(satrec.sh3, 1.167960133285e-03, TOL));2083 assert(isequalRel(satrec.si2, 1.176752281702e-03, TOL));2084 assert(isequalRel(satrec.si3, 9.654718969481e-04, TOL));2085 assert(isequalRel(satrec.sl2, 1.215221622343e-02, TOL));2086 assert(isequalRel(satrec.sl3, 1.153344263874e-02, TOL));2087 assert(isequalRel(satrec.sl4, 4.802261863070e-04, TOL));2088 assert(isequalRel(satrec.gsto, 4.036986406591e-01, TOL));2089 assert(isequalRel(satrec.xfact, -4.375016371464e-03, TOL));2090 assert(isequalRel(satrec.xgh2, 6.708089970693e-04, TOL));2091 assert(isequalRel(satrec.xgh3, -2.691818508104e-03, TOL));2092 assert(isequalRel(satrec.xgh4, -1.083475775834e-04, TOL));2093 assert(isequalRel(satrec.xh2, -2.688548161140e-04, TOL));2094 assert(isequalRel(satrec.xh3, -1.120931668890e-04, TOL));2095 assert(isequalRel(satrec.xi2, -7.859155231505e-05, TOL));2096 assert(isequalRel(satrec.xi3, 2.677016040710e-04, TOL));2097 assert(isequalRel(satrec.xl2, -4.478395208697e-04, TOL));2098 assert(isequalRel(satrec.xl3, 2.528608623316e-03, TOL));2099 assert(isequalRel(satrec.xl4, 2.528110216744e-04, TOL));2100 assert(isequalRel(satrec.xlamo, 4.519114215663e+00, TOL));2101 assert(isequalRel(satrec.zmol, 4.917119876491e+00, TOL));2102 assert(isequalRel(satrec.zmos, 6.132061041587e-01, TOL));2103 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2104 assert(isequalRel(satrec.xli, 4.519114215663e+00, TOL));2105 assert(isequalRel(satrec.xni, 4.374997775854e-03, TOL));2106 equal(satrec.method, "d");2107 equal(satrec.init, "n");2108 assert(isequalRel(startmfe, -1.440000000000e+03, TOL));2109 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));2110 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));2111});2112// 259542113test('1 26900U 01039A 06106.74503247 .00000045 00000-0 10000-3 0 8290', function () {2114 var rets = twoline2rv(72,2115 '1 26900U 01039A 06106.74503247 .00000045 00000-0 10000-3 0 8290',2116 '2 26900 0.0164 266.5378 0003319 86.1794 182.2590 1.00273847 16981 9300.00 9400.00 60.00 ',2117 'v', 'e');2118 satrec = rets.shift(),2119 startmfe = rets.shift(),2120 stopmfe = rets.shift(),2121 deltamin = rets.shift(),2122 TOL = 0.000001;2123 equal(satrec.error, 0);2124 equal(satrec.satnum, 26900);2125 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2126 assert(isequalRel(satrec.epochdays, 1.067450324700e+02, TOL));2127 assert(isequalRel(satrec.ndot, 1.363538478121e-12, TOL));2128 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2129 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2130 assert(isequalRel(satrec.inclo, 2.862339973271e-04, TOL));2131 assert(isequalRel(satrec.nodeo, 4.651962191022e+00, TOL));2132 assert(isequalRel(satrec.ecco, 3.319000000000e-04, TOL));2133 assert(isequalRel(satrec.argpo, 1.504114277393e+00, TOL));2134 assert(isequalRel(satrec.mo, 3.181019641392e+00, TOL));2135 assert(isequalRel(satrec.no, 4.375109379983e-03, TOL));2136 assert(isequalRel(satrec.a, 6.610735982828e+00, TOL));2137 assert(isequalRel(satrec.alta, 5.612930086100e+00, TOL));2138 assert(isequalRel(satrec.altp, 5.608541879555e+00, TOL));2139 assert(isequalRel(satrec.jdsatepoch, 2.453842245032e+06, TOL));2140 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2141 assert(isequalRel(satrec.aycof, 3.356193354019e-07, TOL));2142 assert(isequalRel(satrec.con41, 1.999999754210e+00, TOL));2143 assert(isequalRel(satrec.cc1, 5.536164233960e-18, TOL));2144 assert(isequalRel(satrec.cc4, 1.245710890009e-16, TOL));2145 assert(isequalRel(satrec.cc5, 2.530310386868e-11, TOL));2146 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2147 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2148 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2149 assert(isequalRel(satrec.delmo, 9.988256529794e-01, TOL));2150 assert(isequalRel(satrec.eta, 3.919069069565e-04, TOL));2151 assert(isequalRel(satrec.argpdot, 3.251995395495e-07, TOL));2152 assert(isequalRel(satrec.omgcof, 4.030634987259e-23, TOL));2153 assert(isequalRel(satrec.sinmao, -3.941677380405e-02, TOL));2154 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2155 assert(isequalRel(satrec.t2cof, 8.304246350939e-18, TOL));2156 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2157 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2158 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2159 assert(isequalRel(satrec.x1mth2, 8.192989897626e-08, TOL));2160 assert(isequalRel(satrec.x7thm1, 5.999999426491e+00, TOL));2161 assert(isequalRel(satrec.mdot, 4.375271956456e-03, TOL));2162 assert(isequalRel(satrec.nodedot, -1.625967594802e-07, TOL));2163 assert(isequalRel(satrec.xlcof, 6.712386673667e-07, TOL));2164 assert(isequalRel(satrec.xmcof, -9.808470215307e-10, TOL));2165 assert(isequalRel(satrec.nodecf, -3.149999696385e-24, TOL));2166 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));2167 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2168 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2169 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2170 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2171 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2172 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2173 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2174 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2175 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2176 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2177 assert(isequalRel(satrec.dedt, -3.521807114582e-12, TOL));2178 assert(isequalRel(satrec.del1, -6.398136216901e-13, TOL));2179 assert(isequalRel(satrec.del2, 1.410522936173e-11, TOL));2180 assert(isequalRel(satrec.del3, 1.978672345716e-12, TOL));2181 assert(isequalRel(satrec.didt, -3.073811485140e-08, TOL));2182 assert(isequalRel(satrec.dmdt, -1.613621211138e-07, TOL));2183 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2184 assert(isequalRel(satrec.domdt, 9.088792566710e-08, TOL));2185 assert(isequalRel(satrec.e3, -4.297357109584e-07, TOL));2186 assert(isequalRel(satrec.ee2, -8.575863014313e-07, TOL));2187 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2188 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2189 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2190 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2191 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2192 assert(isequalRel(satrec.se2, 4.977710503291e-06, TOL));2193 assert(isequalRel(satrec.se3, -3.758122880832e-06, TOL));2194 assert(isequalRel(satrec.sgh2, 1.170238813200e-02, TOL));2195 assert(isequalRel(satrec.sgh3, 1.596617407202e-02, TOL));2196 assert(isequalRel(satrec.sgh4, -2.058059586065e-04, TOL));2197 assert(isequalRel(satrec.sh2, -1.469489949578e-03, TOL));2198 assert(isequalRel(satrec.sh3, 7.031457064751e-04, TOL));2199 assert(isequalRel(satrec.si2, 6.596584265507e-04, TOL));2200 assert(isequalRel(satrec.si3, 1.342180142943e-03, TOL));2201 assert(isequalRel(satrec.sl2, -1.219566699304e-02, TOL));2202 assert(isequalRel(satrec.sl3, -1.716537238492e-02, TOL));2203 assert(isequalRel(satrec.sl4, 4.802139525359e-04, TOL));2204 assert(isequalRel(satrec.gsto, 1.971276525301e+00, TOL));2205 assert(isequalRel(satrec.xfact, -4.375014382954e-03, TOL));2206 assert(isequalRel(satrec.xgh2, 1.468610866371e-03, TOL));2207 assert(isequalRel(satrec.xgh3, -2.762771903365e-03, TOL));2208 assert(isequalRel(satrec.xgh4, -1.083448094784e-04, TOL));2209 assert(isequalRel(satrec.xh2, 2.443977229280e-04, TOL));2210 assert(isequalRel(satrec.xh3, 1.980068154638e-04, TOL));2211 assert(isequalRel(satrec.xi2, 1.700595365594e-04, TOL));2212 assert(isequalRel(satrec.xi3, -2.181240526799e-04, TOL));2213 assert(isequalRel(satrec.xl2, -1.672610170679e-03, TOL));2214 assert(isequalRel(satrec.xl3, 2.984308463316e-03, TOL));2215 assert(isequalRel(satrec.xl4, 2.528045813088e-04, TOL));2216 assert(isequalRel(satrec.xlamo, 1.082634277327e+00, TOL));2217 assert(isequalRel(satrec.zmol, 4.685095846573e+00, TOL));2218 assert(isequalRel(satrec.zmos, 1.775121968701e+00, TOL));2219 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2220 assert(isequalRel(satrec.xli, 1.082634277327e+00, TOL));2221 assert(isequalRel(satrec.xni, 4.375109379983e-03, TOL));2222 equal(satrec.method, "d");2223 equal(satrec.init, "n");2224 assert(isequalRel(startmfe, 9.300000000000e+03, TOL));2225 assert(isequalRel(stopmfe, 9.400000000000e+03, TOL));2226 assert(isequalRel(deltamin, 6.000000000000e+01, TOL));2227});2228// 269002229test('1 26975U 78066F 06174.85818871 .00000620 00000-0 10000-3 0 6809', function () {2230 var rets = twoline2rv(72,2231 '1 26975U 78066F 06174.85818871 .00000620 00000-0 10000-3 0 6809',2232 '2 26975 68.4714 236.1303 5602877 123.7484 302.5767 2.05657553 67521 0.0 2880.0 120.00 ',2233 'v', 'e');2234 satrec = rets.shift(),2235 startmfe = rets.shift(),2236 stopmfe = rets.shift(),2237 deltamin = rets.shift(),2238 TOL = 0.000001;2239 equal(satrec.error, 0);2240 equal(satrec.satnum, 26975);2241 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2242 assert(isequalRel(satrec.epochdays, 1.748581887100e+02, TOL));2243 assert(isequalRel(satrec.ndot, 1.878653014299e-11, TOL));2244 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2245 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2246 assert(isequalRel(satrec.inclo, 1.195051373450e+00, TOL));2247 assert(isequalRel(satrec.nodeo, 4.121251198722e+00, TOL));2248 assert(isequalRel(satrec.ecco, 5.602877000000e-01, TOL));2249 assert(isequalRel(satrec.argpo, 2.159817024075e+00, TOL));2250 assert(isequalRel(satrec.mo, 5.280959654819e+00, TOL));2251 assert(isequalRel(satrec.no, 8.973959238486e-03, TOL));2252 assert(isequalRel(satrec.a, 4.095231791940e+00, TOL));2253 assert(isequalRel(satrec.alta, 5.389739793613e+00, TOL));2254 assert(isequalRel(satrec.altp, 8.007237902671e-01, TOL));2255 assert(isequalRel(satrec.jdsatepoch, 2.453910358189e+06, TOL));2256 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2257 assert(isequalRel(satrec.aycof, 1.090732388372e-03, TOL));2258 assert(isequalRel(satrec.con41, -5.960087184875e-01, TOL));2259 assert(isequalRel(satrec.cc1, 4.811273805740e-15, TOL));2260 assert(isequalRel(satrec.cc4, 4.594680777195e-11, TOL));2261 assert(isequalRel(satrec.cc5, 7.696169715955e-09, TOL));2262 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2263 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2264 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2265 assert(isequalRel(satrec.delmo, 2.748275216336e+00, TOL));2266 assert(isequalRel(satrec.eta, 7.442528818758e-01, TOL));2267 assert(isequalRel(satrec.argpdot, -3.016738966805e-07, TOL));2268 assert(isequalRel(satrec.omgcof, -2.621335469760e-20, TOL));2269 assert(isequalRel(satrec.sinmao, -8.426714247932e-01, TOL));2270 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2271 assert(isequalRel(satrec.t2cof, 7.216910708610e-15, TOL));2272 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2273 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2274 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2275 assert(isequalRel(satrec.x1mth2, 8.653362394958e-01, TOL));2276 assert(isequalRel(satrec.x7thm1, -5.735367647089e-02, TOL));2277 assert(isequalRel(satrec.mdot, 8.973503564981e-03, TOL));2278 assert(isequalRel(satrec.nodedot, -6.772847467554e-07, TOL));2279 assert(isequalRel(satrec.xlcof, 1.928908639400e-03, TOL));2280 assert(isequalRel(satrec.xmcof, -3.327990358418e-15, TOL));2281 assert(isequalRel(satrec.nodecf, -7.827127474091e-21, TOL));2282 assert(isequalRel(satrec.irez, 2.000000000000e+00, TOL));2283 assert(isequalRel(satrec.d2201, -9.786807233862e-12, TOL));2284 assert(isequalRel(satrec.d2211, 4.375070167297e-11, TOL));2285 assert(isequalRel(satrec.d3210, -7.299736059955e-13, TOL));2286 assert(isequalRel(satrec.d3222, -3.088972920727e-12, TOL));2287 assert(isequalRel(satrec.d4410, 1.175930799908e-12, TOL));2288 assert(isequalRel(satrec.d4422, 1.666014658389e-12, TOL));2289 assert(isequalRel(satrec.d5220, -5.223073387126e-13, TOL));2290 assert(isequalRel(satrec.d5232, -4.239623278319e-14, TOL));2291 assert(isequalRel(satrec.d5421, -5.046358599919e-13, TOL));2292 assert(isequalRel(satrec.d5433, -3.893572552863e-13, TOL));2293 assert(isequalRel(satrec.dedt, -3.971152052616e-08, TOL));2294 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2295 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2296 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2297 assert(isequalRel(satrec.didt, 9.978447336132e-10, TOL));2298 assert(isequalRel(satrec.dmdt, 2.773996268752e-09, TOL));2299 assert(isequalRel(satrec.dnodt, -6.124174505388e-09, TOL));2300 assert(isequalRel(satrec.domdt, 1.574985894206e-08, TOL));2301 assert(isequalRel(satrec.e3, -2.267021997425e-04, TOL));2302 assert(isequalRel(satrec.ee2, -2.551224465045e-04, TOL));2303 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2304 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2305 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2306 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2307 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2308 assert(isequalRel(satrec.se2, 2.254910627255e-03, TOL));2309 assert(isequalRel(satrec.se3, -2.280386619192e-04, TOL));2310 assert(isequalRel(satrec.sgh2, -3.389917058225e-03, TOL));2311 assert(isequalRel(satrec.sgh3, 1.654422300963e-03, TOL));2312 assert(isequalRel(satrec.sgh4, -8.310926481500e-05, TOL));2313 assert(isequalRel(satrec.sh2, -9.721139826925e-04, TOL));2314 assert(isequalRel(satrec.sh3, -2.919237403379e-03, TOL));2315 assert(isequalRel(satrec.si2, 6.537866741737e-04, TOL));2316 assert(isequalRel(satrec.si3, 3.149325116495e-03, TOL));2317 assert(isequalRel(satrec.sl2, 9.242202107515e-03, TOL));2318 assert(isequalRel(satrec.sl3, -3.312631236734e-03, TOL));2319 assert(isequalRel(satrec.sl4, 2.656187161612e-04, TOL));2320 assert(isequalRel(satrec.gsto, 3.853994597295e+00, TOL));2321 assert(isequalRel(satrec.xfact, -8.752357893374e-03, TOL));2322 assert(isequalRel(satrec.xgh2, 5.870668970928e-04, TOL));2323 assert(isequalRel(satrec.xgh3, 3.411079917117e-04, TOL));2324 assert(isequalRel(satrec.xgh4, -4.375217084695e-05, TOL));2325 assert(isequalRel(satrec.xh2, -2.939157970135e-04, TOL));2326 assert(isequalRel(satrec.xh3, 4.419605173894e-04, TOL));2327 assert(isequalRel(satrec.xi2, 3.177266725877e-04, TOL));2328 assert(isequalRel(satrec.xi3, -4.193605290405e-04, TOL));2329 assert(isequalRel(satrec.xl2, -1.435489158349e-03, TOL));2330 assert(isequalRel(satrec.xl3, -9.317921317489e-04, TOL));2331 assert(isequalRel(satrec.xl4, 1.398327307491e-04, TOL));2332 assert(isequalRel(satrec.xlamo, 5.815472857673e+00, TOL));2333 assert(isequalRel(satrec.zmol, 1.367187593900e+00, TOL));2334 assert(isequalRel(satrec.zmos, 2.946802915738e+00, TOL));2335 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2336 assert(isequalRel(satrec.xli, 5.815472857673e+00, TOL));2337 assert(isequalRel(satrec.xni, 8.973959238486e-03, TOL));2338 equal(satrec.method, "d");2339 equal(satrec.init, "n");2340 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));2341 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));2342 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));2343});2344// 269752345test('1 28057U 03049A 06177.78615833 .00000060 00000-0 35940-4 0 1836', function () {2346 var rets = twoline2rv(72,2347 '1 28057U 03049A 06177.78615833 .00000060 00000-0 35940-4 0 1836',2348 '2 28057 98.4283 247.6961 0000884 88.1964 271.9322 14.35478080140550 0.0 2880.0 120.00 ',2349 'v', 'e');2350 satrec = rets.shift(),2351 startmfe = rets.shift(),2352 stopmfe = rets.shift(),2353 deltamin = rets.shift(),2354 TOL = 0.000001;2355 equal(satrec.error, 0);2356 equal(satrec.satnum, 28057);2357 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2358 assert(isequalRel(satrec.epochdays, 1.777861583300e+02, TOL));2359 assert(isequalRel(satrec.ndot, 1.818051304161e-12, TOL));2360 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2361 assert(isequalRel(satrec.bstar, 3.594000000000e-05, TOL));2362 assert(isequalRel(satrec.inclo, 1.717897912141e+00, TOL));2363 assert(isequalRel(satrec.nodeo, 4.323112489349e+00, TOL));2364 assert(isequalRel(satrec.ecco, 8.840000000000e-05, TOL));2365 assert(isequalRel(satrec.argpo, 1.539317568406e+00, TOL));2366 assert(isequalRel(satrec.mo, 4.746112232192e+00, TOL));2367 assert(isequalRel(satrec.no, 6.267239862091e-02, TOL));2368 assert(isequalRel(satrec.a, 1.121270907313e+00, TOL));2369 assert(isequalRel(satrec.alta, 1.213700276612e-01, TOL));2370 assert(isequalRel(satrec.altp, 1.211717869648e-01, TOL));2371 assert(isequalRel(satrec.jdsatepoch, 2.453913286158e+06, TOL));2372 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));2373 assert(isequalRel(satrec.aycof, 1.159871551252e-03, TOL));2374 assert(isequalRel(satrec.con41, -9.355502628635e-01, TOL));2375 assert(isequalRel(satrec.cc1, 3.328688812461e-11, TOL));2376 assert(isequalRel(satrec.cc4, -4.387798057377e-08, TOL));2377 assert(isequalRel(satrec.cc5, 3.031301664072e-05, TOL));2378 assert(isequalRel(satrec.d2, 4.574585313329e-20, TOL));2379 assert(isequalRel(satrec.d3, 9.379455598865e-29, TOL));2380 assert(isequalRel(satrec.d4, 2.240943706149e-37, TOL));2381 assert(isequalRel(satrec.delmo, 1.000092295250e+00, TOL));2382 assert(isequalRel(satrec.eta, 9.124259161262e-04, TOL));2383 assert(isequalRel(satrec.argpdot, -3.607711622942e-05, TOL));2384 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));2385 assert(isequalRel(satrec.sinmao, -9.994314250315e-01, TOL));2386 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2387 assert(isequalRel(satrec.t2cof, 4.993033218692e-11, TOL));2388 assert(isequalRel(satrec.t3cof, 4.796188697533e-20, TOL));2389 assert(isequalRel(satrec.t4cof, 7.500633436595e-29, TOL));2390 assert(isequalRel(satrec.t5cof, 1.447687575846e-37, TOL));2391 assert(isequalRel(satrec.x1mth2, 9.785167542878e-01, TOL));2392 assert(isequalRel(satrec.x7thm1, -8.496172800149e-01, TOL));2393 assert(isequalRel(satrec.mdot, 6.263452620104e-02, TOL));2394 assert(isequalRel(satrec.nodedot, 1.183970648571e-05, TOL));2395 assert(isequalRel(satrec.xlcof, 1.540605749216e-03, TOL));2396 assert(isequalRel(satrec.xmcof, 0.000000000000e+00, TOL));2397 assert(isequalRel(satrec.nodecf, 1.383445114983e-15, TOL));2398 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2399 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2400 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2401 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2402 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2403 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2404 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2405 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2406 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2407 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2408 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2409 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));2410 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2411 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2412 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2413 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));2414 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));2415 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2416 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));2417 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));2418 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));2419 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2420 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2421 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2422 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2423 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2424 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));2425 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));2426 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));2427 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));2428 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));2429 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));2430 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));2431 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));2432 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));2433 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));2434 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));2435 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));2436 assert(isequalRel(satrec.gsto, 3.451783621544e+00, TOL));2437 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2438 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));2439 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));2440 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));2441 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));2442 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));2443 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));2444 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));2445 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));2446 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));2447 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));2448 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2449 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));2450 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));2451 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2452 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2453 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2454 equal(satrec.method, "n");2455 equal(satrec.init, "n");2456 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));2457 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));2458 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));2459});2460// 280572461test('1 28129U 03058A 06175.57071136 -.00000104 00000-0 10000-3 0 459', function () {2462 var rets = twoline2rv(72,2463 '1 28129U 03058A 06175.57071136 -.00000104 00000-0 10000-3 0 459',2464 '2 28129 54.7298 324.8098 0048506 266.2640 93.1663 2.00562768 18443 0.0 1440.0 120.00 ',2465 'v', 'e');2466 satrec = rets.shift(),2467 startmfe = rets.shift(),2468 stopmfe = rets.shift(),2469 deltamin = rets.shift(),2470 TOL = 0.000001;2471 equal(satrec.error, 0);2472 equal(satrec.satnum, 28129);2473 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2474 assert(isequalRel(satrec.epochdays, 1.755707113600e+02, TOL));2475 assert(isequalRel(satrec.ndot, -3.151288927212e-12, TOL));2476 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2477 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2478 assert(isequalRel(satrec.inclo, 9.552152089580e-01, TOL));2479 assert(isequalRel(satrec.nodeo, 5.669000452744e+00, TOL));2480 assert(isequalRel(satrec.ecco, 4.850600000000e-03, TOL));2481 assert(isequalRel(satrec.argpo, 4.647183479530e+00, TOL));2482 assert(isequalRel(satrec.mo, 1.626058686901e+00, TOL));2483 assert(isequalRel(satrec.no, 8.751201528747e-03, TOL));2484 assert(isequalRel(satrec.a, 4.164294042188e+00, TOL));2485 assert(isequalRel(satrec.alta, 3.184493366869e+00, TOL));2486 assert(isequalRel(satrec.altp, 3.144094717507e+00, TOL));2487 assert(isequalRel(satrec.jdsatepoch, 2.453911070711e+06, TOL));2488 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2489 assert(isequalRel(satrec.aycof, 9.573020490049e-04, TOL));2490 assert(isequalRel(satrec.con41, 2.868387191268e-04, TOL));2491 assert(isequalRel(satrec.cc1, 6.943749715587e-17, TOL));2492 assert(isequalRel(satrec.cc4, 2.116354478564e-14, TOL));2493 assert(isequalRel(satrec.cc5, 1.586907226023e-10, TOL));2494 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2495 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2496 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2497 assert(isequalRel(satrec.delmo, 9.989385058711e-01, TOL));2498 assert(isequalRel(satrec.eta, 6.408283505618e-03, TOL));2499 assert(isequalRel(satrec.argpdot, 2.733167532830e-07, TOL));2500 assert(isequalRel(satrec.omgcof, -2.720221625576e-19, TOL));2501 assert(isequalRel(satrec.sinmao, 9.984734243415e-01, TOL));2502 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2503 assert(isequalRel(satrec.t2cof, 1.041562457338e-16, TOL));2504 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2505 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2506 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2507 assert(isequalRel(satrec.x1mth2, 6.665710537603e-01, TOL));2508 assert(isequalRel(satrec.x7thm1, 1.334002623678e+00, TOL));2509 assert(isequalRel(satrec.mdot, 8.751201649839e-03, TOL));2510 assert(isequalRel(satrec.nodedot, -4.732303306962e-07, TOL));2511 assert(isequalRel(satrec.xlcof, 1.786381798147e-03, TOL));2512 assert(isequalRel(satrec.xmcof, -4.085200213224e-11, TOL));2513 assert(isequalRel(satrec.nodecf, -1.150070791226e-22, TOL));2514 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2515 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2516 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2517 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2518 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2519 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2520 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2521 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2522 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2523 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2524 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2525 assert(isequalRel(satrec.dedt, -1.106805331423e-10, TOL));2526 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2527 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2528 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2529 assert(isequalRel(satrec.didt, -8.158095760647e-09, TOL));2530 assert(isequalRel(satrec.dmdt, -2.274847457650e-08, TOL));2531 assert(isequalRel(satrec.dnodt, -1.962977385408e-08, TOL));2532 assert(isequalRel(satrec.domdt, 8.552991333113e-09, TOL));2533 assert(isequalRel(satrec.e3, -3.876849228949e-06, TOL));2534 assert(isequalRel(satrec.ee2, 5.421891510864e-06, TOL));2535 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2536 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2537 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2538 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2539 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2540 assert(isequalRel(satrec.se2, -2.399586065802e-06, TOL));2541 assert(isequalRel(satrec.se3, 3.979795711446e-05, TOL));2542 assert(isequalRel(satrec.sgh2, -7.340466124056e-03, TOL));2543 assert(isequalRel(satrec.sgh3, -9.267102539452e-04, TOL));2544 assert(isequalRel(satrec.sgh4, -1.028902184234e-04, TOL));2545 assert(isequalRel(satrec.sh2, 1.019818515817e-03, TOL));2546 assert(isequalRel(satrec.sh3, -1.260734846663e-04, TOL));2547 assert(isequalRel(satrec.si2, -3.379233009896e-04, TOL));2548 assert(isequalRel(satrec.si3, -1.160185387548e-03, TOL));2549 assert(isequalRel(satrec.sl2, 6.096109975713e-03, TOL));2550 assert(isequalRel(satrec.sl3, 1.773703432654e-03, TOL));2551 assert(isequalRel(satrec.sl4, 2.400824215399e-04, TOL));2552 assert(isequalRel(satrec.gsto, 2.059978512381e+00, TOL));2553 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2554 assert(isequalRel(satrec.xgh2, 6.595724207569e-04, TOL));2555 assert(isequalRel(satrec.xgh3, 1.091630835372e-03, TOL));2556 assert(isequalRel(satrec.xgh4, -5.416568688173e-05, TOL));2557 assert(isequalRel(satrec.xh2, -1.288582105817e-04, TOL));2558 assert(isequalRel(satrec.xh3, -9.703376083569e-05, TOL));2559 assert(isequalRel(satrec.xi2, -8.270003713552e-05, TOL));2560 assert(isequalRel(satrec.xi3, 1.575914794162e-04, TOL));2561 assert(isequalRel(satrec.xl2, -4.514061623044e-04, TOL));2562 assert(isequalRel(satrec.xl3, -1.081448579815e-03, TOL));2563 assert(isequalRel(satrec.xl4, 1.263893640252e-04, TOL));2564 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2565 assert(isequalRel(satrec.zmol, 1.529662090192e+00, TOL));2566 assert(isequalRel(satrec.zmos, 2.959059713970e+00, TOL));2567 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2568 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2569 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2570 equal(satrec.method, "d");2571 equal(satrec.init, "n");2572 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));2573 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));2574 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));2575});2576// 281292577test('1 28350U 04020A 06167.21788666 .16154492 76267-5 18678-3 0 8894', function () {2578 var rets = twoline2rv(72,2579 '1 28350U 04020A 06167.21788666 .16154492 76267-5 18678-3 0 8894',2580 '2 28350 64.9977 345.6130 0024870 260.7578 99.9590 16.47856722116490 0.0 2880.0 120.00 ',2581 'v', 'e');2582 satrec = rets.shift(),2583 startmfe = rets.shift(),2584 stopmfe = rets.shift(),2585 deltamin = rets.shift(),2586 TOL = 0.000001;2587 equal(satrec.error, 0);2588 equal(satrec.satnum, 28350);2589 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2590 assert(isequalRel(satrec.epochdays, 1.672178866600e+02, TOL));2591 assert(isequalRel(satrec.ndot, 4.894949208109e-07, TOL));2592 assert(isequalRel(satrec.nddot, 1.604830078871e-14, TOL));2593 assert(isequalRel(satrec.bstar, 1.867800000000e-04, TOL));2594 assert(isequalRel(satrec.inclo, 1.134423871224e+00, TOL));2595 assert(isequalRel(satrec.nodeo, 6.032084787695e+00, TOL));2596 assert(isequalRel(satrec.ecco, 2.487000000000e-03, TOL));2597 assert(isequalRel(satrec.argpo, 4.551082160257e+00, TOL));2598 assert(isequalRel(satrec.mo, 1.744613667001e+00, TOL));2599 assert(isequalRel(satrec.no, 7.192721985507e-02, TOL));2600 assert(isequalRel(satrec.a, 1.022732284475e+00, TOL));2601 assert(isequalRel(satrec.alta, 2.527581966614e-02, TOL));2602 assert(isequalRel(satrec.altp, 2.018874928316e-02, TOL));2603 assert(isequalRel(satrec.jdsatepoch, 2.453902717887e+06, TOL));2604 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2605 assert(isequalRel(satrec.aycof, 1.062657581303e-03, TOL));2606 assert(isequalRel(satrec.con41, -4.640891584380e-01, TOL));2607 assert(isequalRel(satrec.cc1, 4.544683509554e-06, TOL));2608 assert(isequalRel(satrec.cc4, 1.268170994709e-02, TOL));2609 assert(isequalRel(satrec.cc5, 7.841276141148e-01, TOL));2610 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2611 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2612 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2613 assert(isequalRel(satrec.delmo, 9.133197917493e-01, TOL));2614 assert(isequalRel(satrec.eta, 1.721425121901e-01, TOL));2615 assert(isequalRel(satrec.argpdot, -6.065080248370e-06, TOL));2616 assert(isequalRel(satrec.omgcof, -7.957944273337e-05, TOL));2617 assert(isequalRel(satrec.sinmao, 9.849317608904e-01, TOL));2618 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2619 assert(isequalRel(satrec.t2cof, 6.817025264331e-06, TOL));2620 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2621 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2622 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2623 assert(isequalRel(satrec.x1mth2, 8.213630528127e-01, TOL));2624 assert(isequalRel(satrec.x7thm1, 2.504586303113e-01, TOL));2625 assert(isequalRel(satrec.mdot, 7.190130726551e-02, TOL));2626 assert(isequalRel(satrec.nodedot, -4.713799132252e-05, TOL));2627 assert(isequalRel(satrec.xlcof, 1.909689949638e-03, TOL));2628 assert(isequalRel(satrec.xmcof, -9.271553108060e-02, TOL));2629 assert(isequalRel(satrec.nodecf, -7.511102051252e-10, TOL));2630 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2631 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2632 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2633 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2634 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2635 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2636 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2637 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2638 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2639 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2640 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2641 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));2642 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2643 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2644 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2645 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));2646 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));2647 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2648 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));2649 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));2650 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));2651 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2652 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2653 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2654 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2655 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2656 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));2657 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));2658 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));2659 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));2660 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));2661 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));2662 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));2663 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));2664 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));2665 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));2666 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));2667 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));2668 assert(isequalRel(satrec.gsto, 5.982608943601e+00, TOL));2669 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2670 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));2671 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));2672 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));2673 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));2674 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));2675 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));2676 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));2677 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));2678 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));2679 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));2680 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2681 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));2682 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));2683 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2684 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2685 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2686 equal(satrec.method, "n");2687 equal(satrec.init, "n");2688 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));2689 assert(isequalRel(stopmfe, 2.880000000000e+03, TOL));2690 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));2691});2692// 283502693// *** error: t:= 1560.000000 *** code = 12694test('1 28623U 05006B 06177.81079184 .00637644 69054-6 96390-3 0 6000', function () {2695 var rets = twoline2rv(72,2696 '1 28623U 05006B 06177.81079184 .00637644 69054-6 96390-3 0 6000',2697 '2 28623 28.5200 114.9834 6249053 170.2550 212.8965 3.79477162 12753 0.0 1440.0 120.00 ',2698 'v', 'e');2699 satrec = rets.shift(),2700 startmfe = rets.shift(),2701 stopmfe = rets.shift(),2702 deltamin = rets.shift(),2703 TOL = 0.000001;2704 equal(satrec.error, 0);2705 equal(satrec.satnum, 28623);2706 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2707 assert(isequalRel(satrec.epochdays, 1.778107918400e+02, TOL));2708 assert(isequalRel(satrec.ndot, 1.932115842984e-08, TOL));2709 assert(isequalRel(satrec.nddot, 1.453052254138e-15, TOL));2710 assert(isequalRel(satrec.bstar, 9.639000000000e-04, TOL));2711 assert(isequalRel(satrec.inclo, 4.977679026688e-01, TOL));2712 assert(isequalRel(satrec.nodeo, 2.006838915138e+00, TOL));2713 assert(isequalRel(satrec.ecco, 6.249053000000e-01, TOL));2714 assert(isequalRel(satrec.argpo, 2.971510317983e+00, TOL));2715 assert(isequalRel(satrec.mo, 3.715744890972e+00, TOL));2716 assert(isequalRel(satrec.no, 1.655279727416e-02, TOL));2717 assert(isequalRel(satrec.a, 2.722186242514e+00, TOL));2718 assert(isequalRel(satrec.alta, 3.423294853048e+00, TOL));2719 assert(isequalRel(satrec.altp, 2.107763197986e-02, TOL));2720 assert(isequalRel(satrec.jdsatepoch, 2.453913310792e+06, TOL));2721 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2722 assert(isequalRel(satrec.aycof, 5.598449387749e-04, TOL));2723 assert(isequalRel(satrec.con41, 1.316080099741e+00, TOL));2724 assert(isequalRel(satrec.cc1, 7.794470372523e-07, TOL));2725 assert(isequalRel(satrec.cc4, 6.870308409853e-04, TOL));2726 assert(isequalRel(satrec.cc5, 6.136467900309e-02, TOL));2727 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2728 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2729 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2730 assert(isequalRel(satrec.delmo, 4.602372744525e-03, TOL));2731 assert(isequalRel(satrec.eta, 9.928637385504e-01, TOL));2732 assert(isequalRel(satrec.argpdot, 1.398466945436e-05, TOL));2733 assert(isequalRel(satrec.omgcof, -3.459244932824e-17, TOL));2734 assert(isequalRel(satrec.sinmao, -5.431231594784e-01, TOL));2735 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2736 assert(isequalRel(satrec.t2cof, 1.169170555878e-06, TOL));2737 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2738 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2739 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2740 assert(isequalRel(satrec.x1mth2, 2.279733000863e-01, TOL));2741 assert(isequalRel(satrec.x7thm1, 4.404186899396e+00, TOL));2742 assert(isequalRel(satrec.mdot, 1.655781496506e-02, TOL));2743 assert(isequalRel(satrec.nodedot, -8.592532289781e-06, TOL));2744 assert(isequalRel(satrec.xlcof, 1.101608572960e-03, TOL));2745 assert(isequalRel(satrec.xmcof, -1.089540957252e-12, TOL));2746 assert(isequalRel(satrec.nodecf, -1.426027039134e-11, TOL));2747 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2748 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2749 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2750 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2751 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2752 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2753 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2754 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2755 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2756 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2757 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2758 assert(isequalRel(satrec.dedt, -1.284368777035e-08, TOL));2759 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2760 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2761 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2762 assert(isequalRel(satrec.didt, 2.182189987367e-08, TOL));2763 assert(isequalRel(satrec.dmdt, -1.266772856942e-08, TOL));2764 assert(isequalRel(satrec.dnodt, -1.981003275567e-08, TOL));2765 assert(isequalRel(satrec.domdt, 2.122734368629e-08, TOL));2766 assert(isequalRel(satrec.e3, 2.080207273239e-04, TOL));2767 assert(isequalRel(satrec.ee2, 2.279612848318e-04, TOL));2768 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2769 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2770 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2771 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2772 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2773 assert(isequalRel(satrec.se2, -2.010666927152e-03, TOL));2774 assert(isequalRel(satrec.se3, 1.234888459603e-04, TOL));2775 assert(isequalRel(satrec.sgh2, 4.404694052449e-04, TOL));2776 assert(isequalRel(satrec.sgh3, -3.174852765982e-03, TOL));2777 assert(isequalRel(satrec.sgh4, -4.246782106577e-05, TOL));2778 assert(isequalRel(satrec.sh2, 4.897361699131e-04, TOL));2779 assert(isequalRel(satrec.sh3, -1.594883558919e-04, TOL));2780 assert(isequalRel(satrec.si2, -1.422358125944e-03, TOL));2781 assert(isequalRel(satrec.si3, -1.642085155919e-03, TOL));2782 assert(isequalRel(satrec.sl2, -1.791873501287e-03, TOL));2783 assert(isequalRel(satrec.sl3, 5.840111590196e-03, TOL));2784 assert(isequalRel(satrec.sl4, 1.481689063817e-04, TOL));2785 assert(isequalRel(satrec.gsto, 3.606984295022e+00, TOL));2786 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));2787 assert(isequalRel(satrec.xgh2, -3.876052640328e-04, TOL));2788 assert(isequalRel(satrec.xgh3, 2.628367881541e-04, TOL));2789 assert(isequalRel(satrec.xgh4, -2.235682588341e-05, TOL));2790 assert(isequalRel(satrec.xh2, -7.296812344377e-05, TOL));2791 assert(isequalRel(satrec.xh3, -4.081833544751e-05, TOL));2792 assert(isequalRel(satrec.xi2, -6.948628061380e-05, TOL));2793 assert(isequalRel(satrec.xi3, 3.512666727653e-04, TOL));2794 assert(isequalRel(satrec.xl2, 8.272799129225e-04, TOL));2795 assert(isequalRel(satrec.xl3, -3.372511878045e-04, TOL));2796 assert(isequalRel(satrec.xl4, 7.800226991119e-05, TOL));2797 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));2798 assert(isequalRel(satrec.zmol, 2.040461217495e+00, TOL));2799 assert(isequalRel(satrec.zmos, 2.997593526865e+00, TOL));2800 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2801 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));2802 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));2803 equal(satrec.method, "d");2804 equal(satrec.init, "n");2805 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));2806 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));2807 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));2808});2809// 286232810test('1 28626U 05008A 06176.46683397 -.00000205 00000-0 10000-3 0 2190', function () {2811 var rets = twoline2rv(72,2812 '1 28626U 05008A 06176.46683397 -.00000205 00000-0 10000-3 0 2190',2813 '2 28626 0.0019 286.9433 0000335 13.7918 55.6504 1.00270176 4891 0.0 1440.0 120.00 ',2814 'v', 'e');2815 satrec = rets.shift(),2816 startmfe = rets.shift(),2817 stopmfe = rets.shift(),2818 deltamin = rets.shift(),2819 TOL = 0.000001;2820 equal(satrec.error, 0);2821 equal(satrec.satnum, 28626);2822 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));2823 assert(isequalRel(satrec.epochdays, 1.764668339700e+02, TOL));2824 assert(isequalRel(satrec.ndot, -6.211675289216e-12, TOL));2825 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2826 assert(isequalRel(satrec.bstar, 1.000000000000e-04, TOL));2827 assert(isequalRel(satrec.inclo, 3.316125578789e-05, TOL));2828 assert(isequalRel(satrec.nodeo, 5.008105351538e+00, TOL));2829 assert(isequalRel(satrec.ecco, 3.350000000000e-05, TOL));2830 assert(isequalRel(satrec.argpo, 2.407123197766e-01, TOL));2831 assert(isequalRel(satrec.mo, 9.712827100519e-01, TOL));2832 assert(isequalRel(satrec.no, 4.374949216286e-03, TOL));2833 assert(isequalRel(satrec.a, 6.610897332657e+00, TOL));2834 assert(isequalRel(satrec.alta, 5.611118797718e+00, TOL));2835 assert(isequalRel(satrec.altp, 5.610675867596e+00, TOL));2836 assert(isequalRel(satrec.jdsatepoch, 2.453911966834e+06, TOL));2837 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2838 assert(isequalRel(satrec.aycof, 3.888272840575e-08, TOL));2839 assert(isequalRel(satrec.con41, 1.999999996701e+00, TOL));2840 assert(isequalRel(satrec.cc1, 5.535451443276e-18, TOL));2841 assert(isequalRel(satrec.cc4, 3.003618119250e-17, TOL));2842 assert(isequalRel(satrec.cc5, 2.530077451701e-11, TOL));2843 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2844 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2845 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2846 assert(isequalRel(satrec.delmo, 1.000066959797e+00, TOL));2847 assert(isequalRel(satrec.eta, 3.955656358140e-05, TOL));2848 assert(isequalRel(satrec.argpdot, 3.251717209515e-07, TOL));2849 assert(isequalRel(satrec.omgcof, 0.000000000000e+00, TOL));2850 assert(isequalRel(satrec.sinmao, 8.256101499198e-01, TOL));2851 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2852 assert(isequalRel(satrec.t2cof, 8.303177164914e-18, TOL));2853 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2854 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2855 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2856 assert(isequalRel(satrec.x1mth2, 1.099668800464e-09, TOL));2857 assert(isequalRel(satrec.x7thm1, 5.999999992302e+00, TOL));2858 assert(isequalRel(satrec.mdot, 4.375111778864e-03, TOL));2859 assert(isequalRel(satrec.nodedot, -1.625828407295e-07, TOL));2860 assert(isequalRel(satrec.xlcof, 7.776545680615e-08, TOL));2861 assert(isequalRel(satrec.xmcof, 0.000000000000e+00, TOL));2862 assert(isequalRel(satrec.nodecf, -3.149324885339e-24, TOL));2863 assert(isequalRel(satrec.irez, 1.000000000000e+00, TOL));2864 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2865 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2866 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2867 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2868 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2869 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2870 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2871 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2872 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2873 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2874 assert(isequalRel(satrec.dedt, -1.163351218344e-12, TOL));2875 assert(isequalRel(satrec.del1, -6.397199405204e-13, TOL));2876 assert(isequalRel(satrec.del2, 1.410351263886e-11, TOL));2877 assert(isequalRel(satrec.del3, 1.978384035449e-12, TOL));2878 assert(isequalRel(satrec.didt, -2.947177196394e-08, TOL));2879 assert(isequalRel(satrec.dmdt, -1.045030124521e-07, TOL));2880 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2881 assert(isequalRel(satrec.domdt, 3.403399555001e-08, TOL));2882 assert(isequalRel(satrec.e3, 9.730286584479e-08, TOL));2883 assert(isequalRel(satrec.ee2, 4.116645807083e-09, TOL));2884 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));2885 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));2886 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));2887 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));2888 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));2889 assert(isequalRel(satrec.se2, -4.897269431303e-07, TOL));2890 assert(isequalRel(satrec.se3, -3.982514162897e-07, TOL));2891 assert(isequalRel(satrec.sgh2, 1.218979806720e-02, TOL));2892 assert(isequalRel(satrec.sgh3, -1.372729148759e-02, TOL));2893 assert(isequalRel(satrec.sgh4, -2.058135042329e-04, TOL));2894 assert(isequalRel(satrec.sh2, -1.607052704128e-03, TOL));2895 assert(isequalRel(satrec.sh3, 1.922166128879e-04, TOL));2896 assert(isequalRel(satrec.si2, 1.068903225853e-04, TOL));2897 assert(isequalRel(satrec.si3, 1.503069663730e-03, TOL));2898 assert(isequalRel(satrec.sl2, -1.268456207451e-02, TOL));2899 assert(isequalRel(satrec.sl3, 1.252883219957e-02, TOL));2900 assert(isequalRel(satrec.sl4, 4.802315103772e-04, TOL));2901 assert(isequalRel(satrec.gsto, 1.422713433736e+00, TOL));2902 assert(isequalRel(satrec.xfact, -4.375014405570e-03, TOL));2903 assert(isequalRel(satrec.xgh2, -2.791926643954e-03, TOL));2904 assert(isequalRel(satrec.xgh3, -6.071229788246e-05, TOL));2905 assert(isequalRel(satrec.xgh4, -1.083487818097e-04, TOL));2906 assert(isequalRel(satrec.xh2, 2.358741028641e-04, TOL));2907 assert(isequalRel(satrec.xh3, 2.037703492136e-04, TOL));2908 assert(isequalRel(satrec.xi2, 1.978957741048e-04, TOL));2909 assert(isequalRel(satrec.xi3, -1.979448507755e-04, TOL));2910 assert(isequalRel(satrec.xl2, 2.660801647839e-03, TOL));2911 assert(isequalRel(satrec.xl3, 3.319557433091e-04, TOL));2912 assert(isequalRel(satrec.xl4, 2.528138244862e-04, TOL));2913 assert(isequalRel(satrec.xlamo, 4.797386947630e+00, TOL));2914 assert(isequalRel(satrec.zmol, 1.734002358913e+00, TOL));2915 assert(isequalRel(satrec.zmos, 2.974474794500e+00, TOL));2916 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));2917 assert(isequalRel(satrec.xli, 4.797386947630e+00, TOL));2918 assert(isequalRel(satrec.xni, 4.374949216286e-03, TOL));2919 equal(satrec.method, "d");2920 equal(satrec.init, "n");2921 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));2922 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));2923 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));2924});2925// 286262926test('1 28872U 05037B 05333.02012661 .25992681 00000-0 24476-3 0 1534', function () {2927 var rets = twoline2rv(72,2928 '1 28872U 05037B 05333.02012661 .25992681 00000-0 24476-3 0 1534',2929 '2 28872 96.4736 157.9986 0303955 244.0492 110.6523 16.46015938 10708 0.0 50.0 5.00 ',2930 'v', 'e');2931 satrec = rets.shift(),2932 startmfe = rets.shift(),2933 stopmfe = rets.shift(),2934 deltamin = rets.shift(),2935 TOL = 0.000001;2936 equal(satrec.error, 5);2937 equal(satrec.satnum, 28872);2938 assert(isequalRel(satrec.epochyr, 5.000000000000e+00, TOL));2939 assert(isequalRel(satrec.epochdays, 3.330201266100e+02, TOL));2940 assert(isequalRel(satrec.ndot, 7.876004598447e-07, TOL));2941 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));2942 assert(isequalRel(satrec.bstar, 2.447600000000e-04, TOL));2943 assert(isequalRel(satrec.inclo, 1.683781961252e+00, TOL));2944 assert(isequalRel(satrec.nodeo, 2.757595783542e+00, TOL));2945 assert(isequalRel(satrec.ecco, 3.039550000000e-02, TOL));2946 assert(isequalRel(satrec.argpo, 4.259462076858e+00, TOL));2947 assert(isequalRel(satrec.mo, 1.931246959905e+00, TOL));2948 assert(isequalRel(satrec.no, 7.187462824278e-02, TOL));2949 assert(isequalRel(satrec.a, 1.023494641816e+00, TOL));2950 assert(isequalRel(satrec.alta, 5.460427320098e-02, TOL));2951 assert(isequalRel(satrec.altp, -7.614989569634e-03, TOL));2952 assert(isequalRel(satrec.jdsatepoch, 2.453703520127e+06, TOL));2953 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));2954 assert(isequalRel(satrec.aycof, 1.165058672797e-03, TOL));2955 assert(isequalRel(satrec.con41, -9.618654265547e-01, TOL));2956 assert(isequalRel(satrec.cc1, 7.305340120570e-06, TOL));2957 assert(isequalRel(satrec.cc4, 7.438327469896e-02, TOL));2958 assert(isequalRel(satrec.cc5, 1.716904676665e+00, TOL));2959 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));2960 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));2961 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));2962 assert(isequalRel(satrec.delmo, 8.962003458657e-02, TOL));2963 assert(isequalRel(satrec.eta, 1.566479807341e+00, TOL));2964 assert(isequalRel(satrec.argpdot, -5.216790415232e-05, TOL));2965 assert(isequalRel(satrec.omgcof, -2.314443451479e-05, TOL));2966 assert(isequalRel(satrec.sinmao, 9.357379822238e-01, TOL));2967 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));2968 assert(isequalRel(satrec.t2cof, 1.095801018086e-05, TOL));2969 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));2970 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));2971 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));2972 assert(isequalRel(satrec.x1mth2, 9.872884755182e-01, TOL));2973 assert(isequalRel(satrec.x7thm1, -9.110193286276e-01, TOL));2974 assert(isequalRel(satrec.mdot, 7.182095759003e-02, TOL));2975 assert(isequalRel(satrec.nodedot, 1.255223994192e-05, TOL));2976 assert(isequalRel(satrec.xlcof, 1.599541437465e-03, TOL));2977 assert(isequalRel(satrec.xmcof, -1.333903884591e-03, TOL));2978 assert(isequalRel(satrec.nodecf, 3.218186128767e-10, TOL));2979 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));2980 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));2981 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));2982 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));2983 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));2984 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));2985 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));2986 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));2987 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));2988 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));2989 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));2990 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));2991 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));2992 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));2993 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));2994 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));2995 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));2996 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));2997 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));2998 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));2999 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3000 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3001 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3002 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3003 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3004 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3005 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3006 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3007 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3008 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3009 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3010 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3011 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3012 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3013 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3014 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3015 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3016 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3017 assert(isequalRel(satrec.gsto, 1.313288306073e+00, TOL));3018 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3019 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3020 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3021 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3022 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3023 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3024 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3025 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3026 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3027 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3028 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3029 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3030 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3031 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3032 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3033 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3034 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3035 equal(satrec.method, "n");3036 equal(satrec.init, "n");3037 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));3038 assert(isequalRel(stopmfe, 5.000000000000e+01, TOL));3039 assert(isequalRel(deltamin, 5.000000000000e+00, TOL));3040});3041// 288723042test('1 29141U 85108AA 06170.26783845 .99999999 00000-0 13519-0 0 718', function () {3043 var rets = twoline2rv(72,3044 '1 29141U 85108AA 06170.26783845 .99999999 00000-0 13519-0 0 718',3045 '2 29141 82.4288 273.4882 0015848 277.2124 83.9133 15.93343074 6828 0.0 440.0 20.00 ',3046 'v', 'e');3047 satrec = rets.shift(),3048 startmfe = rets.shift(),3049 stopmfe = rets.shift(),3050 deltamin = rets.shift(),3051 TOL = 0.000001;3052 equal(satrec.error, 0);3053 equal(satrec.satnum, 29141);3054 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));3055 assert(isequalRel(satrec.epochdays, 1.702678384500e+02, TOL));3056 assert(isequalRel(satrec.ndot, 3.030085476634e-06, TOL));3057 assert(isequalRel(satrec.nddot, 0.000000000000e+00, TOL));3058 assert(isequalRel(satrec.bstar, 1.351900000000e-01, TOL));3059 assert(isequalRel(satrec.inclo, 1.438653958468e+00, TOL));3060 assert(isequalRel(satrec.nodeo, 4.773269555353e+00, TOL));3061 assert(isequalRel(satrec.ecco, 1.584800000000e-03, TOL));3062 assert(isequalRel(satrec.argpo, 4.838269107356e+00, TOL));3063 assert(isequalRel(satrec.mo, 1.464563371214e+00, TOL));3064 assert(isequalRel(satrec.no, 6.957163219428e-02, TOL));3065 assert(isequalRel(satrec.a, 1.045928666506e+00, TOL));3066 assert(isequalRel(satrec.alta, 4.758625425707e-02, TOL));3067 assert(isequalRel(satrec.altp, 4.427107875571e-02, TOL));3068 assert(isequalRel(satrec.jdsatepoch, 2.453905767838e+06, TOL));3069 assert(isequalRel(satrec.isimp, 0.000000000000e+00, TOL));3070 assert(isequalRel(satrec.aycof, 1.162312577206e-03, TOL));3071 assert(isequalRel(satrec.con41, -9.479193821401e-01, TOL));3072 assert(isequalRel(satrec.cc1, 1.402302071488e-05, TOL));3073 assert(isequalRel(satrec.cc4, 2.616998163647e-06, TOL));3074 assert(isequalRel(satrec.cc5, 3.283768193269e-03, TOL));3075 assert(isequalRel(satrec.d2, 2.476202150265e-08, TOL));3076 assert(isequalRel(satrec.d3, 6.547187456016e-11, TOL));3077 assert(isequalRel(satrec.d4, 2.018849945761e-13, TOL));3078 assert(isequalRel(satrec.delmo, 1.015954241921e+00, TOL));3079 assert(isequalRel(satrec.eta, 4.989044945409e-02, TOL));3080 assert(isequalRel(satrec.argpdot, -4.707515274342e-05, TOL));3081 assert(isequalRel(satrec.omgcof, 1.612649561091e-04, TOL));3082 assert(isequalRel(satrec.sinmao, 9.943625842940e-01, TOL));3083 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3084 assert(isequalRel(satrec.t2cof, 2.103453107232e-05, TOL));3085 assert(isequalRel(satrec.t3cof, 2.515531172259e-08, TOL));3086 assert(isequalRel(satrec.t4cof, 5.015251483767e-11, TOL));3087 assert(isequalRel(satrec.t5cof, 1.240995902746e-13, TOL));3088 assert(isequalRel(satrec.x1mth2, 9.826397940467e-01, TOL));3089 assert(isequalRel(satrec.x7thm1, -8.784785583269e-01, TOL));3090 assert(isequalRel(satrec.mdot, 6.952267544908e-02, TOL));3091 assert(isequalRel(satrec.nodedot, -1.357344170800e-05, TOL));3092 assert(isequalRel(satrec.xlcof, 1.878784117365e-03, TOL));3093 assert(isequalRel(satrec.xmcof, -1.762227730388e+00, TOL));3094 assert(isequalRel(satrec.nodecf, -6.684813053795e-10, TOL));3095 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));3096 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3097 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3098 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3099 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3100 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3101 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3102 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3103 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3104 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3105 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3106 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));3107 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));3108 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));3109 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));3110 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));3111 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));3112 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3113 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));3114 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));3115 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3116 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3117 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3118 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3119 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3120 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3121 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3122 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3123 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3124 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3125 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3126 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3127 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3128 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3129 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3130 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3131 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3132 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3133 assert(isequalRel(satrec.gsto, 6.574767745587e-02, TOL));3134 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3135 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3136 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3137 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3138 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3139 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3140 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3141 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3142 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3143 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3144 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3145 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3146 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3147 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3148 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3149 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3150 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3151 equal(satrec.method, "n");3152 equal(satrec.init, "n");3153 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));3154 assert(isequalRel(stopmfe, 4.400000000000e+02, TOL));3155 assert(isequalRel(deltamin, 2.000000000000e+01, TOL));3156});3157// 291413158// *** error: t:= 440.000000 *** code = 63159test('1 29238U 06022G 06177.28732010 .00766286 10823-4 13334-2 0 101', function () {3160 var rets = twoline2rv(72,3161 '1 29238U 06022G 06177.28732010 .00766286 10823-4 13334-2 0 101',3162 '2 29238 51.5595 213.7903 0202579 95.2503 267.9010 15.73823839 1061 0.0 1440.0 120.00 ',3163 'v', 'e');3164 satrec = rets.shift(),3165 startmfe = rets.shift(),3166 stopmfe = rets.shift(),3167 deltamin = rets.shift(),3168 TOL = 0.000001;3169 equal(satrec.error, 0);3170 equal(satrec.satnum, 29238);3171 assert(isequalRel(satrec.epochyr, 6.000000000000e+00, TOL));3172 assert(isequalRel(satrec.epochdays, 1.772873201000e+02, TOL));3173 assert(isequalRel(satrec.ndot, 2.321912102767e-08, TOL));3174 assert(isequalRel(satrec.nddot, 2.277403850108e-14, TOL));3175 assert(isequalRel(satrec.bstar, 1.333400000000e-03, TOL));3176 assert(isequalRel(satrec.inclo, 8.998830356820e-01, TOL));3177 assert(isequalRel(satrec.nodeo, 3.731344643826e+00, TOL));3178 assert(isequalRel(satrec.ecco, 2.025790000000e-02, TOL));3179 assert(isequalRel(satrec.argpo, 1.662431348512e+00, TOL));3180 assert(isequalRel(satrec.mo, 4.675754519385e+00, TOL));3181 assert(isequalRel(satrec.no, 6.866301602203e-02, TOL));3182 assert(isequalRel(satrec.a, 1.054558924065e+00, TOL));3183 assert(isequalRel(satrec.alta, 7.592207329265e-02, TOL));3184 assert(isequalRel(satrec.altp, 3.319577483702e-02, TOL));3185 assert(isequalRel(satrec.jdsatepoch, 2.453912787320e+06, TOL));3186 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));3187 assert(isequalRel(satrec.aycof, 9.183928514987e-04, TOL));3188 assert(isequalRel(satrec.con41, 1.595385835540e-01, TOL));3189 assert(isequalRel(satrec.cc1, 2.269353322605e-07, TOL));3190 assert(isequalRel(satrec.cc4, 2.625327421249e-04, TOL));3191 assert(isequalRel(satrec.cc5, 5.899869491082e-03, TOL));3192 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));3193 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));3194 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));3195 assert(isequalRel(satrec.delmo, 9.456636074024e-01, TOL));3196 assert(isequalRel(satrec.eta, 5.037493042251e-01, TOL));3197 assert(isequalRel(satrec.argpdot, 4.669456818517e-05, TOL));3198 assert(isequalRel(satrec.omgcof, -2.081758941314e-08, TOL));3199 assert(isequalRel(satrec.sinmao, -9.993290331798e-01, TOL));3200 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3201 assert(isequalRel(satrec.t2cof, 3.404029983907e-07, TOL));3202 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));3203 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));3204 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));3205 assert(isequalRel(satrec.x1mth2, 6.134871388153e-01, TOL));3206 assert(isequalRel(satrec.x7thm1, 1.705590028293e+00, TOL));3207 assert(isequalRel(satrec.mdot, 6.867102786080e-02, TOL));3208 assert(isequalRel(satrec.nodedot, -6.241104888509e-05, TOL));3209 assert(isequalRel(satrec.xlcof, 1.729667795817e-03, TOL));3210 assert(isequalRel(satrec.xmcof, -5.062259410359e-05, TOL));3211 assert(isequalRel(satrec.nodecf, -4.952332336293e-11, TOL));3212 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));3213 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3214 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3215 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3216 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3217 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3218 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3219 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3220 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3221 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3222 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3223 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));3224 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));3225 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));3226 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));3227 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));3228 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));3229 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3230 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));3231 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));3232 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3233 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3234 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3235 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3236 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3237 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3238 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3239 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3240 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3241 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3242 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3243 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3244 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3245 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3246 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3247 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3248 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3249 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3250 assert(isequalRel(satrec.gsto, 3.089091736929e-01, TOL));3251 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3252 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3253 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3254 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3255 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3256 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3257 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3258 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3259 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3260 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3261 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3262 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3263 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3264 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3265 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3266 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3267 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3268 equal(satrec.method, "n");3269 equal(satrec.init, "n");3270 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));3271 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));3272 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));3273});3274// 292383275test('1 88888U 80275.98708465 .00073094 13844-3 66816-4 0 87', function () {3276 var rets = twoline2rv(72,3277 '1 88888U 80275.98708465 .00073094 13844-3 66816-4 0 87',3278 '2 88888 72.8435 115.9689 0086731 52.6988 110.5714 16.05824518 1058 0.0 1440.0 120.00 ',3279 'v', 'e');3280 satrec = rets.shift(),3281 startmfe = rets.shift(),3282 stopmfe = rets.shift(),3283 deltamin = rets.shift(),3284 TOL = 0.000001;3285 equal(satrec.error, 0);3286 equal(satrec.satnum, 88888);3287 assert(isequalRel(satrec.epochyr, 8.000000000000e+01, TOL));3288 assert(isequalRel(satrec.epochdays, 2.759870846500e+02, TOL));3289 assert(isequalRel(satrec.ndot, 2.214810700439e-09, TOL));3290 assert(isequalRel(satrec.nddot, 2.913090538750e-13, TOL));3291 assert(isequalRel(satrec.bstar, 6.681600000000e-05, TOL));3292 assert(isequalRel(satrec.inclo, 1.271358913676e+00, TOL));3293 assert(isequalRel(satrec.nodeo, 2.024039134916e+00, TOL));3294 assert(isequalRel(satrec.ecco, 8.673100000000e-03, TOL));3295 assert(isequalRel(satrec.argpo, 9.197675718500e-01, TOL));3296 assert(isequalRel(satrec.mo, 1.929834988540e+00, TOL));3297 assert(isequalRel(satrec.no, 7.010615566653e-02, TOL));3298 assert(isequalRel(satrec.a, 1.040501892439e+00, TOL));3299 assert(isequalRel(satrec.alta, 4.952626940243e-02, TOL));3300 assert(isequalRel(satrec.altp, 3.147751547580e-02, TOL));3301 assert(isequalRel(satrec.jdsatepoch, 2.444514487085e+06, TOL));3302 assert(isequalRel(satrec.isimp, 1.000000000000e+00, TOL));3303 assert(isequalRel(satrec.aycof, 1.120360099968e-03, TOL));3304 assert(isequalRel(satrec.con41, -7.389556198424e-01, TOL));3305 assert(isequalRel(satrec.cc1, 2.333804402169e-08, TOL));3306 assert(isequalRel(satrec.cc4, 3.772011178428e-04, TOL));3307 assert(isequalRel(satrec.cc5, 1.233491918541e-02, TOL));3308 assert(isequalRel(satrec.d2, 0.000000000000e+00, TOL));3309 assert(isequalRel(satrec.d3, 0.000000000000e+00, TOL));3310 assert(isequalRel(satrec.d4, 0.000000000000e+00, TOL));3311 assert(isequalRel(satrec.delmo, 6.963086753786e-01, TOL));3312 assert(isequalRel(satrec.eta, 3.234711971626e-01, TOL));3313 assert(isequalRel(satrec.argpdot, -2.971792488745e-05, TOL));3314 assert(isequalRel(satrec.omgcof, 1.634830475080e-07, TOL));3315 assert(isequalRel(satrec.sinmao, 9.362350458581e-01, TOL));3316 assert(isequalRel(satrec.t, 0.000000000000e+00, TOL));3317 assert(isequalRel(satrec.t2cof, 3.500706603253e-08, TOL));3318 assert(isequalRel(satrec.t3cof, 0.000000000000e+00, TOL));3319 assert(isequalRel(satrec.t4cof, 0.000000000000e+00, TOL));3320 assert(isequalRel(satrec.t5cof, 0.000000000000e+00, TOL));3321 assert(isequalRel(satrec.x1mth2, 9.129852066141e-01, TOL));3322 assert(isequalRel(satrec.x7thm1, -3.908964462990e-01, TOL));3323 assert(isequalRel(satrec.mdot, 7.006729343208e-02, TOL));3324 assert(isequalRel(satrec.nodedot, -3.096311241687e-05, TOL));3325 assert(isequalRel(satrec.xlcof, 1.935745758017e-03, TOL));3326 assert(isequalRel(satrec.xmcof, -4.935338810866e-05, TOL));3327 assert(isequalRel(satrec.nodecf, -2.535821868201e-12, TOL));3328 assert(isequalRel(satrec.irez, 0.000000000000e+00, TOL));3329 assert(isequalRel(satrec.d2201, 0.000000000000e+00, TOL));3330 assert(isequalRel(satrec.d2211, 0.000000000000e+00, TOL));3331 assert(isequalRel(satrec.d3210, 0.000000000000e+00, TOL));3332 assert(isequalRel(satrec.d3222, 0.000000000000e+00, TOL));3333 assert(isequalRel(satrec.d4410, 0.000000000000e+00, TOL));3334 assert(isequalRel(satrec.d4422, 0.000000000000e+00, TOL));3335 assert(isequalRel(satrec.d5220, 0.000000000000e+00, TOL));3336 assert(isequalRel(satrec.d5232, 0.000000000000e+00, TOL));3337 assert(isequalRel(satrec.d5421, 0.000000000000e+00, TOL));3338 assert(isequalRel(satrec.d5433, 0.000000000000e+00, TOL));3339 assert(isequalRel(satrec.dedt, 0.000000000000e+00, TOL));3340 assert(isequalRel(satrec.del1, 0.000000000000e+00, TOL));3341 assert(isequalRel(satrec.del2, 0.000000000000e+00, TOL));3342 assert(isequalRel(satrec.del3, 0.000000000000e+00, TOL));3343 assert(isequalRel(satrec.didt, 0.000000000000e+00, TOL));3344 assert(isequalRel(satrec.dmdt, 0.000000000000e+00, TOL));3345 assert(isequalRel(satrec.dnodt, 0.000000000000e+00, TOL));3346 assert(isequalRel(satrec.domdt, 0.000000000000e+00, TOL));3347 assert(isequalRel(satrec.e3, 0.000000000000e+00, TOL));3348 assert(isequalRel(satrec.ee2, 0.000000000000e+00, TOL));3349 assert(isequalRel(satrec.peo, 0.000000000000e+00, TOL));3350 assert(isequalRel(satrec.pgho, 0.000000000000e+00, TOL));3351 assert(isequalRel(satrec.pho, 0.000000000000e+00, TOL));3352 assert(isequalRel(satrec.pinco, 0.000000000000e+00, TOL));3353 assert(isequalRel(satrec.plo, 0.000000000000e+00, TOL));3354 assert(isequalRel(satrec.se2, 0.000000000000e+00, TOL));3355 assert(isequalRel(satrec.se3, 0.000000000000e+00, TOL));3356 assert(isequalRel(satrec.sgh2, 0.000000000000e+00, TOL));3357 assert(isequalRel(satrec.sgh3, 0.000000000000e+00, TOL));3358 assert(isequalRel(satrec.sgh4, 0.000000000000e+00, TOL));3359 assert(isequalRel(satrec.sh2, 0.000000000000e+00, TOL));3360 assert(isequalRel(satrec.sh3, 0.000000000000e+00, TOL));3361 assert(isequalRel(satrec.si2, 0.000000000000e+00, TOL));3362 assert(isequalRel(satrec.si3, 0.000000000000e+00, TOL));3363 assert(isequalRel(satrec.sl2, 0.000000000000e+00, TOL));3364 assert(isequalRel(satrec.sl3, 0.000000000000e+00, TOL));3365 assert(isequalRel(satrec.sl4, 0.000000000000e+00, TOL));3366 assert(isequalRel(satrec.gsto, 1.082901416696e-01, TOL));3367 assert(isequalRel(satrec.xfact, 0.000000000000e+00, TOL));3368 assert(isequalRel(satrec.xgh2, 0.000000000000e+00, TOL));3369 assert(isequalRel(satrec.xgh3, 0.000000000000e+00, TOL));3370 assert(isequalRel(satrec.xgh4, 0.000000000000e+00, TOL));3371 assert(isequalRel(satrec.xh2, 0.000000000000e+00, TOL));3372 assert(isequalRel(satrec.xh3, 0.000000000000e+00, TOL));3373 assert(isequalRel(satrec.xi2, 0.000000000000e+00, TOL));3374 assert(isequalRel(satrec.xi3, 0.000000000000e+00, TOL));3375 assert(isequalRel(satrec.xl2, 0.000000000000e+00, TOL));3376 assert(isequalRel(satrec.xl3, 0.000000000000e+00, TOL));3377 assert(isequalRel(satrec.xl4, 0.000000000000e+00, TOL));3378 assert(isequalRel(satrec.xlamo, 0.000000000000e+00, TOL));3379 assert(isequalRel(satrec.zmol, 0.000000000000e+00, TOL));3380 assert(isequalRel(satrec.zmos, 0.000000000000e+00, TOL));3381 assert(isequalRel(satrec.atime, 0.000000000000e+00, TOL));3382 assert(isequalRel(satrec.xli, 0.000000000000e+00, TOL));3383 assert(isequalRel(satrec.xni, 0.000000000000e+00, TOL));3384 equal(satrec.method, "n");3385 equal(satrec.init, "n");3386 assert(isequalRel(startmfe, 0.000000000000e+00, TOL));3387 assert(isequalRel(stopmfe, 1.440000000000e+03, TOL));3388 assert(isequalRel(deltamin, 1.200000000000e+02, TOL));3389});...

Full Screen

Full Screen

dscom_test.js

Source:dscom_test.js Github

copy

Full Screen

1/*global2 module: true, test: true, equal: true, notEqual: true, ok: true,3 dscom: true4*/5module('dscom');6// 57test(' 1.975491070959e+04, 1.450506000000e-01, 3.623303527140e+00, 0.000000000000e+00, 2.000636014976e-01, 4.766670465451e+00, 5.245868658927e-03',8 function () {9 var rets = dscom( 1.975491070959e+04, 1.450506000000e-01, 3.623303527140e+00, 0.000000000000e+00, 2.000636014976e-01, 4.766670465451e+00, 5.245868658927e-03),10 sinim = rets.shift(),11 cosim = rets.shift(),12 sinomm = rets.shift(),13 cosomm = rets.shift(),14 snodm = rets.shift(),15 cnodm = rets.shift(),16 day = rets.shift(),17 e3 = rets.shift(),18 ee2 = rets.shift(),19 em = rets.shift(),20 emsq = rets.shift(),21 gam = rets.shift(),22 peo = rets.shift(),23 pgho = rets.shift(),24 pho = rets.shift(),25 pinco = rets.shift(),26 plo = rets.shift(),27 rtemsq = rets.shift(),28 se2 = rets.shift(),29 se3 = rets.shift(),30 sgh2 = rets.shift(),31 sgh3 = rets.shift(),32 sgh4 = rets.shift(),33 sh2 = rets.shift(),34 sh3 = rets.shift(),35 si2 = rets.shift(),36 si3 = rets.shift(),37 sl2 = rets.shift(),38 sl3 = rets.shift(),39 sl4 = rets.shift(),40 s1 = rets.shift(),41 s2 = rets.shift(),42 s3 = rets.shift(),43 s4 = rets.shift(),44 s5 = rets.shift(),45 s6 = rets.shift(),46 s7 = rets.shift(),47 ss1 = rets.shift(),48 ss2 = rets.shift(),49 ss3 = rets.shift(),50 ss4 = rets.shift(),51 ss5 = rets.shift(),52 ss6 = rets.shift(),53 ss7 = rets.shift(),54 sz1 = rets.shift(),55 sz2 = rets.shift(),56 sz3 = rets.shift(),57 sz11 = rets.shift(),58 sz12 = rets.shift(),59 sz13 = rets.shift(),60 sz21 = rets.shift(),61 sz22 = rets.shift(),62 sz23 = rets.shift(),63 sz31 = rets.shift(),64 sz32 = rets.shift(),65 sz33 = rets.shift(),66 xgh2 = rets.shift(),67 xgh3 = rets.shift(),68 xgh4 = rets.shift(),69 xh2 = rets.shift(),70 xh3 = rets.shift(),71 xi2 = rets.shift(),72 xi3 = rets.shift(),73 xl2 = rets.shift(),74 xl3 = rets.shift(),75 xl4 = rets.shift(),76 nm = rets.shift(),77 z1 = rets.shift(),78 z2 = rets.shift(),79 z3 = rets.shift(),80 z11 = rets.shift(),81 z12 = rets.shift(),82 z13 = rets.shift(),83 z21 = rets.shift(),84 z22 = rets.shift(),85 z23 = rets.shift(),86 z31 = rets.shift(),87 z32 = rets.shift(),88 z33 = rets.shift(),89 zmol = rets.shift(),90 zmos = rets.shift(),91 TOL = 0.0000001;92 expect(81);93 ok(isequalRel(sinim, 1.987316640953e-01, TOL), "sinim=" + sinim);94 ok(isequalRel(cosim, 9.800539401920e-01, TOL), "cosim=" + cosim);95 ok(isequalRel(sinomm, -4.632960351199e-01, TOL), "sinomm=" + sinomm);96 ok(isequalRel(cosomm, -8.862035792312e-01, TOL), "cosomm=" + cosomm);97 ok(isequalRel(snodm, -9.985271218932e-01, TOL), "snodm=" + snodm);98 ok(isequalRel(cnodm, 5.425483244489e-02, TOL), "cnodm=" + cnodm);99 ok(isequalRel(day, 3.801641070959e+04, TOL), "day=" + day);100 ok(isequalRel(e3, -3.259811599808e-04, TOL), "e3=" + e3);101 ok(isequalRel(ee2, 9.631690304302e-05, TOL), "ee2=" + ee2);102 ok(isequalRel(em, 1.450506000000e-01, TOL), "em=" + em);103 ok(isequalRel(emsq, 2.103967656036e-02, TOL), "emsq=" + emsq);104 ok(isequalRel(gam, 7.975304385858e+01, TOL), "gam=" + gam);105 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);106 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);107 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);108 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);109 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);110 ok(isequalRel(rtemsq, 9.894242383526e-01, TOL), "rtemsq=" + rtemsq);111 ok(isequalRel(se2, -1.598763953845e-03, TOL), "se2=" + se2);112 ok(isequalRel(se3, -1.532829312733e-03, TOL), "se3=" + se3);113 ok(isequalRel(sgh2, 1.009321688332e-02, TOL), "sgh2=" + sgh2);114 ok(isequalRel(sgh3, -1.031125833038e-02, TOL), "sgh3=" + sgh3);115 ok(isequalRel(sgh4, -1.698290639332e-04, TOL), "sgh4=" + sgh4);116 ok(isequalRel(sh2, -1.436571665398e-03, TOL), "sh2=" + sh2);117 ok(isequalRel(sh3, -2.604666666759e-04, TOL), "sh3=" + sh3);118 ok(isequalRel(si2, -2.752019370380e-04, TOL), "si2=" + si2);119 ok(isequalRel(si3, 1.412253967491e-03, TOL), "si3=" + si3);120 ok(isequalRel(sl2, -9.737328456846e-03, TOL), "sl2=" + sl2);121 ok(isequalRel(sl3, 9.584139594897e-03, TOL), "sl3=" + sl3);122 ok(isequalRel(sl4, 4.041147860756e-04, TOL), "sl4=" + sl4);123 ok(isequalRel(s1, -1.968466918871e-04, TOL), "s1=" + s1);124 ok(isequalRel(s2, -4.620853989286e-05, TOL), "s2=" + s2);125 ok(isequalRel(s3, 9.143969877776e-05, TOL), "s3=" + s3);126 ok(isequalRel(s4, 9.047265431838e-05, TOL), "s4=" + s4);127 ok(isequalRel(s5, 1.015004737244e-02, TOL), "s5=" + s5);128 ok(isequalRel(s6, -2.446495344160e-01, TOL), "s6=" + s6);129 ok(isequalRel(s7, 8.280077172131e-01, TOL), "s7=" + s7);130 ok(isequalRel(ss1, -1.225562568207e-03, TOL), "ss1=" + ss1);131 ok(isequalRel(ss2, -2.876932107990e-04, TOL), "ss2=" + ss2);132 ok(isequalRel(ss3, 5.693012719481e-04, TOL), "ss3=" + ss3);133 ok(isequalRel(ss4, 5.632804773904e-04, TOL), "ss4=" + ss4);134 ok(isequalRel(ss5, 1.759082494140e-02, TOL), "ss5=" + ss5);135 ok(isequalRel(ss6, 6.522571736933e-01, TOL), "ss6=" + ss6);136 ok(isequalRel(ss7, 6.253574287016e-01, TOL), "ss7=" + ss7);137 ok(isequalRel(sz1, 1.313903514872e+01, TOL), "sz1=" + sz1);138 ok(isequalRel(sz2, 8.551999562135e+00, TOL), "sz2=" + sz2);139 ok(isequalRel(sz3, 4.721576706992e+00, TOL), "sz3=" + sz3);140 ok(isequalRel(sz11, 2.389115076210e+00, TOL), "sz11=" + sz11);141 ok(isequalRel(sz12, 4.782906351416e-01, TOL), "sz12=" + sz12);142 ok(isequalRel(sz13, -6.532930148080e-02, TOL), "sz13=" + sz13);143 ok(isequalRel(sz21, -2.576626675289e-01, TOL), "sz21=" + sz21);144 ok(isequalRel(sz22, -2.496707623737e+00, TOL), "sz22=" + sz22);145 ok(isequalRel(sz23, -7.103439559619e-01, TOL), "sz23=" + sz23);146 ok(isequalRel(sz31, 7.986387467636e+00, TOL), "sz31=" + sz31);147 ok(isequalRel(sz32, 8.959317150558e+00, TOL), "sz32=" + sz32);148 ok(isequalRel(sz33, -1.166475754387e+00, TOL), "sz33=" + sz33);149 ok(isequalRel(xgh2, 2.069563786522e-03, TOL), "xgh2=" + xgh2);150 ok(isequalRel(xgh3, 6.246874813546e-04, TOL), "xgh3=" + xgh3);151 ok(isequalRel(xgh4, -8.940507699742e-05, TOL), "xgh4=" + xgh4);152 ok(isequalRel(xh2, -5.956657020046e-05, TOL), "xh2=" + xh2);153 ok(isequalRel(xh3, -2.660535481999e-04, TOL), "xh3=" + xh3);154 ok(isequalRel(xi2, -2.550806983774e-04, TOL), "xi2=" + xi2);155 ok(isequalRel(xi3, 6.513825317331e-05, TOL), "xi3=" + xi3);156 ok(isequalRel(xl2, -1.862212872508e-03, TOL), "xl2=" + xl2);157 ok(isequalRel(xl3, -5.873201141188e-04, TOL), "xl3=" + xl3);158 ok(isequalRel(xl4, 2.127428175609e-04, TOL), "xl4=" + xl4);159 ok(isequalRel(nm, 5.245868658927e-03, TOL), "nm=" + nm);160 ok(isequalRel(z1, 6.668001023728e+00, TOL), "z1=" + z1);161 ok(isequalRel(z2, 1.018273735259e+01, TOL), "z2=" + z2);162 ok(isequalRel(z3, 9.879517039032e+00, TOL), "z3=" + z3);163 ok(isequalRel(z11, 1.630805643792e+00, TOL), "z11=" + z11);164 ok(isequalRel(z12, 2.760103424268e+00, TOL), "z12=" + z12);165 ok(isequalRel(z13, 9.259764788332e-01, TOL), "z13=" + z13);166 ok(isequalRel(z21, 8.286842069497e-01, TOL), "z21=" + z21);167 ok(isequalRel(z22, -6.445407097754e-01, TOL), "z22=" + z22);168 ok(isequalRel(z23, -2.050151056150e+00, TOL), "z23=" + z23);169 ok(isequalRel(z31, 1.248944362820e+00, TOL), "z31=" + z31);170 ok(isequalRel(z32, 1.143751005270e+01, TOL), "z32=" + z32);171 ok(isequalRel(z33, 4.701299585848e+00, TOL), "z33=" + z33);172 ok(isequalRel(zmol, 3.145380241287e+00, TOL), "zmol=" + zmol);173 ok(isequalRel(zmos, 4.795490950675e-01, TOL), "zmos=" + zmos);174 });175// 4632176// 6251177test(' 2.063033215444e+04, 6.877146000000e-01, 4.621022739372e+00, 0.000000000000e+00, 1.119778813470e+00, 4.870720014138e+00, 8.748547019630e-03',178 function () {179 var rets = dscom( 2.063033215444e+04, 6.877146000000e-01, 4.621022739372e+00, 0.000000000000e+00, 1.119778813470e+00, 4.870720014138e+00, 8.748547019630e-03),180 sinim = rets.shift(),181 cosim = rets.shift(),182 sinomm = rets.shift(),183 cosomm = rets.shift(),184 snodm = rets.shift(),185 cnodm = rets.shift(),186 day = rets.shift(),187 e3 = rets.shift(),188 ee2 = rets.shift(),189 em = rets.shift(),190 emsq = rets.shift(),191 gam = rets.shift(),192 peo = rets.shift(),193 pgho = rets.shift(),194 pho = rets.shift(),195 pinco = rets.shift(),196 plo = rets.shift(),197 rtemsq = rets.shift(),198 se2 = rets.shift(),199 se3 = rets.shift(),200 sgh2 = rets.shift(),201 sgh3 = rets.shift(),202 sgh4 = rets.shift(),203 sh2 = rets.shift(),204 sh3 = rets.shift(),205 si2 = rets.shift(),206 si3 = rets.shift(),207 sl2 = rets.shift(),208 sl3 = rets.shift(),209 sl4 = rets.shift(),210 s1 = rets.shift(),211 s2 = rets.shift(),212 s3 = rets.shift(),213 s4 = rets.shift(),214 s5 = rets.shift(),215 s6 = rets.shift(),216 s7 = rets.shift(),217 ss1 = rets.shift(),218 ss2 = rets.shift(),219 ss3 = rets.shift(),220 ss4 = rets.shift(),221 ss5 = rets.shift(),222 ss6 = rets.shift(),223 ss7 = rets.shift(),224 sz1 = rets.shift(),225 sz2 = rets.shift(),226 sz3 = rets.shift(),227 sz11 = rets.shift(),228 sz12 = rets.shift(),229 sz13 = rets.shift(),230 sz21 = rets.shift(),231 sz22 = rets.shift(),232 sz23 = rets.shift(),233 sz31 = rets.shift(),234 sz32 = rets.shift(),235 sz33 = rets.shift(),236 xgh2 = rets.shift(),237 xgh3 = rets.shift(),238 xgh4 = rets.shift(),239 xh2 = rets.shift(),240 xh3 = rets.shift(),241 xi2 = rets.shift(),242 xi3 = rets.shift(),243 xl2 = rets.shift(),244 xl3 = rets.shift(),245 xl4 = rets.shift(),246 nm = rets.shift(),247 z1 = rets.shift(),248 z2 = rets.shift(),249 z3 = rets.shift(),250 z11 = rets.shift(),251 z12 = rets.shift(),252 z13 = rets.shift(),253 z21 = rets.shift(),254 z22 = rets.shift(),255 z23 = rets.shift(),256 z31 = rets.shift(),257 z32 = rets.shift(),258 z33 = rets.shift(),259 zmol = rets.shift(),260 zmos = rets.shift(),261 TOL = 0.0000001;262 expect(81);263 ok(isequalRel(sinim, 9.000040530708e-01, TOL), "sinim=" + sinim);264 ok(isequalRel(cosim, 4.358815257110e-01, TOL), "cosim=" + cosim);265 ok(isequalRel(sinomm, -9.958290077604e-01, TOL), "sinomm=" + sinomm);266 ok(isequalRel(cosomm, -9.123917636090e-02, TOL), "cosomm=" + cosomm);267 ok(isequalRel(snodm, -9.874918050266e-01, TOL), "snodm=" + snodm);268 ok(isequalRel(cnodm, 1.576703364790e-01, TOL), "cnodm=" + cnodm);269 ok(isequalRel(day, 3.889183215444e+04, TOL), "day=" + day);270 ok(isequalRel(e3, -4.408046133189e-04, TOL), "e3=" + e3);271 ok(isequalRel(ee2, -1.093428053938e-04, TOL), "ee2=" + ee2);272 ok(isequalRel(em, 6.877146000000e-01, TOL), "em=" + em);273 ok(isequalRel(emsq, 4.729513710532e-01, TOL), "emsq=" + emsq);274 ok(isequalRel(gam, 8.145518530246e+01, TOL), "gam=" + gam);275 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);276 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);277 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);278 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);279 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);280 ok(isequalRel(rtemsq, 7.259811491677e-01, TOL), "rtemsq=" + rtemsq);281 ok(isequalRel(se2, 2.501941522642e-03, TOL), "se2=" + se2);282 ok(isequalRel(se3, 1.007241988530e-03, TOL), "se3=" + se3);283 ok(isequalRel(sgh2, -1.261915509701e-03, TOL), "sgh2=" + sgh2);284 ok(isequalRel(sgh3, 2.455746281541e-03, TOL), "sgh3=" + sgh3);285 ok(isequalRel(sgh4, -7.471990261373e-05, TOL), "sgh4=" + sgh4);286 ok(isequalRel(sh2, 9.458037270825e-04, TOL), "sh2=" + sh2);287 ok(isequalRel(sh3, -3.970223690620e-03, TOL), "sh3=" + sh3);288 ok(isequalRel(si2, -1.110569917439e-03, TOL), "si2=" + si2);289 ok(isequalRel(si3, 2.735745904365e-05, TOL), "si3=" + si3);290 ok(isequalRel(sl2, 4.083492666433e-03, TOL), "sl2=" + sl2);291 ok(isequalRel(sl3, -2.119115873088e-03, TOL), "sl3=" + sl3);292 ok(isequalRel(sl4, 2.888302541444e-04, TOL), "sl4=" + sl4);293 ok(isequalRel(s1, -4.106209626082e-04, TOL), "s1=" + s1);294 ok(isequalRel(s2, -3.776251664788e-05, TOL), "s2=" + s2);295 ok(isequalRel(s3, 5.482975046298e-05, TOL), "s3=" + s3);296 ok(isequalRel(s4, 3.980536524969e-05, TOL), "s4=" + s4);297 ok(isequalRel(s5, 3.199828401516e-01, TOL), "s5=" + s5);298 ok(isequalRel(s6, 1.331432334813e-01, TOL), "s6=" + s6);299 ok(isequalRel(s7, 5.367536651307e-01, TOL), "s7=" + s7);300 ok(isequalRel(ss1, -2.556515817813e-03, TOL), "ss1=" + ss1);301 ok(isequalRel(ss2, -2.351084818406e-04, TOL), "ss2=" + ss2);302 ok(isequalRel(ss3, 3.413686516514e-04, TOL), "ss3=" + ss3);303 ok(isequalRel(ss4, 2.478272060157e-04, TOL), "ss4=" + ss4);304 ok(isequalRel(ss5, 2.645498128236e-01, TOL), "ss5=" + ss5);305 ok(isequalRel(ss6, -4.893264311548e-01, TOL), "ss6=" + ss6);306 ok(isequalRel(ss7, -1.969950628727e-01, TOL), "ss7=" + ss7);307 ok(isequalRel(sz1, 2.823898158515e+00, TOL), "sz1=" + sz1);308 ok(isequalRel(sz2, -5.981059840555e+00, TOL), "sz2=" + sz2);309 ok(isequalRel(sz3, 5.927750640042e+00, TOL), "sz3=" + sz3);310 ok(isequalRel(sz11, 5.580094190508e-01, TOL), "sz11=" + sz11);311 ok(isequalRel(sz12, 2.361824441093e+00, TOL), "sz12=" + sz12);312 ok(isequalRel(sz13, 4.998289169492e-01, TOL), "sz13=" + sz13);313 ok(isequalRel(sz21, 9.668540331305e-01, TOL), "sz21=" + sz21);314 ok(isequalRel(sz22, 2.011419834108e+00, TOL), "sz22=" + sz22);315 ok(isequalRel(sz23, -7.476532737815e+00, TOL), "sz23=" + sz23);316 ok(isequalRel(sz31, -1.967387569690e+00, TOL), "sz31=" + sz31);317 ok(isequalRel(sz32, -2.545958391712e+00, TOL), "sz32=" + sz32);318 ok(isequalRel(sz33, 2.987165889194e+00, TOL), "sz33=" + sz33);319 ok(isequalRel(xgh2, 4.549202443830e-04, TOL), "xgh2=" + xgh2);320 ok(isequalRel(xgh3, -2.464815107882e-05, TOL), "xgh3=" + xgh3);321 ok(isequalRel(xgh4, -3.933566193975e-05, TOL), "xgh4=" + xgh4);322 ok(isequalRel(xh2, -6.438340814882e-04, TOL), "xh2=" + xh2);323 ok(isequalRel(xh3, 3.079429279349e-04, TOL), "xh3=" + xh3);324 ok(isequalRel(xi2, 1.142408298542e-04, TOL), "xi2=" + xi2);325 ok(isequalRel(xi3, 1.200089628145e-04, TOL), "xi3=" + xi3);326 ok(isequalRel(xl2, -7.862643771994e-04, TOL), "xl2=" + xl2);327 ok(isequalRel(xl3, -4.559423560477e-04, TOL), "xl3=" + xl3);328 ok(isequalRel(xl4, 1.520522489668e-04, TOL), "xl4=" + xl4);329 ok(isequalRel(nm, 8.748547019630e-03, TOL), "nm=" + nm);330 ok(isequalRel(z1, 2.900052189777e+00, TOL), "z1=" + z1);331 ok(isequalRel(z2, 7.170052485742e+00, TOL), "z2=" + z2);332 ok(isequalRel(z3, 7.057852947556e+00, TOL), "z3=" + z3);333 ok(isequalRel(z11, 1.364174869534e+00, TOL), "z11=" + z11);334 ok(isequalRel(z12, -1.512622038932e+00, TOL), "z12=" + z12);335 ok(isequalRel(z13, -2.248209584395e-01, TOL), "z13=" + z13);336 ok(isequalRel(z21, -5.118745162783e+00, TOL), "z21=" + z21);337 ok(isequalRel(z22, -8.524777194958e+00, TOL), "z22=" + z22);338 ok(isequalRel(z23, -1.041382803617e+00, TOL), "z23=" + z23);339 ok(isequalRel(z31, 1.083975928476e+00, TOL), "z31=" + z31);340 ok(isequalRel(z32, 5.714308128181e+00, TOL), "z32=" + z32);341 ok(isequalRel(z33, 7.743675261388e-01, TOL), "z33=" + z33);342 ok(isequalRel(zmol, 1.703291771992e+00, TOL), "zmol=" + zmol);343 ok(isequalRel(zmos, 2.972158040326e+00, TOL), "zmos=" + zmos);344 });345// 8195346test(' 2.063056157475e+04, 7.069051000000e-01, 4.712788660783e+00, 0.000000000000e+00, 1.127426846252e+00, 6.097806906008e+00, 8.762667060363e-03',347 function () {348 var rets = dscom( 2.063056157475e+04, 7.069051000000e-01, 4.712788660783e+00, 0.000000000000e+00, 1.127426846252e+00, 6.097806906008e+00, 8.762667060363e-03),349 sinim = rets.shift(),350 cosim = rets.shift(),351 sinomm = rets.shift(),352 cosomm = rets.shift(),353 snodm = rets.shift(),354 cnodm = rets.shift(),355 day = rets.shift(),356 e3 = rets.shift(),357 ee2 = rets.shift(),358 em = rets.shift(),359 emsq = rets.shift(),360 gam = rets.shift(),361 peo = rets.shift(),362 pgho = rets.shift(),363 pho = rets.shift(),364 pinco = rets.shift(),365 plo = rets.shift(),366 rtemsq = rets.shift(),367 se2 = rets.shift(),368 se3 = rets.shift(),369 sgh2 = rets.shift(),370 sgh3 = rets.shift(),371 sgh4 = rets.shift(),372 sh2 = rets.shift(),373 sh3 = rets.shift(),374 si2 = rets.shift(),375 si3 = rets.shift(),376 sl2 = rets.shift(),377 sl3 = rets.shift(),378 sl4 = rets.shift(),379 s1 = rets.shift(),380 s2 = rets.shift(),381 s3 = rets.shift(),382 s4 = rets.shift(),383 s5 = rets.shift(),384 s6 = rets.shift(),385 s7 = rets.shift(),386 ss1 = rets.shift(),387 ss2 = rets.shift(),388 ss3 = rets.shift(),389 ss4 = rets.shift(),390 ss5 = rets.shift(),391 ss6 = rets.shift(),392 ss7 = rets.shift(),393 sz1 = rets.shift(),394 sz2 = rets.shift(),395 sz3 = rets.shift(),396 sz11 = rets.shift(),397 sz12 = rets.shift(),398 sz13 = rets.shift(),399 sz21 = rets.shift(),400 sz22 = rets.shift(),401 sz23 = rets.shift(),402 sz31 = rets.shift(),403 sz32 = rets.shift(),404 sz33 = rets.shift(),405 xgh2 = rets.shift(),406 xgh3 = rets.shift(),407 xgh4 = rets.shift(),408 xh2 = rets.shift(),409 xh3 = rets.shift(),410 xi2 = rets.shift(),411 xi3 = rets.shift(),412 xl2 = rets.shift(),413 xl3 = rets.shift(),414 xl4 = rets.shift(),415 nm = rets.shift(),416 z1 = rets.shift(),417 z2 = rets.shift(),418 z3 = rets.shift(),419 z11 = rets.shift(),420 z12 = rets.shift(),421 z13 = rets.shift(),422 z21 = rets.shift(),423 z22 = rets.shift(),424 z23 = rets.shift(),425 z31 = rets.shift(),426 z32 = rets.shift(),427 z33 = rets.shift(),428 zmol = rets.shift(),429 zmos = rets.shift(),430 TOL = 0.0000001;431 expect(81);432 ok(isequalRel(sinim, 9.033113351973e-01, TOL), "sinim=" + sinim);433 ok(isequalRel(cosim, 4.289855844945e-01, TOL), "cosim=" + cosim);434 ok(isequalRel(sinomm, -9.999999201278e-01, TOL), "sinomm=" + sinomm);435 ok(isequalRel(cosomm, 3.996803880657e-04, TOL), "cosomm=" + cosomm);436 ok(isequalRel(snodm, -1.843184645783e-01, TOL), "snodm=" + snodm);437 ok(isequalRel(cnodm, 9.828665746761e-01, TOL), "cnodm=" + cnodm);438 ok(isequalRel(day, 3.889206157475e+04, TOL), "day=" + day);439 ok(isequalRel(e3, 1.249431839564e-04, TOL), "e3=" + e3);440 ok(isequalRel(ee2, 6.476652597055e-04, TOL), "ee2=" + ee2);441 ok(isequalRel(em, 7.069051000000e-01, TOL), "em=" + em);442 ok(isequalRel(emsq, 4.997148204060e-01, TOL), "emsq=" + emsq);443 ok(isequalRel(gam, 8.145563137997e+01, TOL), "gam=" + gam);444 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);445 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);446 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);447 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);448 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);449 ok(isequalRel(rtemsq, 7.073084048659e-01, TOL), "rtemsq=" + rtemsq);450 ok(isequalRel(se2, -3.006446485103e-03, TOL), "se2=" + se2);451 ok(isequalRel(se3, 2.366248156382e-03, TOL), "se3=" + se3);452 ok(isequalRel(sgh2, -2.805617954096e-03, TOL), "sgh2=" + sgh2);453 ok(isequalRel(sgh3, -3.755905951700e-03, TOL), "sgh3=" + sgh3);454 ok(isequalRel(sgh4, -7.268074853619e-05, TOL), "sgh4=" + sgh4);455 ok(isequalRel(sh2, 2.948902195180e-03, TOL), "sh2=" + sh2);456 ok(isequalRel(sh3, 3.166374712604e-03, TOL), "sh3=" + sh3);457 ok(isequalRel(si2, 6.569128551896e-04, TOL), "si2=" + si2);458 ok(isequalRel(si3, -6.992498193738e-04, TOL), "si3=" + si3);459 ok(isequalRel(sl2, 4.534351771255e-03, TOL), "sl2=" + sl2);460 ok(isequalRel(sl3, 6.836119210765e-03, TOL), "sl3=" + sl3);461 ok(isequalRel(sl4, 2.911149634817e-04, TOL), "sl4=" + sl4);462 ok(isequalRel(s1, -4.105604224204e-04, TOL), "s1=" + s1);463 ok(isequalRel(s2, -3.869698011745e-05, TOL), "s2=" + s2);464 ok(isequalRel(s3, 5.474139856001e-05, TOL), "s3=" + s3);465 ok(isequalRel(s4, 3.871905129561e-05, TOL), "s4=" + s4);466 ok(isequalRel(s5, 5.202004853494e-02, TOL), "s5=" + s5);467 ok(isequalRel(s6, -7.887575425406e-01, TOL), "s6=" + s6);468 ok(isequalRel(s7, -1.521617490792e-01, TOL), "s7=" + s7);469 ok(isequalRel(ss1, -2.556138896122e-03, TOL), "ss1=" + ss1);470 ok(isequalRel(ss2, -2.409264279726e-04, TOL), "ss2=" + ss2);471 ok(isequalRel(ss3, 3.408185749187e-04, TOL), "ss3=" + ss3);472 ok(isequalRel(ss4, 2.410638425744e-04, TOL), "ss4=" + ss4);473 ok(isequalRel(ss5, 4.864426121357e-02, TOL), "ss5=" + ss5);474 ok(isequalRel(ss6, 5.880835524362e-01, TOL), "ss6=" + ss6);475 ok(isequalRel(ss7, -4.628559426039e-01, TOL), "ss7=" + ss7);476 ok(isequalRel(sz1, 1.251742101403e+01, TOL), "sz1=" + sz1);477 ok(isequalRel(sz2, -6.652148833638e+00, TOL), "sz2=" + sz2);478 ok(isequalRel(sz3, 2.488450010326e+00, TOL), "sz3=" + sz3);479 ok(isequalRel(sz11, -6.448698696437e-01, TOL), "sz11=" + sz11);480 ok(isequalRel(sz12, -1.363305928531e+00, TOL), "sz12=" + sz12);481 ok(isequalRel(sz13, 8.062989067707e-01, TOL), "sz13=" + sz13);482 ok(isequalRel(sz21, -7.726437183168e+00, TOL), "sz21=" + sz21);483 ok(isequalRel(sz22, 6.119922625331e+00, TOL), "sz22=" + sz22);484 ok(isequalRel(sz23, -1.155188982526e+00, TOL), "sz23=" + sz23);485 ok(isequalRel(sz31, 5.782028627321e+00, TOL), "sz31=" + sz31);486 ok(isequalRel(sz32, -5.819242579338e+00, TOL), "sz32=" + sz32);487 ok(isequalRel(sz33, -2.008243674800e+00, TOL), "sz33=" + sz33);488 ok(isequalRel(xgh2, -1.815715485263e-04, TOL), "xgh2=" + xgh2);489 ok(isequalRel(xgh3, 8.134154625503e-04, TOL), "xgh3=" + xgh3);490 ok(isequalRel(xgh4, -3.826216649032e-05, TOL), "xgh4=" + xgh4);491 ok(isequalRel(xh2, 4.816111792216e-05, TOL), "xh2=" + xh2);492 ok(isequalRel(xh3, -6.696421947166e-04, TOL), "xh3=" + xh3);493 ok(isequalRel(xi2, -1.383644676752e-04, TOL), "xi2=" + xi2);494 ok(isequalRel(xi3, -7.113039969238e-07, TOL), "xi3=" + xi3);495 ok(isequalRel(xl2, 4.111399428162e-04, TOL), "xl2=" + xl2);496 ok(isequalRel(xl3, -1.491371542789e-03, TOL), "xl3=" + xl3);497 ok(isequalRel(xl4, 1.532550149097e-04, TOL), "xl4=" + xl4);498 ok(isequalRel(nm, 8.762667060363e-03, TOL), "nm=" + nm);499 ok(isequalRel(z1, 1.736414847372e+00, TOL), "z1=" + z1);500 ok(isequalRel(z2, -3.755292645342e+00, TOL), "z2=" + z2);501 ok(isequalRel(z3, 1.535838635358e+01, TOL), "z3=" + z3);502 ok(isequalRel(z11, 9.953838810723e-02, TOL), "z11=" + z11);503 ok(isequalRel(z12, 1.787794128318e+00, TOL), "z12=" + z12);504 ok(isequalRel(z13, 1.087290794062e-01, TOL), "z13=" + z13);505 ok(isequalRel(z21, 6.157731267206e-02, TOL), "z21=" + z21);506 ok(isequalRel(z22, 6.222852245315e-01, TOL), "z22=" + z22);507 ok(isequalRel(z23, -8.590805802032e+00, TOL), "z23=" + z23);508 ok(isequalRel(z31, -2.838481585876e+00, TOL), "z31=" + z31);509 ok(isequalRel(z32, -2.344731371903e+00, TOL), "z32=" + z32);510 ok(isequalRel(z33, 7.665591155216e+00, TOL), "z33=" + z33);511 ok(isequalRel(zmol, 1.755605827278e+00, TOL), "zmol=" + zmol);512 ok(isequalRel(zmos, 2.976104523220e+00, TOL), "zmos=" + zmos);513 });514// 9880515test(' 2.023779417928e+04, 2.709710000000e-02, 5.716345999363e+00, 0.000000000000e+00, 1.657329751109e-01, 5.465934884933e+00, 5.069384722250e-03',516 function () {517 var rets = dscom( 2.023779417928e+04, 2.709710000000e-02, 5.716345999363e+00, 0.000000000000e+00, 1.657329751109e-01, 5.465934884933e+00, 5.069384722250e-03),518 sinim = rets.shift(),519 cosim = rets.shift(),520 sinomm = rets.shift(),521 cosomm = rets.shift(),522 snodm = rets.shift(),523 cnodm = rets.shift(),524 day = rets.shift(),525 e3 = rets.shift(),526 ee2 = rets.shift(),527 em = rets.shift(),528 emsq = rets.shift(),529 gam = rets.shift(),530 peo = rets.shift(),531 pgho = rets.shift(),532 pho = rets.shift(),533 pinco = rets.shift(),534 plo = rets.shift(),535 rtemsq = rets.shift(),536 se2 = rets.shift(),537 se3 = rets.shift(),538 sgh2 = rets.shift(),539 sgh3 = rets.shift(),540 sgh4 = rets.shift(),541 sh2 = rets.shift(),542 sh3 = rets.shift(),543 si2 = rets.shift(),544 si3 = rets.shift(),545 sl2 = rets.shift(),546 sl3 = rets.shift(),547 sl4 = rets.shift(),548 s1 = rets.shift(),549 s2 = rets.shift(),550 s3 = rets.shift(),551 s4 = rets.shift(),552 s5 = rets.shift(),553 s6 = rets.shift(),554 s7 = rets.shift(),555 ss1 = rets.shift(),556 ss2 = rets.shift(),557 ss3 = rets.shift(),558 ss4 = rets.shift(),559 ss5 = rets.shift(),560 ss6 = rets.shift(),561 ss7 = rets.shift(),562 sz1 = rets.shift(),563 sz2 = rets.shift(),564 sz3 = rets.shift(),565 sz11 = rets.shift(),566 sz12 = rets.shift(),567 sz13 = rets.shift(),568 sz21 = rets.shift(),569 sz22 = rets.shift(),570 sz23 = rets.shift(),571 sz31 = rets.shift(),572 sz32 = rets.shift(),573 sz33 = rets.shift(),574 xgh2 = rets.shift(),575 xgh3 = rets.shift(),576 xgh4 = rets.shift(),577 xh2 = rets.shift(),578 xh3 = rets.shift(),579 xi2 = rets.shift(),580 xi3 = rets.shift(),581 xl2 = rets.shift(),582 xl3 = rets.shift(),583 xl4 = rets.shift(),584 nm = rets.shift(),585 z1 = rets.shift(),586 z2 = rets.shift(),587 z3 = rets.shift(),588 z11 = rets.shift(),589 z12 = rets.shift(),590 z13 = rets.shift(),591 z21 = rets.shift(),592 z22 = rets.shift(),593 z23 = rets.shift(),594 z31 = rets.shift(),595 z32 = rets.shift(),596 z33 = rets.shift(),597 zmol = rets.shift(),598 zmos = rets.shift(),599 TOL = 0.0000001;600 expect(81);601 ok(isequalRel(sinim, 1.649753069066e-01, TOL), "sinim=" + sinim);602 ok(isequalRel(cosim, 9.862976975087e-01, TOL), "cosim=" + cosim);603 ok(isequalRel(sinomm, -5.369683678799e-01, TOL), "sinomm=" + sinomm);604 ok(isequalRel(cosomm, 8.436023778395e-01, TOL), "cosomm=" + cosomm);605 ok(isequalRel(snodm, -7.292672480414e-01, TOL), "snodm=" + snodm);606 ok(isequalRel(cnodm, 6.842289682074e-01, TOL), "cnodm=" + cnodm);607 ok(isequalRel(day, 3.849929417928e+04, TOL), "day=" + day);608 ok(isequalRel(e3, 4.759541749927e-05, TOL), "e3=" + e3);609 ok(isequalRel(ee2, -5.215931631248e-05, TOL), "ee2=" + ee2);610 ok(isequalRel(em, 2.709710000000e-02, TOL), "em=" + em);611 ok(isequalRel(emsq, 7.342528284100e-04, TOL), "emsq=" + emsq);612 ok(isequalRel(gam, 8.069194702478e+01, TOL), "gam=" + gam);613 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);614 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);615 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);616 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);617 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);618 ok(isequalRel(rtemsq, 9.996328061701e-01, TOL), "rtemsq=" + rtemsq);619 ok(isequalRel(se2, -4.545493382307e-04, TOL), "se2=" + se2);620 ok(isequalRel(se3, -1.408307282420e-05, TOL), "se3=" + se3);621 ok(isequalRel(sgh2, 3.341762775910e-04, TOL), "sgh2=" + sgh2);622 ok(isequalRel(sgh3, -1.631250708160e-02, TOL), "sgh3=" + sgh3);623 ok(isequalRel(sgh4, -1.775546834310e-04, TOL), "sgh4=" + sgh4);624 ok(isequalRel(sh2, -7.925299564105e-04, TOL), "sh2=" + sh2);625 ok(isequalRel(sh3, -7.614980505856e-04, TOL), "sh3=" + sh3);626 ok(isequalRel(si2, -7.593552438778e-04, TOL), "si2=" + si2);627 ok(isequalRel(si3, 7.406357152159e-04, TOL), "si3=" + si3);628 ok(isequalRel(sl2, -6.650365679906e-05, TOL), "sl2=" + sl2);629 ok(isequalRel(sl3, 1.569236751846e-02, TOL), "sl3=" + sl3);630 ok(isequalRel(sl4, 4.145768614330e-04, TOL), "sl4=" + sl4);631 ok(isequalRel(s1, -3.844603186866e-05, TOL), "s1=" + s1);632 ok(isequalRel(s2, -4.732890446927e-05, TOL), "s2=" + s2);633 ok(isequalRel(s3, 9.462305117515e-05, TOL), "s3=" + s3);634 ok(isequalRel(s4, 9.458830617460e-05, TOL), "s4=" + s4);635 ok(isequalRel(s5, -2.695688550324e-02, TOL), "s5=" + s5);636 ok(isequalRel(s6, 6.783446012149e-01, TOL), "s6=" + s6);637 ok(isequalRel(s7, -6.189899865592e-01, TOL), "s7=" + s7);638 ok(isequalRel(ss1, -2.393640304675e-04, TOL), "ss1=" + ss1);639 ok(isequalRel(ss2, -2.946685725612e-04, TOL), "ss2=" + ss2);640 ok(isequalRel(ss3, 5.891207441590e-04, TOL), "ss3=" + ss3);641 ok(isequalRel(ss4, 5.889044226567e-04, TOL), "ss4=" + ss4);642 ok(isequalRel(ss5, -1.753069382440e-02, TOL), "ss5=" + ss5);643 ok(isequalRel(ss6, 9.494938260834e-01, TOL), "ss6=" + ss6);644 ok(isequalRel(ss7, 2.941768818959e-02, TOL), "ss7=" + ss7);645 ok(isequalRel(sz1, 1.630534276736e+01, TOL), "sz1=" + sz1);646 ok(isequalRel(sz2, 5.644314638249e-02, TOL), "sz2=" + sz2);647 ok(isequalRel(sz3, 2.986878196174e+00, TOL), "sz3=" + sz3);648 ok(isequalRel(sz11, 1.457191263623e+00, TOL), "sz11=" + sz11);649 ok(isequalRel(sz12, 1.288490383073e+00, TOL), "sz12=" + sz12);650 ok(isequalRel(sz13, 2.004645812038e-01, TOL), "sz13=" + sz13);651 ok(isequalRel(sz21, 9.813117642790e-01, TOL), "sz21=" + sz21);652 ok(isequalRel(sz22, -1.344781952011e+00, TOL), "sz22=" + sz22);653 ok(isequalRel(sz23, -3.108145795094e-01, TOL), "sz23=" + sz23);654 ok(isequalRel(sz31, 1.086186823499e+01, TOL), "sz31=" + sz31);655 ok(isequalRel(sz32, 2.837270911326e-01, TOL), "sz32=" + sz32);656 ok(isequalRel(sz33, -2.988008293373e+00, TOL), "sz33=" + sz33);657 ok(isequalRel(xgh2, -1.706031133674e-03, TOL), "xgh2=" + xgh2);658 ok(isequalRel(xgh3, -1.810449604366e-03, TOL), "xgh3=" + xgh3);659 ok(isequalRel(xgh4, -9.347216416174e-05, TOL), "xgh4=" + xgh4);660 ok(isequalRel(xh2, -2.227234299372e-04, TOL), "xh2=" + xh2);661 ok(isequalRel(xh3, 5.491720843604e-06, TOL), "xh3=" + xh3);662 ok(isequalRel(xi2, -6.826729645968e-06, TOL), "xi2=" + xi2);663 ok(isequalRel(xi3, 2.099107684283e-04, TOL), "xi3=" + xi3);664 ok(isequalRel(xl2, 1.640123445179e-03, TOL), "xl2=" + xl2);665 ok(isequalRel(xl3, 1.647042035558e-03, TOL), "xl3=" + xl3);666 ok(isequalRel(xl4, 2.182504888112e-04, TOL), "xl4=" + xl4);667 ok(isequalRel(nm, 5.069384722250e-03, TOL), "nm=" + nm);668 ok(isequalRel(z1, 1.347308349031e+01, TOL), "z1=" + z1);669 ok(isequalRel(z2, -8.666616774718e+00, TOL), "z2=" + z2);670 ok(isequalRel(z3, 4.769908021423e+00, TOL), "z3=" + z3);671 ok(isequalRel(z11, 2.121080157488e+00, TOL), "z11=" + z11);672 ok(isequalRel(z12, 7.212008943076e-02, TOL), "z12=" + z12);673 ok(isequalRel(z13, -9.649460768102e-02, TOL), "z13=" + z13);674 ok(isequalRel(z21, 3.902915047865e-01, TOL), "z21=" + z21);675 ok(isequalRel(z22, -2.352932446195e+00, TOL), "z22=" + z22);676 ok(isequalRel(z23, 4.483080689261e-01, TOL), "z23=" + z23);677 ok(isequalRel(z31, 8.376216737664e+00, TOL), "z31=" + z31);678 ok(isequalRel(z32, -9.018192642782e+00, TOL), "z32=" + z32);679 ok(isequalRel(z33, -1.193938800509e+00, TOL), "z33=" + z33);680 ok(isequalRel(zmol, 1.585773955921e-01, TOL), "zmol=" + zmol);681 ok(isequalRel(zmos, 2.502914127169e+00, TOL), "zmos=" + zmos);682 });683// 9998684test(' 1.118729629788e+04, 7.318036000000e-01, 8.285461931653e-01, 0.000000000000e+00, 8.166674822762e-01, 4.021856443150e+00, 9.971131604593e-03',685 function () {686 var rets = dscom( 1.118729629788e+04, 7.318036000000e-01, 8.285461931653e-01, 0.000000000000e+00, 8.166674822762e-01, 4.021856443150e+00, 9.971131604593e-03),687 sinim = rets.shift(),688 cosim = rets.shift(),689 sinomm = rets.shift(),690 cosomm = rets.shift(),691 snodm = rets.shift(),692 cnodm = rets.shift(),693 day = rets.shift(),694 e3 = rets.shift(),695 ee2 = rets.shift(),696 em = rets.shift(),697 emsq = rets.shift(),698 gam = rets.shift(),699 peo = rets.shift(),700 pgho = rets.shift(),701 pho = rets.shift(),702 pinco = rets.shift(),703 plo = rets.shift(),704 rtemsq = rets.shift(),705 se2 = rets.shift(),706 se3 = rets.shift(),707 sgh2 = rets.shift(),708 sgh3 = rets.shift(),709 sgh4 = rets.shift(),710 sh2 = rets.shift(),711 sh3 = rets.shift(),712 si2 = rets.shift(),713 si3 = rets.shift(),714 sl2 = rets.shift(),715 sl3 = rets.shift(),716 sl4 = rets.shift(),717 s1 = rets.shift(),718 s2 = rets.shift(),719 s3 = rets.shift(),720 s4 = rets.shift(),721 s5 = rets.shift(),722 s6 = rets.shift(),723 s7 = rets.shift(),724 ss1 = rets.shift(),725 ss2 = rets.shift(),726 ss3 = rets.shift(),727 ss4 = rets.shift(),728 ss5 = rets.shift(),729 ss6 = rets.shift(),730 ss7 = rets.shift(),731 sz1 = rets.shift(),732 sz2 = rets.shift(),733 sz3 = rets.shift(),734 sz11 = rets.shift(),735 sz12 = rets.shift(),736 sz13 = rets.shift(),737 sz21 = rets.shift(),738 sz22 = rets.shift(),739 sz23 = rets.shift(),740 sz31 = rets.shift(),741 sz32 = rets.shift(),742 sz33 = rets.shift(),743 xgh2 = rets.shift(),744 xgh3 = rets.shift(),745 xgh4 = rets.shift(),746 xh2 = rets.shift(),747 xh3 = rets.shift(),748 xi2 = rets.shift(),749 xi3 = rets.shift(),750 xl2 = rets.shift(),751 xl3 = rets.shift(),752 xl4 = rets.shift(),753 nm = rets.shift(),754 z1 = rets.shift(),755 z2 = rets.shift(),756 z3 = rets.shift(),757 z11 = rets.shift(),758 z12 = rets.shift(),759 z13 = rets.shift(),760 z21 = rets.shift(),761 z22 = rets.shift(),762 z23 = rets.shift(),763 z31 = rets.shift(),764 z32 = rets.shift(),765 z33 = rets.shift(),766 zmol = rets.shift(),767 zmos = rets.shift(),768 TOL = 0.0000001;769 expect(81);770 ok(isequalRel(sinim, 7.288682597402e-01, TOL), "sinim=" + sinim);771 ok(isequalRel(cosim, 6.846539709542e-01, TOL), "cosim=" + cosim);772 ok(isequalRel(sinomm, 7.369494526341e-01, TOL), "sinomm=" + sinomm);773 ok(isequalRel(cosomm, 6.759478561711e-01, TOL), "cosomm=" + cosomm);774 ok(isequalRel(snodm, -7.709069259013e-01, TOL), "snodm=" + snodm);775 ok(isequalRel(cnodm, -6.369478091629e-01, TOL), "cnodm=" + cnodm);776 ok(isequalRel(day, 2.944879629788e+04, TOL), "day=" + day);777 ok(isequalRel(e3, -7.499513315530e-05, TOL), "e3=" + e3);778 ok(isequalRel(ee2, 3.984687909508e-04, TOL), "ee2=" + ee2);779 ok(isequalRel(em, 7.318036000000e-01, TOL), "em=" + em);780 ok(isequalRel(emsq, 5.355365089730e-01, TOL), "emsq=" + emsq);781 ok(isequalRel(gam, 6.309444856012e+01, TOL), "gam=" + gam);782 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);783 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);784 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);785 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);786 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);787 ok(isequalRel(rtemsq, 6.815155838475e-01, TOL), "rtemsq=" + rtemsq);788 ok(isequalRel(se2, -2.359225311260e-03, TOL), "se2=" + se2);789 ok(isequalRel(se3, -7.047176327541e-05, TOL), "se3=" + se3);790 ok(isequalRel(sgh2, -1.822566953373e-04, TOL), "sgh2=" + sgh2);791 ok(isequalRel(sgh3, -2.213029457235e-03, TOL), "sgh3=" + sgh3);792 ok(isequalRel(sgh4, -6.154293814758e-05, TOL), "sgh4=" + sgh4);793 ok(isequalRel(sh2, -1.139407335123e-03, TOL), "sh2=" + sh2);794 ok(isequalRel(sh3, 2.509518062136e-03, TOL), "sh3=" + sh3);795 ok(isequalRel(si2, -5.208303751558e-05, TOL), "si2=" + si2);796 ok(isequalRel(si3, 3.287353432187e-03, TOL), "si3=" + si3);797 ok(isequalRel(sl2, 2.781684009380e-03, TOL), "sl2=" + sl2);798 ok(isequalRel(sl3, 3.338363278200e-03, TOL), "sl3=" + sl3);799 ok(isequalRel(sl4, 2.590677065105e-04, TOL), "sl4=" + sl4);800 ok(isequalRel(s1, -3.598896383932e-04, TOL), "s1=" + s1);801 ok(isequalRel(s2, -3.529408803158e-05, TOL), "s2=" + s2);802 ok(isequalRel(s3, 4.810694202241e-05, TOL), "s3=" + s3);803 ok(isequalRel(s4, 3.278563067952e-05, TOL), "s4=" + s4);804 ok(isequalRel(s5, -3.295141721071e-01, TOL), "s5=" + s5);805 ok(isequalRel(s6, -5.535985875140e-01, TOL), "s6=" + s6);806 ok(isequalRel(s7, 1.041918482151e-01, TOL), "s7=" + s7);807 ok(isequalRel(ss1, -2.240663865223e-03, TOL), "ss1=" + ss1);808 ok(isequalRel(ss2, -2.197401071657e-04, TOL), "ss2=" + ss2);809 ok(isequalRel(ss3, 2.995126148595e-04, TOL), "ss3=" + ss3);810 ok(isequalRel(ss4, 2.041225145857e-04, TOL), "ss4=" + ss4);811 ok(isequalRel(ss5, -2.842063666668e-01, TOL), "ss5=" + ss5);812 ok(isequalRel(ss6, 5.264567675405e-01, TOL), "ss6=" + ss6);813 ok(isequalRel(ss7, 1.572564371863e-02, TOL), "ss7=" + ss7);814 ok(isequalRel(sz1, 7.241600464427e+00, TOL), "sz1=" + sz1);815 ok(isequalRel(sz2, -4.643684224593e+00, TOL), "sz2=" + sz2);816 ok(isequalRel(sz3, 1.668607687869e+00, TOL), "sz3=" + sz3);817 ok(isequalRel(sz11, 5.923151674967e+00, TOL), "sz11=" + sz11);818 ok(isequalRel(sz12, 1.185105399906e-01, TOL), "sz12=" + sz12);819 ok(isequalRel(sz13, -1.556942593186e+00, TOL), "sz13=" + sz13);820 ok(isequalRel(sz21, -5.548981285667e+00, TOL), "sz21=" + sz21);821 ok(isequalRel(sz22, -2.592624873582e+00, TOL), "sz22=" + sz22);822 ok(isequalRel(sz23, 1.612144872051e-01, TOL), "sz23=" + sz23);823 ok(isequalRel(sz31, 3.273877043602e+00, TOL), "sz31=" + sz31);824 ok(isequalRel(sz32, -4.464394721650e-01, TOL), "sz32=" + sz32);825 ok(isequalRel(sz33, -2.146959216736e+00, TOL), "sz33=" + sz33);826 ok(isequalRel(xgh2, 1.510256022480e-04, TOL), "xgh2=" + xgh2);827 ok(isequalRel(xgh3, 3.555337411429e-04, TOL), "xgh3=" + xgh3);828 ok(isequalRel(xgh4, -3.239876023751e-05, TOL), "xgh4=" + xgh4);829 ok(isequalRel(xh2, 1.128589566218e-04, TOL), "xh2=" + xh2);830 ok(isequalRel(xh3, -4.733943399734e-04, TOL), "xh3=" + xh3);831 ok(isequalRel(xi2, -6.414087511194e-05, TOL), "xi2=" + xi2);832 ok(isequalRel(xi3, -5.695169719647e-04, TOL), "xi3=" + xi3);833 ok(isequalRel(xl2, -7.034864700241e-04, TOL), "xl2=" + xl2);834 ok(isequalRel(xl3, -5.240671428885e-04, TOL), "xl3=" + xl3);835 ok(isequalRel(xl4, 1.363840070226e-04, TOL), "xl4=" + xl4);836 ok(isequalRel(nm, 9.971131604593e-03, TOL), "nm=" + nm);837 ok(isequalRel(z1, 2.557388153538e+00, TOL), "z1=" + z1);838 ok(isequalRel(z2, 7.311693909959e+00, TOL), "z2=" + z2);839 ok(isequalRel(z3, 8.004285429241e+00, TOL), "z3=" + z3);840 ok(isequalRel(z11, -1.949045345611e+00, TOL), "z11=" + z11);841 ok(isequalRel(z12, 9.086631598833e-01, TOL), "z12=" + z12);842 ok(isequalRel(z13, 6.119118527262e+00, TOL), "z13=" + z13);843 ok(isequalRel(z21, 6.841370517902e-01, TOL), "z21=" + z21);844 ok(isequalRel(z22, 1.598836560401e+00, TOL), "z22=" + z22);845 ok(isequalRel(z23, -6.022288391897e+00, TOL), "z23=" + z23);846 ok(isequalRel(z31, -1.633514023053e+00, TOL), "z31=" + z31);847 ok(isequalRel(z32, 2.303228565651e+00, TOL), "z32=" + z32);848 ok(isequalRel(z33, 3.788583001984e+00, TOL), "z33=" + z33);849 ok(isequalRel(zmol, 3.567468389971e+00, TOL), "zmol=" + zmol);850 ok(isequalRel(zmos, 3.896090412269e+00, TOL), "zmos=" + zmos);851 });852// 11801853test(' 2.063002844893e+04, 1.156200000000e-03, 4.617827041512e-01, 0.000000000000e+00, 1.996377411601e-01, 6.145897708218e-01, 4.313874514604e-03',854 function () {855 var rets = dscom( 2.063002844893e+04, 1.156200000000e-03, 4.617827041512e-01, 0.000000000000e+00, 1.996377411601e-01, 6.145897708218e-01, 4.313874514604e-03),856 sinim = rets.shift(),857 cosim = rets.shift(),858 sinomm = rets.shift(),859 cosomm = rets.shift(),860 snodm = rets.shift(),861 cnodm = rets.shift(),862 day = rets.shift(),863 e3 = rets.shift(),864 ee2 = rets.shift(),865 em = rets.shift(),866 emsq = rets.shift(),867 gam = rets.shift(),868 peo = rets.shift(),869 pgho = rets.shift(),870 pho = rets.shift(),871 pinco = rets.shift(),872 plo = rets.shift(),873 rtemsq = rets.shift(),874 se2 = rets.shift(),875 se3 = rets.shift(),876 sgh2 = rets.shift(),877 sgh3 = rets.shift(),878 sgh4 = rets.shift(),879 sh2 = rets.shift(),880 sh3 = rets.shift(),881 si2 = rets.shift(),882 si3 = rets.shift(),883 sl2 = rets.shift(),884 sl3 = rets.shift(),885 sl4 = rets.shift(),886 s1 = rets.shift(),887 s2 = rets.shift(),888 s3 = rets.shift(),889 s4 = rets.shift(),890 s5 = rets.shift(),891 s6 = rets.shift(),892 s7 = rets.shift(),893 ss1 = rets.shift(),894 ss2 = rets.shift(),895 ss3 = rets.shift(),896 ss4 = rets.shift(),897 ss5 = rets.shift(),898 ss6 = rets.shift(),899 ss7 = rets.shift(),900 sz1 = rets.shift(),901 sz2 = rets.shift(),902 sz3 = rets.shift(),903 sz11 = rets.shift(),904 sz12 = rets.shift(),905 sz13 = rets.shift(),906 sz21 = rets.shift(),907 sz22 = rets.shift(),908 sz23 = rets.shift(),909 sz31 = rets.shift(),910 sz32 = rets.shift(),911 sz33 = rets.shift(),912 xgh2 = rets.shift(),913 xgh3 = rets.shift(),914 xgh4 = rets.shift(),915 xh2 = rets.shift(),916 xh3 = rets.shift(),917 xi2 = rets.shift(),918 xi3 = rets.shift(),919 xl2 = rets.shift(),920 xl3 = rets.shift(),921 xl4 = rets.shift(),922 nm = rets.shift(),923 z1 = rets.shift(),924 z2 = rets.shift(),925 z3 = rets.shift(),926 z11 = rets.shift(),927 z12 = rets.shift(),928 z13 = rets.shift(),929 z21 = rets.shift(),930 z22 = rets.shift(),931 z23 = rets.shift(),932 z31 = rets.shift(),933 z32 = rets.shift(),934 z33 = rets.shift(),935 zmol = rets.shift(),936 zmos = rets.shift(),937 TOL = 0.0000001;938 expect(81);939 ok(isequalRel(sinim, 1.983142799855e-01, TOL), "sinim=" + sinim);940 ok(isequalRel(cosim, 9.801384832532e-01, TOL), "cosim=" + cosim);941 ok(isequalRel(sinomm, 4.455447971855e-01, TOL), "sinomm=" + sinomm);942 ok(isequalRel(cosomm, 8.952596459692e-01, TOL), "cosomm=" + cosomm);943 ok(isequalRel(snodm, 5.766234094473e-01, TOL), "snodm=" + snodm);944 ok(isequalRel(cnodm, 8.170100633881e-01, TOL), "cnodm=" + cnodm);945 ok(isequalRel(day, 3.889152844893e+04, TOL), "day=" + day);946 ok(isequalRel(e3, -2.023952527045e-06, TOL), "e3=" + e3);947 ok(isequalRel(ee2, 3.000360099525e-06, TOL), "ee2=" + ee2);948 ok(isequalRel(em, 1.156200000000e-03, TOL), "em=" + em);949 ok(isequalRel(emsq, 1.336798440000e-06, TOL), "emsq=" + emsq);950 ok(isequalRel(gam, 8.145459478719e+01, TOL), "gam=" + gam);951 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);952 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);953 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);954 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);955 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);956 ok(isequalRel(rtemsq, 9.999993316006e-01, TOL), "rtemsq=" + rtemsq);957 ok(isequalRel(se2, -3.298847558934e-06, TOL), "se2=" + se2);958 ok(isequalRel(se3, 2.290506347297e-05, TOL), "se3=" + se3);959 ok(isequalRel(sgh2, -1.939779689075e-02, TOL), "sgh2=" + sgh2);960 ok(isequalRel(sgh3, -2.730323108731e-03, TOL), "sgh3=" + sgh3);961 ok(isequalRel(sgh4, -2.087272183414e-04, TOL), "sgh4=" + sgh4);962 ok(isequalRel(sh2, -2.473782067380e-04, TOL), "sh2=" + sh2);963 ok(isequalRel(sh3, -1.070558033105e-03, TOL), "sh3=" + sh3);964 ok(isequalRel(si2, -1.043419845310e-03, TOL), "si2=" + si2);965 ok(isequalRel(si3, 2.771277863689e-04, TOL), "si3=" + si3);966 ok(isequalRel(sl2, 1.883089760893e-02, TOL), "sl2=" + sl2);967 ok(isequalRel(sl3, 2.558661635920e-03, TOL), "sl3=" + sl3);968 ok(isequalRel(sl4, 4.870307806874e-04, TOL), "sl4=" + sl4);969 ok(isequalRel(s1, -1.928451076707e-06, TOL), "s1=" + s1);970 ok(isequalRel(s2, -5.559746452923e-05, TOL), "s2=" + s2);971 ok(isequalRel(s3, 1.111948547358e-04, TOL), "s3=" + s3);972 ok(isequalRel(s4, 1.111947804133e-04, TOL), "s4=" + s4);973 ok(isequalRel(s5, -2.173422574442e-02, TOL), "s5=" + s5);974 ok(isequalRel(s6, -7.779196827354e-01, TOL), "s6=" + s6);975 ok(isequalRel(s7, 5.247611804860e-01, TOL), "s7=" + s7);976 ok(isequalRel(ss1, -1.200648805206e-05, TOL), "ss1=" + ss1);977 ok(isequalRel(ss2, -3.461484201792e-04, TOL), "ss2=" + ss2);978 ok(isequalRel(ss3, 6.922963776275e-04, TOL), "ss3=" + ss3);979 ok(isequalRel(ss4, 6.922959148970e-04, TOL), "ss4=" + ss4);980 ok(isequalRel(ss5, -5.358747472118e-03, TOL), "ss5=" + ss5);981 ok(isequalRel(ss6, 1.373777054802e-01, TOL), "ss6=" + ss6);982 ok(isequalRel(ss7, -9.538619192246e-01, TOL), "ss7=" + ss7);983 ok(isequalRel(sz1, 1.078528759969e+01, TOL), "sz1=" + sz1);984 ok(isequalRel(sz2, -1.360031499331e+01, TOL), "sz2=" + sz2);985 ok(isequalRel(sz3, 8.937335105200e+00, TOL), "sz3=" + sz3);986 ok(isequalRel(sz11, -4.630982613971e-01, TOL), "sz11=" + sz11);987 ok(isequalRel(sz12, 1.507185623973e+00, TOL), "sz12=" + sz12);988 ok(isequalRel(sz13, -8.634002275673e-01, TOL), "sz13=" + sz13);989 ok(isequalRel(sz21, 1.168263836916e+00, TOL), "sz21=" + sz21);990 ok(isequalRel(sz22, -3.573296775556e-01, TOL), "sz22=" + sz22);991 ok(isequalRel(sz23, -3.781220061153e-01, TOL), "sz23=" + sz23);992 ok(isequalRel(sz31, 5.061183248572e+00, TOL), "sz31=" + sz31);993 ok(isequalRel(sz32, -1.400975830807e+01, TOL), "sz32=" + sz32);994 ok(isequalRel(sz33, 3.089249679430e+00, TOL), "sz33=" + sz33);995 ok(isequalRel(xgh2, 1.723156593166e-03, TOL), "xgh2=" + xgh2);996 ok(isequalRel(xgh3, 2.484248746878e-03, TOL), "xgh3=" + xgh3);997 ok(isequalRel(xgh4, -1.098826820044e-04, TOL), "xgh4=" + xgh4);998 ok(isequalRel(xh2, -1.510439919480e-04, TOL), "xh2=" + xh2);999 ok(isequalRel(xh3, 1.680607206591e-04, TOL), "xh3=" + xh3);1000 ok(isequalRel(xi2, 1.739604100604e-04, TOL), "xi2=" + xi2);1001 ok(isequalRel(xi3, 1.380206186465e-04, TOL), "xi3=" + xi3);1002 ok(isequalRel(xl2, -1.687937988178e-03, TOL), "xl2=" + xl2);1003 ok(isequalRel(xl3, -2.328138479321e-03, TOL), "xl3=" + xl3);1004 ok(isequalRel(xl4, 2.563932429410e-04, TOL), "xl4=" + xl4);1005 ok(isequalRel(nm, 4.313874514604e-03, TOL), "nm=" + nm);1006 ok(isequalRel(z1, 4.216765164053e+00, TOL), "z1=" + z1);1007 ok(isequalRel(z2, 7.590000419482e+00, TOL), "z2=" + z2);1008 ok(isequalRel(z3, 1.468549811421e+01, TOL), "z3=" + z3);1009 ok(isequalRel(z11, -1.569394720994e-01, TOL), "z11=" + z11);1010 ok(isequalRel(z12, -1.564463519456e+00, TOL), "z12=" + z12);1011 ok(isequalRel(z13, -1.398188689264e+00, TOL), "z13=" + z13);1012 ok(isequalRel(z21, -1.680069232651e-01, TOL), "z21=" + z21);1013 ok(isequalRel(z22, -1.358371224542e+00, TOL), "z22=" + z22);1014 ok(isequalRel(z23, 1.343399415874e+00, TOL), "z23=" + z23);1015 ok(isequalRel(z31, -1.774410090226e+00, TOL), "z31=" + z31);1016 ok(isequalRel(z32, 7.748369962881e+00, TOL), "z32=" + z32);1017 ok(isequalRel(z33, 9.396297462977e+00, TOL), "z33=" + z33);1018 ok(isequalRel(zmol, 1.634038675524e+00, TOL), "zmol=" + zmol);1019 ok(isequalRel(zmos, 2.966933705124e+00, TOL), "zmos=" + zmos);1020 });1021// 141281022test(' 2.060567415771e+04, 5.596327000000e-01, 4.278836976885e+00, 0.000000000000e+00, 1.083685404539e+00, 5.149138427074e+00, 2.131732105901e-02',1023 function () {1024 var rets = dscom( 2.060567415771e+04, 5.596327000000e-01, 4.278836976885e+00, 0.000000000000e+00, 1.083685404539e+00, 5.149138427074e+00, 2.131732105901e-02),1025 sinim = rets.shift(),1026 cosim = rets.shift(),1027 sinomm = rets.shift(),1028 cosomm = rets.shift(),1029 snodm = rets.shift(),1030 cnodm = rets.shift(),1031 day = rets.shift(),1032 e3 = rets.shift(),1033 ee2 = rets.shift(),1034 em = rets.shift(),1035 emsq = rets.shift(),1036 gam = rets.shift(),1037 peo = rets.shift(),1038 pgho = rets.shift(),1039 pho = rets.shift(),1040 pinco = rets.shift(),1041 plo = rets.shift(),1042 rtemsq = rets.shift(),1043 se2 = rets.shift(),1044 se3 = rets.shift(),1045 sgh2 = rets.shift(),1046 sgh3 = rets.shift(),1047 sgh4 = rets.shift(),1048 sh2 = rets.shift(),1049 sh3 = rets.shift(),1050 si2 = rets.shift(),1051 si3 = rets.shift(),1052 sl2 = rets.shift(),1053 sl3 = rets.shift(),1054 sl4 = rets.shift(),1055 s1 = rets.shift(),1056 s2 = rets.shift(),1057 s3 = rets.shift(),1058 s4 = rets.shift(),1059 s5 = rets.shift(),1060 s6 = rets.shift(),1061 s7 = rets.shift(),1062 ss1 = rets.shift(),1063 ss2 = rets.shift(),1064 ss3 = rets.shift(),1065 ss4 = rets.shift(),1066 ss5 = rets.shift(),1067 ss6 = rets.shift(),1068 ss7 = rets.shift(),1069 sz1 = rets.shift(),1070 sz2 = rets.shift(),1071 sz3 = rets.shift(),1072 sz11 = rets.shift(),1073 sz12 = rets.shift(),1074 sz13 = rets.shift(),1075 sz21 = rets.shift(),1076 sz22 = rets.shift(),1077 sz23 = rets.shift(),1078 sz31 = rets.shift(),1079 sz32 = rets.shift(),1080 sz33 = rets.shift(),1081 xgh2 = rets.shift(),1082 xgh3 = rets.shift(),1083 xgh4 = rets.shift(),1084 xh2 = rets.shift(),1085 xh3 = rets.shift(),1086 xi2 = rets.shift(),1087 xi3 = rets.shift(),1088 xl2 = rets.shift(),1089 xl3 = rets.shift(),1090 xl4 = rets.shift(),1091 nm = rets.shift(),1092 z1 = rets.shift(),1093 z2 = rets.shift(),1094 z3 = rets.shift(),1095 z11 = rets.shift(),1096 z12 = rets.shift(),1097 z13 = rets.shift(),1098 z21 = rets.shift(),1099 z22 = rets.shift(),1100 z23 = rets.shift(),1101 z31 = rets.shift(),1102 z32 = rets.shift(),1103 z33 = rets.shift(),1104 zmol = rets.shift(),1105 zmos = rets.shift(),1106 TOL = 0.0000001;1107 expect(81);1108 ok(isequalRel(sinim, 8.836888491856e-01, TOL), "sinim=" + sinim);1109 ok(isequalRel(cosim, 4.680747993911e-01, TOL), "cosim=" + cosim);1110 ok(isequalRel(sinomm, -9.074792921580e-01, TOL), "sinomm=" + sinomm);1111 ok(isequalRel(cosomm, -4.200968153942e-01, TOL), "cosomm=" + cosomm);1112 ok(isequalRel(snodm, -9.061314198773e-01, TOL), "snodm=" + snodm);1113 ok(isequalRel(cnodm, 4.229962764744e-01, TOL), "cnodm=" + cnodm);1114 ok(isequalRel(day, 3.886717415771e+04, TOL), "day=" + day);1115 ok(isequalRel(e3, -1.668567580056e-04, TOL), "e3=" + e3);1116 ok(isequalRel(ee2, -8.275330366745e-05, TOL), "ee2=" + ee2);1117 ok(isequalRel(em, 5.596327000000e-01, TOL), "em=" + em);1118 ok(isequalRel(emsq, 3.131887589093e-01, TOL), "emsq=" + emsq);1119 ok(isequalRel(gam, 8.140724108268e+01, TOL), "gam=" + gam);1120 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);1121 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);1122 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);1123 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);1124 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);1125 ok(isequalRel(rtemsq, 8.287407562626e-01, TOL), "rtemsq=" + rtemsq);1126 ok(isequalRel(se2, 1.125966825154e-03, TOL), "se2=" + se2);1127 ok(isequalRel(se3, 5.685080602400e-05, TOL), "se3=" + se3);1128 ok(isequalRel(sgh2, -8.864271738038e-05, TOL), "sgh2=" + sgh2);1129 ok(isequalRel(sgh3, 1.625809438486e-03, TOL), "sgh3=" + sgh3);1130 ok(isequalRel(sgh4, -3.500523155064e-05, TOL), "sgh4=" + sgh4);1131 ok(isequalRel(sh2, 2.744561082561e-04, TOL), "sh2=" + sh2);1132 ok(isequalRel(sh3, -9.759618675546e-04, TOL), "sh3=" + sh3);1133 ok(isequalRel(si2, -4.991454790905e-04, TOL), "si2=" + si2);1134 ok(isequalRel(si3, -4.573037379522e-04, TOL), "si3=" + si3);1135 ok(isequalRel(sl2, 1.462141038683e-04, TOL), "sl2=" + sl2);1136 ok(isequalRel(sl3, -1.456991037415e-03, TOL), "sl3=" + sl3);1137 ok(isequalRel(sl4, 1.117866087106e-04, TOL), "sl4=" + sl4);1138 ok(isequalRel(s1, -1.565426252795e-04, TOL), "s1=" + s1);1139 ok(isequalRel(s2, -1.357597034132e-05, TOL), "s2=" + s2);1140 ok(isequalRel(s3, 2.250191985532e-05, TOL), "s3=" + s3);1141 ok(isequalRel(s4, 1.864825807826e-05, TOL), "s4=" + s4);1142 ok(isequalRel(s5, 8.624271127389e-02, TOL), "s5=" + s5);1143 ok(isequalRel(s6, 2.643155610802e-01, TOL), "s6=" + s6);1144 ok(isequalRel(s7, 5.329435280254e-01, TOL), "s7=" + s7);1145 ok(isequalRel(ss1, -9.746304600404e-04, TOL), "ss1=" + ss1);1146 ok(isequalRel(ss2, -8.452365095850e-05, TOL), "ss2=" + ss2);1147 ok(isequalRel(ss3, 1.400963888348e-04, TOL), "ss3=" + ss3);1148 ok(isequalRel(ss4, 1.161035872326e-04, TOL), "ss4=" + ss4);1149 ok(isequalRel(ss5, 1.603399424520e-02, TOL), "ss5=" + ss5);1150 ok(isequalRel(ss6, -5.776378182905e-01, TOL), "ss6=" + ss6);1151 ok(isequalRel(ss7, -2.916531360083e-02, TOL), "ss7=" + ss7);1152 ok(isequalRel(sz1, 2.070490436592e+00, TOL), "sz1=" + sz1);1153 ok(isequalRel(sz2, -5.218339497697e-01, TOL), "sz2=" + sz2);1154 ok(isequalRel(sz3, 7.270449727238e+00, TOL), "sz3=" + sz3);1155 ok(isequalRel(sz11, 7.572811749063e-03, TOL), "sz11=" + sz11);1156 ok(isequalRel(sz12, 2.952697105663e+00, TOL), "sz12=" + sz12);1157 ok(isequalRel(sz13, 2.712754928035e+00, TOL), "sz13=" + sz13);1158 ok(isequalRel(sz21, 4.211910638255e-03, TOL), "sz21=" + sz21);1159 ok(isequalRel(sz22, 1.623546221346e+00, TOL), "sz22=" + sz22);1160 ok(isequalRel(sz23, -5.769094474540e+00, TOL), "sz23=" + sz23);1161 ok(isequalRel(sz31, -2.992321735369e+00, TOL), "sz31=" + sz31);1162 ok(isequalRel(sz32, -3.817397872589e-01, TOL), "sz32=" + sz32);1163 ok(isequalRel(sz33, 4.009225233322e+00, TOL), "sz33=" + sz33);1164 ok(isequalRel(xgh2, 2.432700701456e-04, TOL), "xgh2=" + xgh2);1165 ok(isequalRel(xgh3, -1.126161998557e-04, TOL), "xgh3=" + xgh3);1166 ok(isequalRel(xgh4, -1.842820863294e-05, TOL), "xgh4=" + xgh4);1167 ok(isequalRel(xh2, -1.621327565099e-04, TOL), "xh2=" + xh2);1168 ok(isequalRel(xh3, 5.347365712173e-05, TOL), "xh3=" + xh3);1169 ok(isequalRel(xi2, -1.237488399592e-05, TOL), "xi2=" + xi2);1170 ok(isequalRel(xi3, 1.015094158511e-04, TOL), "xi3=" + xi3);1171 ok(isequalRel(xl2, -2.580143538619e-04, TOL), "xl2=" + xl2);1172 ok(isequalRel(xl3, 5.639729900996e-05, TOL), "xl3=" + xl3);1173 ok(isequalRel(xl4, 5.884911644441e-05, TOL), "xl4=" + xl4);1174 ok(isequalRel(nm, 2.131732105901e-02, TOL), "nm=" + nm);1175 ok(isequalRel(z1, 5.540026309401e+00, TOL), "z1=" + z1);1176 ok(isequalRel(z2, 5.733163114988e+00, TOL), "z2=" + z2);1177 ok(isequalRel(z3, 4.286859926875e+00, TOL), "z3=" + z3);1178 ok(isequalRel(z11, 3.326689201301e+00, TOL), "z11=" + z11);1179 ok(isequalRel(z12, 4.557642542225e-01, TOL), "z12=" + z12);1180 ok(isequalRel(z13, -4.118802452673e-01, TOL), "z13=" + z13);1181 ok(isequalRel(z21, -3.822206433384e+00, TOL), "z21=" + z21);1182 ok(isequalRel(z22, -5.971313741622e+00, TOL), "z22=" + z22);1183 ok(isequalRel(z23, -1.852783409566e+00, TOL), "z23=" + z23);1184 ok(isequalRel(z31, 2.175359468061e+00, TOL), "z31=" + z31);1185 ok(isequalRel(z32, 6.522595009269e+00, TOL), "z32=" + z32);1186 ok(isequalRel(z33, -8.441236220770e-01, TOL), "z33=" + z33);1187 ok(isequalRel(zmol, 2.363784803869e+00, TOL), "zmol=" + zmol);1188 ok(isequalRel(zmos, 2.547991747703e+00, TOL), "zmos=" + zmos);1189 });1190// 169251191test(' 2.045279166667e+04, 7.864447000000e-01, 3.426128445555e+00, 0.000000000000e+00, 2.155725972308e-01, 3.271188586538e+00, 1.077283640185e-03',1192 function () {1193 var rets = dscom( 2.045279166667e+04, 7.864447000000e-01, 3.426128445555e+00, 0.000000000000e+00, 2.155725972308e-01, 3.271188586538e+00, 1.077283640185e-03),1194 sinim = rets.shift(),1195 cosim = rets.shift(),1196 sinomm = rets.shift(),1197 cosomm = rets.shift(),1198 snodm = rets.shift(),1199 cnodm = rets.shift(),1200 day = rets.shift(),1201 e3 = rets.shift(),1202 ee2 = rets.shift(),1203 em = rets.shift(),1204 emsq = rets.shift(),1205 gam = rets.shift(),1206 peo = rets.shift(),1207 pgho = rets.shift(),1208 pho = rets.shift(),1209 pinco = rets.shift(),1210 plo = rets.shift(),1211 rtemsq = rets.shift(),1212 se2 = rets.shift(),1213 se3 = rets.shift(),1214 sgh2 = rets.shift(),1215 sgh3 = rets.shift(),1216 sgh4 = rets.shift(),1217 sh2 = rets.shift(),1218 sh3 = rets.shift(),1219 si2 = rets.shift(),1220 si3 = rets.shift(),1221 sl2 = rets.shift(),1222 sl3 = rets.shift(),1223 sl4 = rets.shift(),1224 s1 = rets.shift(),1225 s2 = rets.shift(),1226 s3 = rets.shift(),1227 s4 = rets.shift(),1228 s5 = rets.shift(),1229 s6 = rets.shift(),1230 s7 = rets.shift(),1231 ss1 = rets.shift(),1232 ss2 = rets.shift(),1233 ss3 = rets.shift(),1234 ss4 = rets.shift(),1235 ss5 = rets.shift(),1236 ss6 = rets.shift(),1237 ss7 = rets.shift(),1238 sz1 = rets.shift(),1239 sz2 = rets.shift(),1240 sz3 = rets.shift(),1241 sz11 = rets.shift(),1242 sz12 = rets.shift(),1243 sz13 = rets.shift(),1244 sz21 = rets.shift(),1245 sz22 = rets.shift(),1246 sz23 = rets.shift(),1247 sz31 = rets.shift(),1248 sz32 = rets.shift(),1249 sz33 = rets.shift(),1250 xgh2 = rets.shift(),1251 xgh3 = rets.shift(),1252 xgh4 = rets.shift(),1253 xh2 = rets.shift(),1254 xh3 = rets.shift(),1255 xi2 = rets.shift(),1256 xi3 = rets.shift(),1257 xl2 = rets.shift(),1258 xl3 = rets.shift(),1259 xl4 = rets.shift(),1260 nm = rets.shift(),1261 z1 = rets.shift(),1262 z2 = rets.shift(),1263 z3 = rets.shift(),1264 z11 = rets.shift(),1265 z12 = rets.shift(),1266 z13 = rets.shift(),1267 z21 = rets.shift(),1268 z22 = rets.shift(),1269 z23 = rets.shift(),1270 z31 = rets.shift(),1271 z32 = rets.shift(),1272 z33 = rets.shift(),1273 zmol = rets.shift(),1274 zmos = rets.shift(),1275 TOL = 0.0000001;1276 expect(81);1277 ok(isequalRel(sinim, 2.139068072733e-01, TOL), "sinim=" + sinim);1278 ok(isequalRel(cosim, 9.768540719074e-01, TOL), "cosim=" + cosim);1279 ok(isequalRel(sinomm, -2.807119383680e-01, TOL), "sinomm=" + sinomm);1280 ok(isequalRel(cosomm, -9.597920648024e-01, TOL), "cosomm=" + cosomm);1281 ok(isequalRel(snodm, -1.292334745570e-01, TOL), "snodm=" + snodm);1282 ok(isequalRel(cnodm, -9.916141936529e-01, TOL), "cnodm=" + cnodm);1283 ok(isequalRel(day, 3.871429166667e+04, TOL), "day=" + day);1284 ok(isequalRel(e3, -4.548826202443e-03, TOL), "e3=" + e3);1285 ok(isequalRel(ee2, 2.057187923104e-03, TOL), "ee2=" + ee2);1286 ok(isequalRel(em, 7.864447000000e-01, TOL), "em=" + em);1287 ok(isequalRel(emsq, 6.184952661581e-01, TOL), "emsq=" + emsq);1288 ok(isequalRel(gam, 8.110998125934e+01, TOL), "gam=" + gam);1289 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);1290 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);1291 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);1292 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);1293 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);1294 ok(isequalRel(rtemsq, 6.176606947523e-01, TOL), "rtemsq=" + rtemsq);1295 ok(isequalRel(se2, 2.969569919355e-02, TOL), "se2=" + se2);1296 ok(isequalRel(se3, 1.468368332662e-02, TOL), "se3=" + se3);1297 ok(isequalRel(sgh2, -1.634808994984e-02, TOL), "sgh2=" + sgh2);1298 ok(isequalRel(sgh3, 4.324216378214e-02, TOL), "sgh3=" + sgh3);1299 ok(isequalRel(sgh4, -5.162579880111e-04, TOL), "sgh4=" + sgh4);1300 ok(isequalRel(sh2, 1.425174198066e-02, TOL), "sh2=" + sh2);1301 ok(isequalRel(sh3, 4.931955088329e-03, TOL), "sh3=" + sh3);1302 ok(isequalRel(si2, 5.144176519066e-02, TOL), "si2=" + si2);1303 ok(isequalRel(si3, -8.646214930954e-04, TOL), "si3=" + si3);1304 ok(isequalRel(sl2, 3.951910009817e-02, TOL), "sl2=" + sl2);1305 ok(isequalRel(sl3, -1.241558054094e-01, TOL), "sl3=" + sl3);1306 ok(isequalRel(sl4, 2.467220444289e-03, TOL), "sl4=" + sl4);1307 ok(isequalRel(s1, -3.244378761083e-03, TOL), "s1=" + s1);1308 ok(isequalRel(s2, -3.604476295552e-04, TOL), "s2=" + s2);1309 ok(isequalRel(s3, 4.452686665858e-04, TOL), "s3=" + s3);1310 ok(isequalRel(s4, 2.750249539548e-04, TOL), "s4=" + s4);1311 ok(isequalRel(s5, -1.401774145800e-01, TOL), "s5=" + s5);1312 ok(isequalRel(s6, -3.170388038198e-01, TOL), "s6=" + s6);1313 ok(isequalRel(s7, 7.010319289793e-01, TOL), "s7=" + s7);1314 ok(isequalRel(ss1, -2.019942082109e-02, TOL), "ss1=" + ss1);1315 ok(isequalRel(ss2, -2.244137904207e-03, TOL), "ss2=" + ss2);1316 ok(isequalRel(ss3, 2.772231554066e-03, TOL), "ss3=" + ss3);1317 ok(isequalRel(ss4, 1.712298467698e-03, TOL), "ss4=" + ss4);1318 ok(isequalRel(ss5, -1.156263617362e-01, TOL), "ss5=" + ss5);1319 ok(isequalRel(ss6, -7.350631351406e-01, TOL), "ss6=" + ss6);1320 ok(isequalRel(ss7, -3.634679295182e-01, TOL), "ss7=" + ss7);1321 ok(isequalRel(sz1, 1.342983301258e+00, TOL), "sz1=" + sz1);1322 ok(isequalRel(sz2, -7.127669411348e+00, TOL), "sz2=" + sz2);1323 ok(isequalRel(sz3, 2.373573855782e+01, TOL), "sz3=" + sz3);1324 ok(isequalRel(sz11, 1.488445240897e+00, TOL), "sz11=" + sz11);1325 ok(isequalRel(sz12, -1.146136453874e+01, TOL), "sz12=" + sz12);1326 ok(isequalRel(sz13, 1.681085250112e+00, TOL), "sz13=" + sz13);1327 ok(isequalRel(sz21, -1.539375336156e+00, TOL), "sz21=" + sz21);1328 ok(isequalRel(sz22, 3.175326693145e+00, TOL), "sz22=" + sz22);1329 ok(isequalRel(sz23, -4.405223915392e-01, TOL), "sz23=" + sz23);1330 ok(isequalRel(sz31, -1.641109798937e+00, TOL), "sz31=" + sz31);1331 ok(isequalRel(sz32, -4.773726735800e+00, TOL), "sz32=" + sz32);1332 ok(isequalRel(sz33, 1.098582545735e+01, TOL), "sz33=" + sz33);1333 ok(isequalRel(xgh2, 6.919617584769e-03, TOL), "xgh2=" + xgh2);1334 ok(isequalRel(xgh3, 2.084732624778e-03, TOL), "xgh3=" + xgh3);1335 ok(isequalRel(xgh4, -2.717796594982e-04, TOL), "xgh4=" + xgh4);1336 ok(isequalRel(xh2, 7.186248636015e-04, TOL), "xh2=" + xh2);1337 ok(isequalRel(xh3, -2.561986795698e-03, TOL), "xh3=" + xh3);1338 ok(isequalRel(xi2, -5.475272881099e-04, TOL), "xi2=" + xi2);1339 ok(isequalRel(xi3, -9.211923499783e-03, TOL), "xi3=" + xi3);1340 ok(isequalRel(xl2, -2.030877598251e-02, TOL), "xl2=" + xl2);1341 ok(isequalRel(xl3, -4.767341552120e-03, TOL), "xl3=" + xl3);1342 ok(isequalRel(xl4, 1.298847374429e-03, TOL), "xl4=" + xl4);1343 ok(isequalRel(nm, 1.077283640185e-03, TOL), "nm=" + nm);1344 ok(isequalRel(z1, 9.726328330151e+00, TOL), "z1=" + z1);1345 ok(isequalRel(z2, 2.280508096183e+01, TOL), "z2=" + z2);1346 ok(isequalRel(z3, 1.507965982400e+01, TOL), "z3=" + z3);1347 ok(isequalRel(z11, -4.806687489380e+00, TOL), "z11=" + z11);1348 ok(isequalRel(z12, 7.595101801411e-01, TOL), "z12=" + z12);1349 ok(isequalRel(z13, 7.971761783749e+00, TOL), "z13=" + z13);1350 ok(isequalRel(z21, 7.614242560927e-01, TOL), "z21=" + z21);1351 ok(isequalRel(z22, 9.968505889305e-01, TOL), "z22=" + z22);1352 ok(isequalRel(z23, -2.792471768775e+00, TOL), "z23=" + z23);1353 ok(isequalRel(z31, 2.853856110337e+00, TOL), "z31=" + z31);1354 ok(isequalRel(z32, 1.257998135308e+01, TOL), "z32=" + z32);1355 ok(isequalRel(z33, 6.643935146438e+00, TOL), "z33=" + z33);1356 ok(isequalRel(zmol, 5.201540682068e+00, TOL), "zmol=" + zmol);1357 ok(isequalRel(zmos, 6.201295960309e+00, TOL), "zmos=" + zmos);1358 });1359// 204131360test(' 2.063002341244e+04, 7.421690000000e-01, 4.416489349660e+00, 0.000000000000e+00, 1.085156717098e+00, 3.455919470557e+00, 8.782535528761e-03',1361 function () {1362 var rets = dscom( 2.063002341244e+04, 7.421690000000e-01, 4.416489349660e+00, 0.000000000000e+00, 1.085156717098e+00, 3.455919470557e+00, 8.782535528761e-03),1363 sinim = rets.shift(),1364 cosim = rets.shift(),1365 sinomm = rets.shift(),1366 cosomm = rets.shift(),1367 snodm = rets.shift(),1368 cnodm = rets.shift(),1369 day = rets.shift(),1370 e3 = rets.shift(),1371 ee2 = rets.shift(),1372 em = rets.shift(),1373 emsq = rets.shift(),1374 gam = rets.shift(),1375 peo = rets.shift(),1376 pgho = rets.shift(),1377 pho = rets.shift(),1378 pinco = rets.shift(),1379 plo = rets.shift(),1380 rtemsq = rets.shift(),1381 se2 = rets.shift(),1382 se3 = rets.shift(),1383 sgh2 = rets.shift(),1384 sgh3 = rets.shift(),1385 sgh4 = rets.shift(),1386 sh2 = rets.shift(),1387 sh3 = rets.shift(),1388 si2 = rets.shift(),1389 si3 = rets.shift(),1390 sl2 = rets.shift(),1391 sl3 = rets.shift(),1392 sl4 = rets.shift(),1393 s1 = rets.shift(),1394 s2 = rets.shift(),1395 s3 = rets.shift(),1396 s4 = rets.shift(),1397 s5 = rets.shift(),1398 s6 = rets.shift(),1399 s7 = rets.shift(),1400 ss1 = rets.shift(),1401 ss2 = rets.shift(),1402 ss3 = rets.shift(),1403 ss4 = rets.shift(),1404 ss5 = rets.shift(),1405 ss6 = rets.shift(),1406 ss7 = rets.shift(),1407 sz1 = rets.shift(),1408 sz2 = rets.shift(),1409 sz3 = rets.shift(),1410 sz11 = rets.shift(),1411 sz12 = rets.shift(),1412 sz13 = rets.shift(),1413 sz21 = rets.shift(),1414 sz22 = rets.shift(),1415 sz23 = rets.shift(),1416 sz31 = rets.shift(),1417 sz32 = rets.shift(),1418 sz33 = rets.shift(),1419 xgh2 = rets.shift(),1420 xgh3 = rets.shift(),1421 xgh4 = rets.shift(),1422 xh2 = rets.shift(),1423 xh3 = rets.shift(),1424 xi2 = rets.shift(),1425 xi3 = rets.shift(),1426 xl2 = rets.shift(),1427 xl3 = rets.shift(),1428 xl4 = rets.shift(),1429 nm = rets.shift(),1430 z1 = rets.shift(),1431 z2 = rets.shift(),1432 z3 = rets.shift(),1433 z11 = rets.shift(),1434 z12 = rets.shift(),1435 z13 = rets.shift(),1436 z21 = rets.shift(),1437 z22 = rets.shift(),1438 z23 = rets.shift(),1439 z31 = rets.shift(),1440 z32 = rets.shift(),1441 z33 = rets.shift(),1442 zmol = rets.shift(),1443 zmos = rets.shift(),1444 TOL = 0.0000001;1445 expect(81);1446 ok(isequalRel(sinim, 8.843765767810e-01, TOL), "sinim=" + sinim);1447 ok(isequalRel(cosim, 4.667741107229e-01, TOL), "cosim=" + cosim);1448 ok(isequalRel(sinomm, -9.565401966673e-01, TOL), "sinomm=" + sinomm);1449 ok(isequalRel(cosomm, -2.916005009591e-01, TOL), "cosomm=" + cosomm);1450 ok(isequalRel(snodm, -3.091763410854e-01, TOL), "snodm=" + snodm);1451 ok(isequalRel(cnodm, -9.510047266513e-01, TOL), "cnodm=" + cnodm);1452 ok(isequalRel(day, 3.889152341244e+04, TOL), "day=" + day);1453 ok(isequalRel(e3, -5.809658803806e-05, TOL), "e3=" + e3);1454 ok(isequalRel(ee2, 1.029719050358e-04, TOL), "ee2=" + ee2);1455 ok(isequalRel(em, 7.421690000000e-01, TOL), "em=" + em);1456 ok(isequalRel(emsq, 5.508148245610e-01, TOL), "emsq=" + emsq);1457 ok(isequalRel(gam, 8.145458499440e+01, TOL), "gam=" + gam);1458 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);1459 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);1460 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);1461 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);1462 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);1463 ok(isequalRel(rtemsq, 6.702127837031e-01, TOL), "rtemsq=" + rtemsq);1464 ok(isequalRel(se2, -5.827763896555e-04, TOL), "se2=" + se2);1465 ok(isequalRel(se3, 7.782941825865e-04, TOL), "se3=" + se3);1466 ok(isequalRel(sgh2, -1.403967386252e-05, TOL), "sgh2=" + sgh2);1467 ok(isequalRel(sgh3, -1.232243049360e-03, TOL), "sgh3=" + sgh3);1468 ok(isequalRel(sgh4, -6.871312109088e-05, TOL), "sgh4=" + sgh4);1469 ok(isequalRel(sh2, 1.040864137284e-03, TOL), "sh2=" + sh2);1470 ok(isequalRel(sh3, 1.047903595216e-03, TOL), "sh3=" + sh3);1471 ok(isequalRel(si2, 1.704326979978e-03, TOL), "si2=" + si2);1472 ok(isequalRel(si3, 5.269146587838e-04, TOL), "si3=" + si3);1473 ok(isequalRel(sl2, 6.958156453603e-04, TOL), "sl2=" + sl2);1474 ok(isequalRel(sl3, -1.138733166786e-03, TOL), "sl3=" + sl3);1475 ok(isequalRel(sl4, 2.956953768062e-04, TOL), "sl4=" + sl4);1476 ok(isequalRel(s1, -4.075107416397e-04, TOL), "s1=" + s1);1477 ok(isequalRel(s2, -4.074643162103e-05, TOL), "s2=" + s2);1478 ok(isequalRel(s3, 5.461755872540e-05, TOL), "s3=" + s3);1479 ok(isequalRel(s4, 3.660538607241e-05, TOL), "s4=" + s4);1480 ok(isequalRel(s5, -1.448694740914e-01, TOL), "s5=" + s5);1481 ok(isequalRel(s6, -1.263425653782e-01, TOL), "s6=" + s6);1482 ok(isequalRel(s7, 7.128227811161e-02, TOL), "s7=" + s7);1483 ok(isequalRel(ss1, -2.537151660045e-03, TOL), "ss1=" + ss1);1484 ok(isequalRel(ss2, -2.536862616486e-04, TOL), "ss2=" + ss2);1485 ok(isequalRel(ss3, 3.400475512134e-04, TOL), "ss3=" + ss3);1486 ok(isequalRel(ss4, 2.279042158902e-04, TOL), "ss4=" + ss4);1487 ok(isequalRel(ss5, -1.671806012792e-01, TOL), "ss5=" + ss5);1488 ok(isequalRel(ss6, 1.148485521842e-01, TOL), "ss6=" + ss6);1489 ok(isequalRel(ss7, -1.533795150765e-01, TOL), "ss7=" + ss7);1490 ok(isequalRel(sz1, 2.823148385069e-01, TOL), "sz1=" + sz1);1491 ok(isequalRel(sz2, -1.023115212677e+00, TOL), "sz2=" + sz2);1492 ok(isequalRel(sz3, 1.956688264698e+00, TOL), "sz3=" + sz3);1493 ok(isequalRel(sz11, 7.560455550249e-01, TOL), "sz11=" + sz11);1494 ok(isequalRel(sz12, -3.359123527034e+00, TOL), "sz12=" + sz12);1495 ok(isequalRel(sz13, -2.824707906370e-01, TOL), "sz13=" + sz13);1496 ok(isequalRel(sz21, -1.883155445920e+00, TOL), "sz21=" + sz21);1497 ok(isequalRel(sz22, 2.051479119366e+00, TOL), "sz22=" + sz22);1498 ok(isequalRel(sz23, 1.821980115480e-01, TOL), "sz23=" + sz23);1499 ok(isequalRel(sz31, 1.221664044049e-01, TOL), "sz31=" + sz31);1500 ok(isequalRel(sz32, -3.080169844091e-02, TOL), "sz32=" + sz32);1501 ok(isequalRel(sz33, -2.581256708122e+00, TOL), "sz33=" + sz33);1502 ok(isequalRel(xgh2, -1.645505874222e-04, TOL), "xgh2=" + xgh2);1503 ok(isequalRel(xgh3, 1.067426866480e-04, TOL), "xgh3=" + xgh3);1504 ok(isequalRel(xgh4, -3.617344251676e-05, TOL), "xgh4=" + xgh4);1505 ok(isequalRel(xh2, -7.385557332388e-05, TOL), "xh2=" + xh2);1506 ok(isequalRel(xh3, -1.379346924380e-04, TOL), "xh3=" + xh3);1507 ok(isequalRel(xi2, -1.440041796867e-04, TOL), "xi2=" + xi2);1508 ok(isequalRel(xi3, -2.339553088854e-04, TOL), "xi3=" + xi3);1509 ok(isequalRel(xl2, -1.733725252342e-04, TOL), "xl2=" + xl2);1510 ok(isequalRel(xl3, 1.029442407285e-04, TOL), "xl3=" + xl3);1511 ok(isequalRel(xl4, 1.556663348362e-04, TOL), "xl4=" + xl4);1512 ok(isequalRel(nm, 8.782535528761e-03, TOL), "nm=" + nm);1513 ok(isequalRel(z1, 1.395145995474e+00, TOL), "z1=" + z1);1514 ok(isequalRel(z2, 1.587150078475e+00, TOL), "z2=" + z2);1515 ok(isequalRel(z3, 4.527362363151e-01, TOL), "z3=" + z3);1516 ok(isequalRel(z11, -1.416027632726e+00, TOL), "z11=" + z11);1517 ok(isequalRel(z12, 1.767077188820e+00, TOL), "z12=" + z12);1518 ok(isequalRel(z13, 1.454841049240e+00, TOL), "z13=" + z13);1519 ok(isequalRel(z21, 7.775545601669e-01, TOL), "z21=" + z21);1520 ok(isequalRel(z22, -9.062827146532e-01, TOL), "z22=" + z22);1521 ok(isequalRel(z23, -9.150438705484e-01, TOL), "z23=" + z23);1522 ok(isequalRel(z31, -2.067807705441e+00, TOL), "z31=" + z31);1523 ok(isequalRel(z32, -2.247628082609e+00, TOL), "z32=" + z32);1524 ok(isequalRel(z33, -6.097888439984e-01, TOL), "z33=" + z33);1525 ok(isequalRel(zmol, 1.632890219145e+00, TOL), "zmol=" + zmol);1526 ok(isequalRel(zmos, 2.966847067538e+00, TOL), "zmos=" + zmos);1527 });1528// 218971529// 223121530// *** error: t:= 494.202867 *** code = 11531test(' 2.063055909107e+04, 7.541712000000e-01, 4.421379762224e+00, 0.000000000000e+00, 1.108345161540e+00, 6.186235757890e+00, 8.582332516240e-03',1532 function () {1533 var rets = dscom( 2.063055909107e+04, 7.541712000000e-01, 4.421379762224e+00, 0.000000000000e+00, 1.108345161540e+00, 6.186235757890e+00, 8.582332516240e-03),1534 sinim = rets.shift(),1535 cosim = rets.shift(),1536 sinomm = rets.shift(),1537 cosomm = rets.shift(),1538 snodm = rets.shift(),1539 cnodm = rets.shift(),1540 day = rets.shift(),1541 e3 = rets.shift(),1542 ee2 = rets.shift(),1543 em = rets.shift(),1544 emsq = rets.shift(),1545 gam = rets.shift(),1546 peo = rets.shift(),1547 pgho = rets.shift(),1548 pho = rets.shift(),1549 pinco = rets.shift(),1550 plo = rets.shift(),1551 rtemsq = rets.shift(),1552 se2 = rets.shift(),1553 se3 = rets.shift(),1554 sgh2 = rets.shift(),1555 sgh3 = rets.shift(),1556 sgh4 = rets.shift(),1557 sh2 = rets.shift(),1558 sh3 = rets.shift(),1559 si2 = rets.shift(),1560 si3 = rets.shift(),1561 sl2 = rets.shift(),1562 sl3 = rets.shift(),1563 sl4 = rets.shift(),1564 s1 = rets.shift(),1565 s2 = rets.shift(),1566 s3 = rets.shift(),1567 s4 = rets.shift(),1568 s5 = rets.shift(),1569 s6 = rets.shift(),1570 s7 = rets.shift(),1571 ss1 = rets.shift(),1572 ss2 = rets.shift(),1573 ss3 = rets.shift(),1574 ss4 = rets.shift(),1575 ss5 = rets.shift(),1576 ss6 = rets.shift(),1577 ss7 = rets.shift(),1578 sz1 = rets.shift(),1579 sz2 = rets.shift(),1580 sz3 = rets.shift(),1581 sz11 = rets.shift(),1582 sz12 = rets.shift(),1583 sz13 = rets.shift(),1584 sz21 = rets.shift(),1585 sz22 = rets.shift(),1586 sz23 = rets.shift(),1587 sz31 = rets.shift(),1588 sz32 = rets.shift(),1589 sz33 = rets.shift(),1590 xgh2 = rets.shift(),1591 xgh3 = rets.shift(),1592 xgh4 = rets.shift(),1593 xh2 = rets.shift(),1594 xh3 = rets.shift(),1595 xi2 = rets.shift(),1596 xi3 = rets.shift(),1597 xl2 = rets.shift(),1598 xl3 = rets.shift(),1599 xl4 = rets.shift(),1600 nm = rets.shift(),1601 z1 = rets.shift(),1602 z2 = rets.shift(),1603 z3 = rets.shift(),1604 z11 = rets.shift(),1605 z12 = rets.shift(),1606 z13 = rets.shift(),1607 z21 = rets.shift(),1608 z22 = rets.shift(),1609 z23 = rets.shift(),1610 z31 = rets.shift(),1611 z32 = rets.shift(),1612 z33 = rets.shift(),1613 zmol = rets.shift(),1614 zmos = rets.shift(),1615 TOL = 0.0000001;1616 expect(81);1617 ok(isequalRel(sinim, 8.949616166056e-01, TOL), "sinim=" + sinim);1618 ok(isequalRel(cosim, 4.461431438481e-01, TOL), "cosim=" + cosim);1619 ok(isequalRel(sinomm, -9.579547993872e-01, TOL), "sinomm=" + sinomm);1620 ok(isequalRel(cosomm, -2.869191564378e-01, TOL), "cosomm=" + cosomm);1621 ok(isequalRel(snodm, -9.679774570435e-02, TOL), "snodm=" + snodm);1622 ok(isequalRel(cnodm, 9.953040723450e-01, TOL), "cnodm=" + cnodm);1623 ok(isequalRel(day, 3.889205909107e+04, TOL), "day=" + day);1624 ok(isequalRel(e3, -1.880237977527e-04, TOL), "e3=" + e3);1625 ok(isequalRel(ee2, 6.551908742706e-04, TOL), "ee2=" + ee2);1626 ok(isequalRel(em, 7.541712000000e-01, TOL), "em=" + em);1627 ok(isequalRel(emsq, 5.687741989094e-01, TOL), "emsq=" + emsq);1628 ok(isequalRel(gam, 8.145562655079e+01, TOL), "gam=" + gam);1629 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);1630 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);1631 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);1632 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);1633 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);1634 ok(isequalRel(rtemsq, 6.566778518349e-01, TOL), "rtemsq=" + rtemsq);1635 ok(isequalRel(se2, -1.668215845123e-03, TOL), "se2=" + se2);1636 ok(isequalRel(se3, 3.610858069376e-03, TOL), "se3=" + se3);1637 ok(isequalRel(sgh2, -4.299448087716e-03, TOL), "sgh2=" + sgh2);1638 ok(isequalRel(sgh3, -1.722984622184e-03, TOL), "sgh3=" + sgh3);1639 ok(isequalRel(sgh4, -6.889598529018e-05, TOL), "sgh4=" + sgh4);1640 ok(isequalRel(sh2, 3.935976325614e-03, TOL), "sh2=" + sh2);1641 ok(isequalRel(sh3, 3.059743184660e-03, TOL), "sh3=" + sh3);1642 ok(isequalRel(si2, 1.789568818084e-03, TOL), "si2=" + si2);1643 ok(isequalRel(si3, 2.366876188168e-04, TOL), "si3=" + si3);1644 ok(isequalRel(sl2, 9.202998763432e-03, TOL), "sl2=" + sl2);1645 ok(isequalRel(sl3, 2.742276317175e-03, TOL), "sl3=" + sl3);1646 ok(isequalRel(sl4, 3.044773891692e-04, TOL), "sl4=" + sl4);1647 ok(isequalRel(s1, -4.152029536535e-04, TOL), "s1=" + s1);1648 ok(isequalRel(s2, -4.255636236536e-05, TOL), "s2=" + s2);1649 ok(isequalRel(s3, 5.589164123999e-05, TOL), "s3=" + s3);1650 ok(isequalRel(s4, 3.670280290501e-05, TOL), "s4=" + s4);1651 ok(isequalRel(s5, -6.781121236965e-02, TOL), "s5=" + s5);1652 ok(isequalRel(s6, -7.890007386814e-01, TOL), "s6=" + s6);1653 ok(isequalRel(s7, 2.264239645916e-01, TOL), "s7=" + s7);1654 ok(isequalRel(ss1, -2.585043179178e-03, TOL), "ss1=" + ss1);1655 ok(isequalRel(ss2, -2.649548450829e-04, TOL), "ss2=" + ss2);1656 ok(isequalRel(ss3, 3.479799570045e-04, TOL), "ss3=" + ss3);1657 ok(isequalRel(ss4, 2.285107306474e-04, TOL), "ss4=" + ss4);1658 ok(isequalRel(ss5, -9.300055233772e-02, TOL), "ss5=" + ss5);1659 ok(isequalRel(ss6, 3.226669207231e-01, TOL), "ss6=" + ss6);1660 ok(isequalRel(ss7, -6.984134923665e-01, TOL), "ss7=" + ss7);1661 ok(isequalRel(sz1, 1.011433491910e+01, TOL), "sz1=" + sz1);1662 ok(isequalRel(sz2, -1.322346097553e+01, TOL), "sz2=" + sz2);1663 ok(isequalRel(sz3, 6.174055799605e+00, TOL), "sz3=" + sz3);1664 ok(isequalRel(sz11, 1.436091100595e+00, TOL), "sz11=" + sz11);1665 ok(isequalRel(sz12, -3.377120387296e+00, TOL), "sz12=" + sz12);1666 ok(isequalRel(sz13, 9.894345792869e-01, TOL), "sz13=" + sz13);1667 ok(isequalRel(sz21, -7.445807450018e+00, TOL), "sz21=" + sz21);1668 ok(isequalRel(sz22, 7.427636064521e+00, TOL), "sz22=" + sz22);1669 ok(isequalRel(sz23, -1.671723221244e+00, TOL), "sz23=" + sz23);1670 ok(isequalRel(sz31, 4.048778658683e+00, TOL), "sz31=" + sz31);1671 ok(isequalRel(sz32, -9.407540896517e+00, TOL), "sz32=" + sz32);1672 ok(isequalRel(sz33, 2.787486533023e-01, TOL), "sz33=" + sz33);1673 ok(isequalRel(xgh2, 2.558144451794e-04, TOL), "xgh2=" + xgh2);1674 ok(isequalRel(xgh3, 7.760342525429e-04, TOL), "xgh3=" + xgh3);1675 ok(isequalRel(xgh4, -3.626970983073e-05, TOL), "xgh4=" + xgh4);1676 ok(isequalRel(xh2, -4.442804590880e-05, TOL), "xh2=" + xh2);1677 ok(isequalRel(xh3, -7.585547023917e-04, TOL), "xh3=" + xh3);1678 ok(isequalRel(xi2, -1.445258766608e-04, TOL), "xi2=" + xi2);1679 ok(isequalRel(xi3, -2.241607759555e-04, TOL), "xi3=" + xi3);1680 ok(isequalRel(xl2, -6.443953743437e-04, TOL), "xl2=" + xl2);1681 ok(isequalRel(xl3, -1.634546261908e-03, TOL), "xl3=" + xl3);1682 ok(isequalRel(xl4, 1.602895511062e-04, TOL), "xl4=" + xl4);1683 ok(isequalRel(nm, 8.582332516240e-03, TOL), "nm=" + nm);1684 ok(isequalRel(z1, 1.813115954744e+00, TOL), "z1=" + z1);1685 ok(isequalRel(z2, 5.764684665250e+00, TOL), "z2=" + z2);1686 ok(isequalRel(z3, 1.643557313837e+01, TOL), "z3=" + z3);1687 ok(isequalRel(z11, -1.421821877921e-01, TOL), "z11=" + z11);1688 ok(isequalRel(z12, 1.698052519386e+00, TOL), "z12=" + z12);1689 ok(isequalRel(z13, 2.491510678518e+00, TOL), "z13=" + z13);1690 ok(isequalRel(z21, 8.950346641696e-02, TOL), "z21=" + z21);1691 ok(isequalRel(z22, -5.219906429897e-01, TOL), "z22=" + z22);1692 ok(isequalRel(z23, -8.822850177431e+00, TOL), "z23=" + z23);1693 ok(isequalRel(z31, -2.661737982326e+00, TOL), "z31=" + z31);1694 ok(isequalRel(z32, 3.484944267628e+00, TOL), "z32=" + z32);1695 ok(isequalRel(z33, 7.910128348311e+00, TOL), "z33=" + z33);1696 ok(isequalRel(zmol, 1.755039480870e+00, TOL), "zmol=" + zmol);1697 ok(isequalRel(zmos, 2.976061799015e+00, TOL), "zmos=" + zmos);1698 });1699// 226741700test(' 2.062945752052e+04, 7.258491000000e-01, 5.167015834603e+00, 0.000000000000e+00, 1.230387309486e-01, 3.138517383448e+00, 9.853789469239e-03',1701 function () {1702 var rets = dscom( 2.062945752052e+04, 7.258491000000e-01, 5.167015834603e+00, 0.000000000000e+00, 1.230387309486e-01, 3.138517383448e+00, 9.853789469239e-03),1703 sinim = rets.shift(),1704 cosim = rets.shift(),1705 sinomm = rets.shift(),1706 cosomm = rets.shift(),1707 snodm = rets.shift(),1708 cnodm = rets.shift(),1709 day = rets.shift(),1710 e3 = rets.shift(),1711 ee2 = rets.shift(),1712 em = rets.shift(),1713 emsq = rets.shift(),1714 gam = rets.shift(),1715 peo = rets.shift(),1716 pgho = rets.shift(),1717 pho = rets.shift(),1718 pinco = rets.shift(),1719 plo = rets.shift(),1720 rtemsq = rets.shift(),1721 se2 = rets.shift(),1722 se3 = rets.shift(),1723 sgh2 = rets.shift(),1724 sgh3 = rets.shift(),1725 sgh4 = rets.shift(),1726 sh2 = rets.shift(),1727 sh3 = rets.shift(),1728 si2 = rets.shift(),1729 si3 = rets.shift(),1730 sl2 = rets.shift(),1731 sl3 = rets.shift(),1732 sl4 = rets.shift(),1733 s1 = rets.shift(),1734 s2 = rets.shift(),1735 s3 = rets.shift(),1736 s4 = rets.shift(),1737 s5 = rets.shift(),1738 s6 = rets.shift(),1739 s7 = rets.shift(),1740 ss1 = rets.shift(),1741 ss2 = rets.shift(),1742 ss3 = rets.shift(),1743 ss4 = rets.shift(),1744 ss5 = rets.shift(),1745 ss6 = rets.shift(),1746 ss7 = rets.shift(),1747 sz1 = rets.shift(),1748 sz2 = rets.shift(),1749 sz3 = rets.shift(),1750 sz11 = rets.shift(),1751 sz12 = rets.shift(),1752 sz13 = rets.shift(),1753 sz21 = rets.shift(),1754 sz22 = rets.shift(),1755 sz23 = rets.shift(),1756 sz31 = rets.shift(),1757 sz32 = rets.shift(),1758 sz33 = rets.shift(),1759 xgh2 = rets.shift(),1760 xgh3 = rets.shift(),1761 xgh4 = rets.shift(),1762 xh2 = rets.shift(),1763 xh3 = rets.shift(),1764 xi2 = rets.shift(),1765 xi3 = rets.shift(),1766 xl2 = rets.shift(),1767 xl3 = rets.shift(),1768 xl4 = rets.shift(),1769 nm = rets.shift(),1770 z1 = rets.shift(),1771 z2 = rets.shift(),1772 z3 = rets.shift(),1773 z11 = rets.shift(),1774 z12 = rets.shift(),1775 z13 = rets.shift(),1776 z21 = rets.shift(),1777 z22 = rets.shift(),1778 z23 = rets.shift(),1779 z31 = rets.shift(),1780 z32 = rets.shift(),1781 z33 = rets.shift(),1782 zmol = rets.shift(),1783 zmos = rets.shift(),1784 TOL = 0.0000001;1785 expect(81);1786 ok(isequalRel(sinim, 1.227285282698e-01, TOL), "sinim=" + sinim);1787 ok(isequalRel(cosim, 9.924402794872e-01, TOL), "cosim=" + cosim);1788 ok(isequalRel(sinomm, -8.984249491476e-01, TOL), "sinomm=" + sinomm);1789 ok(isequalRel(cosomm, 4.391271009049e-01, TOL), "cosomm=" + cosomm);1790 ok(isequalRel(snodm, 3.075265294731e-03, TOL), "snodm=" + snodm);1791 ok(isequalRel(cnodm, -9.999952713605e-01, TOL), "cnodm=" + cnodm);1792 ok(isequalRel(day, 3.889095752052e+04, TOL), "day=" + day);1793 ok(isequalRel(e3, 5.883771878310e-04, TOL), "e3=" + e3);1794 ok(isequalRel(ee2, 1.201802618946e-04, TOL), "ee2=" + ee2);1795 ok(isequalRel(em, 7.258491000000e-01, TOL), "em=" + em);1796 ok(isequalRel(emsq, 5.268569159708e-01, TOL), "emsq=" + emsq);1797 ok(isequalRel(gam, 8.145348469226e+01, TOL), "gam=" + gam);1798 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);1799 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);1800 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);1801 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);1802 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);1803 ok(isequalRel(rtemsq, 6.878539699887e-01, TOL), "rtemsq=" + rtemsq);1804 ok(isequalRel(se2, -3.424600980580e-03, TOL), "se2=" + se2);1805 ok(isequalRel(se3, -1.945460736508e-03, TOL), "se3=" + se3);1806 ok(isequalRel(sgh2, 2.807746435654e-03, TOL), "sgh2=" + sgh2);1807 ok(isequalRel(sgh3, -4.287929901990e-03, TOL), "sgh3=" + sgh3);1808 ok(isequalRel(sgh4, -6.285500316310e-05, TOL), "sgh4=" + sgh4);1809 ok(isequalRel(sh2, -1.277477731310e-04, TOL), "sh2=" + sh2);1810 ok(isequalRel(sh3, 3.309216641173e-03, TOL), "sh3=" + sh3);1811 ok(isequalRel(si2, 7.513453732828e-04, TOL), "si2=" + si2);1812 ok(isequalRel(si3, -1.615208443659e-03, TOL), "si3=" + si3);1813 ok(isequalRel(sl2, -6.591258953724e-03, TOL), "sl2=" + sl2);1814 ok(isequalRel(sl3, 8.653034599493e-03, TOL), "sl3=" + sl3);1815 ok(isequalRel(sl4, 2.613596417420e-04, TOL), "sl4=" + sl4);1816 ok(isequalRel(s1, -3.645715464322e-04, TOL), "s1=" + s1);1817 ok(isequalRel(s2, -3.538528327605e-05, TOL), "s2=" + s2);1818 ok(isequalRel(s3, 4.867981516121e-05, TOL), "s3=" + s3);1819 ok(isequalRel(s4, 3.348460411695e-05, TOL), "s4=" + s4);1820 ok(isequalRel(s5, 1.335551822618e-01, TOL), "s5=" + s5);1821 ok(isequalRel(s6, -1.648239736078e-01, TOL), "s6=" + s6);1822 ok(isequalRel(s7, -8.069433744748e-01, TOL), "s7=" + s7);1823 ok(isequalRel(ss1, -2.269813307285e-03, TOL), "ss1=" + ss1);1824 ok(isequalRel(ss2, -2.203078864713e-04, TOL), "ss2=" + ss2);1825 ok(isequalRel(ss3, 3.030793086581e-04, TOL), "ss3=" + ss3);1826 ok(isequalRel(ss4, 2.084743056819e-04, TOL), "ss4=" + ss4);1827 ok(isequalRel(ss5, 1.012064733473e-01, TOL), "ss5=" + ss5);1828 ok(isequalRel(ss6, 7.543794393988e-01, TOL), "ss6=" + ss6);1829 ok(isequalRel(ss7, 4.285508262429e-01, TOL), "ss7=" + ss7);1830 ok(isequalRel(sz1, 1.743998961512e+01, TOL), "sz1=" + sz1);1831 ok(isequalRel(sz2, 1.087381877520e+01, TOL), "sz2=" + sz2);1832 ok(isequalRel(sz3, 3.164791090678e+00, TOL), "sz3=" + sz3);1833 ok(isequalRel(sz11, -3.199300228592e+00, TOL), "sz11=" + sz11);1834 ok(isequalRel(sz12, -1.705216697680e+00, TOL), "sz12=" + sz12);1835 ok(isequalRel(sz13, 4.664978268716e-01, TOL), "sz13=" + sz13);1836 ok(isequalRel(sz21, -7.168375325603e+00, TOL), "sz21=" + sz21);1837 ok(isequalRel(sz22, -2.899300955068e-01, TOL), "sz22=" + sz22);1838 ok(isequalRel(sz23, 3.420608511894e-01, TOL), "sz23=" + sz23);1839 ok(isequalRel(sz31, 8.465783464086e+00, TOL), "sz31=" + sz31);1840 ok(isequalRel(sz32, 6.734034744640e+00, TOL), "sz32=" + sz32);1841 ok(isequalRel(sz33, -1.818289405144e+00, TOL), "sz33=" + sz33);1842 ok(isequalRel(xgh2, -7.580873897080e-04, TOL), "xgh2=" + xgh2);1843 ok(isequalRel(xgh3, 8.944532635768e-05, TOL), "xgh3=" + xgh3);1844 ok(isequalRel(xgh4, -3.308948578837e-05, TOL), "xgh4=" + xgh4);1845 ok(isequalRel(xh2, 4.592174078680e-04, TOL), "xh2=" + xh2);1846 ok(isequalRel(xh3, -3.581021323765e-04, TOL), "xh3=" + xh3);1847 ok(isequalRel(xi2, -3.094906804917e-04, TOL), "xi2=" + xi2);1848 ok(isequalRel(xi3, 8.206020674696e-05, TOL), "xi3=" + xi3);1849 ok(isequalRel(xl2, 1.595875573261e-03, TOL), "xl2=" + xl2);1850 ok(isequalRel(xl3, -2.025915791658e-05, TOL), "xl3=" + xl3);1851 ok(isequalRel(xl4, 1.375905769766e-04, TOL), "xl4=" + xl4);1852 ok(isequalRel(nm, 9.853789469239e-03, TOL), "nm=" + nm);1853 ok(isequalRel(z1, 9.381951731311e+00, TOL), "z1=" + z1);1854 ok(isequalRel(z2, -1.639155333660e+01, TOL), "z2=" + z2);1855 ok(isequalRel(z3, 9.590037545210e+00, TOL), "z3=" + z3);1856 ok(isequalRel(z11, -8.992776337465e-01, TOL), "z11=" + z11);1857 ok(isequalRel(z12, 4.373155332364e+00, TOL), "z12=" + z12);1858 ok(isequalRel(z13, -2.058802147183e+00, TOL), "z13=" + z13);1859 ok(isequalRel(z21, -1.165590178778e+00, TOL), "z21=" + z21);1860 ok(isequalRel(z22, 6.488819155206e+00, TOL), "z22=" + z22);1861 ok(isequalRel(z23, -6.225633496546e+00, TOL), "z23=" + z23);1862 ok(isequalRel(z31, 2.282389782041e+00, TOL), "z31=" + z31);1863 ok(isequalRel(z32, -1.131993956178e+01, TOL), "z32=" + z32);1864 ok(isequalRel(z33, 3.618008474818e+00, TOL), "z33=" + z33);1865 ok(isequalRel(zmol, 1.503851507578e+00, TOL), "zmol=" + zmol);1866 ok(isequalRel(zmos, 2.957112607744e+00, TOL), "zmos=" + zmos);1867 });1868// 231771869test(' 1.637649999999e+04, 9.728298000000e-01, 5.312084111370e-01, 0.000000000000e+00, 5.017647066558e-01, 4.139920985731e-02, 3.189177226396e-04',1870 function () {1871 var rets = dscom( 1.637649999999e+04, 9.728298000000e-01, 5.312084111370e-01, 0.000000000000e+00, 5.017647066558e-01, 4.139920985731e-02, 3.189177226396e-04),1872 sinim = rets.shift(),1873 cosim = rets.shift(),1874 sinomm = rets.shift(),1875 cosomm = rets.shift(),1876 snodm = rets.shift(),1877 cnodm = rets.shift(),1878 day = rets.shift(),1879 e3 = rets.shift(),1880 ee2 = rets.shift(),1881 em = rets.shift(),1882 emsq = rets.shift(),1883 gam = rets.shift(),1884 peo = rets.shift(),1885 pgho = rets.shift(),1886 pho = rets.shift(),1887 pinco = rets.shift(),1888 plo = rets.shift(),1889 rtemsq = rets.shift(),1890 se2 = rets.shift(),1891 se3 = rets.shift(),1892 sgh2 = rets.shift(),1893 sgh3 = rets.shift(),1894 sgh4 = rets.shift(),1895 sh2 = rets.shift(),1896 sh3 = rets.shift(),1897 si2 = rets.shift(),1898 si3 = rets.shift(),1899 sl2 = rets.shift(),1900 sl3 = rets.shift(),1901 sl4 = rets.shift(),1902 s1 = rets.shift(),1903 s2 = rets.shift(),1904 s3 = rets.shift(),1905 s4 = rets.shift(),1906 s5 = rets.shift(),1907 s6 = rets.shift(),1908 s7 = rets.shift(),1909 ss1 = rets.shift(),1910 ss2 = rets.shift(),1911 ss3 = rets.shift(),1912 ss4 = rets.shift(),1913 ss5 = rets.shift(),1914 ss6 = rets.shift(),1915 ss7 = rets.shift(),1916 sz1 = rets.shift(),1917 sz2 = rets.shift(),1918 sz3 = rets.shift(),1919 sz11 = rets.shift(),1920 sz12 = rets.shift(),1921 sz13 = rets.shift(),1922 sz21 = rets.shift(),1923 sz22 = rets.shift(),1924 sz23 = rets.shift(),1925 sz31 = rets.shift(),1926 sz32 = rets.shift(),1927 sz33 = rets.shift(),1928 xgh2 = rets.shift(),1929 xgh3 = rets.shift(),1930 xgh4 = rets.shift(),1931 xh2 = rets.shift(),1932 xh3 = rets.shift(),1933 xi2 = rets.shift(),1934 xi3 = rets.shift(),1935 xl2 = rets.shift(),1936 xl3 = rets.shift(),1937 xl4 = rets.shift(),1938 nm = rets.shift(),1939 z1 = rets.shift(),1940 z2 = rets.shift(),1941 z3 = rets.shift(),1942 z11 = rets.shift(),1943 z12 = rets.shift(),1944 z13 = rets.shift(),1945 z21 = rets.shift(),1946 z22 = rets.shift(),1947 z23 = rets.shift(),1948 z31 = rets.shift(),1949 z32 = rets.shift(),1950 z33 = rets.shift(),1951 zmol = rets.shift(),1952 zmos = rets.shift(),1953 TOL = 0.0000001;1954 expect(81);1955 ok(isequalRel(sinim, 4.809734670776e-01, TOL), "sinim=" + sinim);1956 ok(isequalRel(cosim, 8.767351504117e-01, TOL), "cosim=" + cosim);1957 ok(isequalRel(sinomm, 5.065755975198e-01, TOL), "sinomm=" + sinomm);1958 ok(isequalRel(cosomm, 8.621955485836e-01, TOL), "cosomm=" + cosomm);1959 ok(isequalRel(snodm, 4.138738522378e-02, TOL), "snodm=" + snodm);1960 ok(isequalRel(cnodm, 9.991431750977e-01, TOL), "cnodm=" + cnodm);1961 ok(isequalRel(day, 3.463799999999e+04, TOL), "day=" + day);1962 ok(isequalRel(e3, 6.618130467595e-03, TOL), "e3=" + e3);1963 ok(isequalRel(ee2, -7.503198877723e-03, TOL), "ee2=" + ee2);1964 ok(isequalRel(em, 9.728298000000e-01, TOL), "em=" + em);1965 ok(isequalRel(emsq, 9.463978197680e-01, TOL), "emsq=" + emsq);1966 ok(isequalRel(gam, 7.318417018398e+01, TOL), "gam=" + gam);1967 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);1968 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);1969 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);1970 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);1971 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);1972 ok(isequalRel(rtemsq, 2.315214465918e-01, TOL), "rtemsq=" + rtemsq);1973 ok(isequalRel(se2, 4.629809809051e-02, TOL), "se2=" + se2);1974 ok(isequalRel(se3, 4.271626851497e-02, TOL), "se3=" + se3);1975 ok(isequalRel(sgh2, -4.391480163694e-02, TOL), "sgh2=" + sgh2);1976 ok(isequalRel(sgh3, 4.776472532865e-02, TOL), "sgh3=" + sgh3);1977 ok(isequalRel(sgh4, -6.536713592881e-04, TOL), "sgh4=" + sgh4);1978 ok(isequalRel(sh2, 5.087055669958e-02, TOL), "sh2=" + sh2);1979 ok(isequalRel(sh3, 2.194123446194e-02, TOL), "sh3=" + sh3);1980 ok(isequalRel(si2, 8.750068533754e-02, TOL), "si2=" + si2);1981 ok(isequalRel(si3, 3.511647715856e-02, TOL), "si3=" + si3);1982 ok(isequalRel(sl2, 3.692252174204e-01, TOL), "sl2=" + sl2);1983 ok(isequalRel(sl3, -4.025541103842e-01, TOL), "sl3=" + sl3);1984 ok(isequalRel(sl4, 9.259903790801e-03, TOL), "sl4=" + sl4);1985 ok(isequalRel(s1, -5.081511320759e-03, TOL), "s1=" + s1);1986 ok(isequalRel(s2, -3.248271505978e-03, TOL), "s2=" + s2);1987 ok(isequalRel(s3, 1.504089035974e-03, TOL), "s3=" + s3);1988 ok(isequalRel(s4, 3.482288694116e-04, TOL), "s4=" + s4);1989 ok(isequalRel(s5, -2.328528826856e-03, TOL), "s5=" + s5);1990 ok(isequalRel(s6, 7.382841839859e-01, TOL), "s6=" + s6);1991 ok(isequalRel(s7, -6.511970602682e-01, TOL), "s7=" + s7);1992 ok(isequalRel(ss1, -3.163736207572e-02, TOL), "ss1=" + ss1);1993 ok(isequalRel(ss2, -2.022365695321e-02, TOL), "ss2=" + ss2);1994 ok(isequalRel(ss3, 9.364420626367e-03, TOL), "ss3=" + ss3);1995 ok(isequalRel(ss4, 2.168064209911e-03, TOL), "ss4=" + ss4);1996 ok(isequalRel(ss5, -2.895833784881e-03, TOL), "ss5=" + ss5);1997 ok(isequalRel(ss6, -7.316997223047e-01, TOL), "ss6=" + ss6);1998 ok(isequalRel(ss7, -6.750921333570e-01, TOL), "ss7=" + ss7);1999 ok(isequalRel(sz1, 3.995477449554e+00, TOL), "sz1=" + sz1);2000 ok(isequalRel(sz2, -1.971425847643e+01, TOL), "sz2=" + sz2);2001 ok(isequalRel(sz3, 2.548928504566e+01, TOL), "sz3=" + sz3);2002 ok(isequalRel(sz11, 8.310226113488e-01, TOL), "sz11=" + sz11);2003 ok(isequalRel(sz12, -2.163324999528e+00, TOL), "sz12=" + sz12);2004 ok(isequalRel(sz13, -3.718033631310e-02, TOL), "sz13=" + sz13);2005 ok(isequalRel(sz21, -5.208379182207e-01, TOL), "sz21=" + sz21);2006 ok(isequalRel(sz22, 1.257699258281e+00, TOL), "sz22=" + sz22);2007 ok(isequalRel(sz23, 2.162664475876e-02, TOL), "sz23=" + sz23);2008 ok(isequalRel(sz31, -1.002513894286e+00, TOL), "sz31=" + sz31);2009 ok(isequalRel(sz32, -1.012765245517e+01, TOL), "sz32=" + sz32);2010 ok(isequalRel(sz33, 1.001300979507e+01, TOL), "sz33=" + sz33);2011 ok(isequalRel(xgh2, -6.878292929739e-03, TOL), "xgh2=" + xgh2);2012 ok(isequalRel(xgh3, -7.775516402908e-03, TOL), "xgh3=" + xgh3);2013 ok(isequalRel(xgh4, -3.441197687525e-04, TOL), "xgh4=" + xgh4);2014 ok(isequalRel(xh2, -1.179576494215e-02, TOL), "xh2=" + xh2);2015 ok(isequalRel(xh3, 1.169037463880e-02, TOL), "xh3=" + xh3);2016 ok(isequalRel(xi2, -1.956589871380e-02, TOL), "xi2=" + xi2);2017 ok(isequalRel(xi3, 2.039566495961e-02, TOL), "xi3=" + xi3);2018 ok(isequalRel(xl2, 5.825328423320e-02, TOL), "xl2=" + xl2);2019 ok(isequalRel(xl3, 6.572632496892e-02, TOL), "xl3=" + xl3);2020 ok(isequalRel(xl4, 4.874798177836e-03, TOL), "xl4=" + xl4);2021 ok(isequalRel(nm, 3.189177226396e-04, TOL), "nm=" + nm);2022 ok(isequalRel(z1, 2.567833618728e+01, TOL), "z1=" + z1);2023 ok(isequalRel(z2, -1.936497203288e+01, TOL), "z2=" + z2);2024 ok(isequalRel(z3, 3.829122677668e+00, TOL), "z3=" + z3);2025 ok(isequalRel(z11, 1.717602413072e+00, TOL), "z11=" + z11);2026 ok(isequalRel(z12, 3.011740040478e+00, TOL), "z12=" + z12);2027 ok(isequalRel(z13, -1.421861902345e+00, TOL), "z13=" + z13);2028 ok(isequalRel(z21, -1.018792332212e+00, TOL), "z21=" + z21);2029 ok(isequalRel(z22, -1.815698737072e+00, TOL), "z22=" + z22);2030 ok(isequalRel(z23, 7.806838841821e-01, TOL), "z23=" + z23);2031 ok(isequalRel(z31, 1.012719038286e+01, TOL), "z31=" + z31);2032 ok(isequalRel(z32, -9.876109555996e+00, TOL), "z32=" + z32);2033 ok(isequalRel(z33, -1.037186103277e+00, TOL), "z33=" + z33);2034 ok(isequalRel(zmol, 5.607868196210e+00, TOL), "zmol=" + zmol);2035 ok(isequalRel(zmos, 5.196058843771e+00, TOL), "zmos=" + zmos);2036 });2037// 233332038test(' 2.062576535463e+04, 5.782022000000e-01, 4.789944431026e+00, 0.000000000000e+00, 1.209984410530e-01, 4.972443038932e-03, 1.952919673236e-02',2039 function () {2040 var rets = dscom( 2.062576535463e+04, 5.782022000000e-01, 4.789944431026e+00, 0.000000000000e+00, 1.209984410530e-01, 4.972443038932e-03, 1.952919673236e-02),2041 sinim = rets.shift(),2042 cosim = rets.shift(),2043 sinomm = rets.shift(),2044 cosomm = rets.shift(),2045 snodm = rets.shift(),2046 cnodm = rets.shift(),2047 day = rets.shift(),2048 e3 = rets.shift(),2049 ee2 = rets.shift(),2050 em = rets.shift(),2051 emsq = rets.shift(),2052 gam = rets.shift(),2053 peo = rets.shift(),2054 pgho = rets.shift(),2055 pho = rets.shift(),2056 pinco = rets.shift(),2057 plo = rets.shift(),2058 rtemsq = rets.shift(),2059 se2 = rets.shift(),2060 se3 = rets.shift(),2061 sgh2 = rets.shift(),2062 sgh3 = rets.shift(),2063 sgh4 = rets.shift(),2064 sh2 = rets.shift(),2065 sh3 = rets.shift(),2066 si2 = rets.shift(),2067 si3 = rets.shift(),2068 sl2 = rets.shift(),2069 sl3 = rets.shift(),2070 sl4 = rets.shift(),2071 s1 = rets.shift(),2072 s2 = rets.shift(),2073 s3 = rets.shift(),2074 s4 = rets.shift(),2075 s5 = rets.shift(),2076 s6 = rets.shift(),2077 s7 = rets.shift(),2078 ss1 = rets.shift(),2079 ss2 = rets.shift(),2080 ss3 = rets.shift(),2081 ss4 = rets.shift(),2082 ss5 = rets.shift(),2083 ss6 = rets.shift(),2084 ss7 = rets.shift(),2085 sz1 = rets.shift(),2086 sz2 = rets.shift(),2087 sz3 = rets.shift(),2088 sz11 = rets.shift(),2089 sz12 = rets.shift(),2090 sz13 = rets.shift(),2091 sz21 = rets.shift(),2092 sz22 = rets.shift(),2093 sz23 = rets.shift(),2094 sz31 = rets.shift(),2095 sz32 = rets.shift(),2096 sz33 = rets.shift(),2097 xgh2 = rets.shift(),2098 xgh3 = rets.shift(),2099 xgh4 = rets.shift(),2100 xh2 = rets.shift(),2101 xh3 = rets.shift(),2102 xi2 = rets.shift(),2103 xi3 = rets.shift(),2104 xl2 = rets.shift(),2105 xl3 = rets.shift(),2106 xl4 = rets.shift(),2107 nm = rets.shift(),2108 z1 = rets.shift(),2109 z2 = rets.shift(),2110 z3 = rets.shift(),2111 z11 = rets.shift(),2112 z12 = rets.shift(),2113 z13 = rets.shift(),2114 z21 = rets.shift(),2115 z22 = rets.shift(),2116 z23 = rets.shift(),2117 z31 = rets.shift(),2118 z32 = rets.shift(),2119 z33 = rets.shift(),2120 zmol = rets.shift(),2121 zmos = rets.shift(),2122 TOL = 0.0000001;2123 expect(81);2124 ok(isequalRel(sinim, 1.207034083544e-01, TOL), "sinim=" + sinim);2125 ok(isequalRel(cosim, 9.926886154337e-01, TOL), "cosim=" + cosim);2126 ok(isequalRel(sinomm, -9.969940831688e-01, TOL), "sinomm=" + sinomm);2127 ok(isequalRel(cosomm, 7.747772664665e-02, TOL), "cosomm=" + cosomm);2128 ok(isequalRel(snodm, 4.972422548191e-03, TOL), "snodm=" + snodm);2129 ok(isequalRel(cnodm, 9.999876374306e-01, TOL), "cnodm=" + cnodm);2130 ok(isequalRel(day, 3.888726535463e+04, TOL), "day=" + day);2131 ok(isequalRel(e3, 1.917688589693e-04, TOL), "e3=" + e3);2132 ok(isequalRel(ee2, 2.600403830731e-04, TOL), "ee2=" + ee2);2133 ok(isequalRel(em, 5.782022000000e-01, TOL), "em=" + em);2134 ok(isequalRel(emsq, 3.343177840848e-01, TOL), "emsq=" + emsq);2135 ok(isequalRel(gam, 8.144630576305e+01, TOL), "gam=" + gam);2136 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);2137 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);2138 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);2139 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);2140 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);2141 ok(isequalRel(rtemsq, 8.158935077050e-01, TOL), "rtemsq=" + rtemsq);2142 ok(isequalRel(se2, -2.021959812118e-03, TOL), "se2=" + se2);2143 ok(isequalRel(se3, 4.664465684109e-04, TOL), "se3=" + se3);2144 ok(isequalRel(sgh2, -7.734435306744e-04, TOL), "sgh2=" + sgh2);2145 ok(isequalRel(sgh3, -3.415977655410e-03, TOL), "sgh3=" + sgh3);2146 ok(isequalRel(sgh4, -3.761802411036e-05, TOL), "sgh4=" + sgh4);2147 ok(isequalRel(sh2, -2.320545150812e-04, TOL), "sh2=" + sh2);2148 ok(isequalRel(sh3, -6.756286295110e-04, TOL), "sh3=" + sh3);2149 ok(isequalRel(si2, -1.848221304876e-04, TOL), "si2=" + si2);2150 ok(isequalRel(si3, 1.185722011180e-04, TOL), "si3=" + si3);2151 ok(isequalRel(sl2, 1.207731977398e-03, TOL), "sl2=" + sl2);2152 ok(isequalRel(sl3, 5.449750974362e-03, TOL), "sl3=" + sl3);2153 ok(isequalRel(sl4, 1.229961546518e-04, TOL), "sl4=" + sl4);2154 ok(isequalRel(s1, -1.738090138239e-04, TOL), "s1=" + s1);2155 ok(isequalRel(s2, -1.505235132354e-05, TOL), "s2=" + s2);2156 ok(isequalRel(s3, 2.456223144115e-05, TOL), "s3=" + s3);2157 ok(isequalRel(s4, 2.004016516758e-05, TOL), "s4=" + s4);2158 ok(isequalRel(s5, 1.141559521691e-02, TOL), "s5=" + s5);2159 ok(isequalRel(s6, -7.480635709048e-01, TOL), "s6=" + s6);2160 ok(isequalRel(s7, -5.516654595475e-01, TOL), "s7=" + s7);2161 ok(isequalRel(ss1, -1.082130562202e-03, TOL), "ss1=" + ss1);2162 ok(isequalRel(ss2, -9.371556193695e-05, TOL), "ss2=" + ss2);2163 ok(isequalRel(ss3, 1.529238371106e-04, TOL), "ss3=" + ss3);2164 ok(isequalRel(ss4, 1.247695658719e-04, TOL), "ss4=" + ss4);2165 ok(isequalRel(ss5, 6.794274893840e-03, TOL), "ss5=" + ss5);2166 ok(isequalRel(ss6, 9.342494717103e-01, TOL), "ss6=" + ss6);2167 ok(isequalRel(ss7, -2.155223152841e-01, TOL), "ss7=" + ss7);2168 ok(isequalRel(sz1, 2.003045339565e+01, TOL), "sz1=" + sz1);2169 ok(isequalRel(sz2, -3.948802228017e+00, TOL), "sz2=" + sz2);2170 ok(isequalRel(sz3, 2.211939691926e+00, TOL), "sz3=" + sz3);2171 ok(isequalRel(sz11, 4.180135541233e-01, TOL), "sz11=" + sz11);2172 ok(isequalRel(sz12, 9.860802553364e-01, TOL), "sz12=" + sz12);2173 ok(isequalRel(sz13, -2.146039037850e-01, TOL), "sz13=" + sz13);2174 ok(isequalRel(sz21, 3.703990857776e+00, TOL), "sz21=" + sz21);2175 ok(isequalRel(sz22, -1.238078875509e+00, TOL), "sz22=" + sz22);2176 ok(isequalRel(sz23, 9.931402744621e-02, TOL), "sz23=" + sz23);2177 ok(isequalRel(sz31, 1.086424461544e+01, TOL), "sz31=" + sz31);2178 ok(isequalRel(sz32, -3.099487945117e+00, TOL), "sz32=" + sz32);2179 ok(isequalRel(sz33, -2.824901577941e+00, TOL), "sz33=" + sz33);2180 ok(isequalRel(xgh2, -3.210545596328e-04, TOL), "xgh2=" + xgh2);2181 ok(isequalRel(xgh3, 4.292321013506e-04, TOL), "xgh3=" + xgh3);2182 ok(isequalRel(xgh4, -1.980369121860e-05, TOL), "xgh4=" + xgh4);2183 ok(isequalRel(xh2, -7.343991154683e-05, TOL), "xh2=" + xh2);2184 ok(isequalRel(xh3, 1.243873320172e-04, TOL), "xh3=" + xh3);2185 ok(isequalRel(xi2, 4.375268409065e-05, TOL), "xi2=" + xi2);2186 ok(isequalRel(xi3, 1.339081864290e-05, TOL), "xi3=" + xi3);2187 ok(isequalRel(xl2, 5.069978526244e-04, TOL), "xl2=" + xl2);2188 ok(isequalRel(xl3, -6.661160092554e-04, TOL), "xl3=" + xl3);2189 ok(isequalRel(xl4, 6.475028727329e-05, TOL), "xl4=" + xl4);2190 ok(isequalRel(nm, 1.952919673236e-02, TOL), "nm=" + nm);2191 ok(isequalRel(z1, 3.735227503813e+00, TOL), "z1=" + z1);2192 ok(isequalRel(z2, -1.032067981769e+01, TOL), "z2=" + z2);2193 ok(isequalRel(z3, 1.729498918205e+01, TOL), "z3=" + z3);2194 ok(isequalRel(z11, 3.506359240961e-01, TOL), "z11=" + z11);2195 ok(isequalRel(z12, -1.453350481603e+00, TOL), "z12=" + z12);2196 ok(isequalRel(z13, -9.417227746221e-02, TOL), "z13=" + z13);2197 ok(isequalRel(z21, 3.278561983564e-01, TOL), "z21=" + z21);2198 ok(isequalRel(z22, -2.439483040499e+00, TOL), "z22=" + z22);2199 ok(isequalRel(z23, 4.459680168698e+00, TOL), "z23=" + z23);2200 ok(isequalRel(z31, -1.664599028406e+00, TOL), "z31=" + z31);2201 ok(isequalRel(z32, -8.010277284346e+00, TOL), "z32=" + z32);2202 ok(isequalRel(z33, 9.044696472935e+00, TOL), "z33=" + z33);2203 ok(isequalRel(zmol, 6.619375088630e-01, TOL), "zmol=" + zmol);2204 ok(isequalRel(zmos, 2.893600055028e+00, TOL), "zmos=" + zmos);2205 });2206// 235992207test(' 2.063104061740e+04, 2.664000000000e-03, 5.429679160382e+00, 0.000000000000e+00, 6.725800805485e-02, 1.396474586435e+00, 4.397108759492e-03',2208 function () {2209 var rets = dscom( 2.063104061740e+04, 2.664000000000e-03, 5.429679160382e+00, 0.000000000000e+00, 6.725800805485e-02, 1.396474586435e+00, 4.397108759492e-03),2210 sinim = rets.shift(),2211 cosim = rets.shift(),2212 sinomm = rets.shift(),2213 cosomm = rets.shift(),2214 snodm = rets.shift(),2215 cnodm = rets.shift(),2216 day = rets.shift(),2217 e3 = rets.shift(),2218 ee2 = rets.shift(),2219 em = rets.shift(),2220 emsq = rets.shift(),2221 gam = rets.shift(),2222 peo = rets.shift(),2223 pgho = rets.shift(),2224 pho = rets.shift(),2225 pinco = rets.shift(),2226 plo = rets.shift(),2227 rtemsq = rets.shift(),2228 se2 = rets.shift(),2229 se3 = rets.shift(),2230 sgh2 = rets.shift(),2231 sgh3 = rets.shift(),2232 sgh4 = rets.shift(),2233 sh2 = rets.shift(),2234 sh3 = rets.shift(),2235 si2 = rets.shift(),2236 si3 = rets.shift(),2237 sl2 = rets.shift(),2238 sl3 = rets.shift(),2239 sl4 = rets.shift(),2240 s1 = rets.shift(),2241 s2 = rets.shift(),2242 s3 = rets.shift(),2243 s4 = rets.shift(),2244 s5 = rets.shift(),2245 s6 = rets.shift(),2246 s7 = rets.shift(),2247 ss1 = rets.shift(),2248 ss2 = rets.shift(),2249 ss3 = rets.shift(),2250 ss4 = rets.shift(),2251 ss5 = rets.shift(),2252 ss6 = rets.shift(),2253 ss7 = rets.shift(),2254 sz1 = rets.shift(),2255 sz2 = rets.shift(),2256 sz3 = rets.shift(),2257 sz11 = rets.shift(),2258 sz12 = rets.shift(),2259 sz13 = rets.shift(),2260 sz21 = rets.shift(),2261 sz22 = rets.shift(),2262 sz23 = rets.shift(),2263 sz31 = rets.shift(),2264 sz32 = rets.shift(),2265 sz33 = rets.shift(),2266 xgh2 = rets.shift(),2267 xgh3 = rets.shift(),2268 xgh4 = rets.shift(),2269 xh2 = rets.shift(),2270 xh3 = rets.shift(),2271 xi2 = rets.shift(),2272 xi3 = rets.shift(),2273 xl2 = rets.shift(),2274 xl3 = rets.shift(),2275 xl4 = rets.shift(),2276 nm = rets.shift(),2277 z1 = rets.shift(),2278 z2 = rets.shift(),2279 z3 = rets.shift(),2280 z11 = rets.shift(),2281 z12 = rets.shift(),2282 z13 = rets.shift(),2283 z21 = rets.shift(),2284 z22 = rets.shift(),2285 z23 = rets.shift(),2286 z31 = rets.shift(),2287 z32 = rets.shift(),2288 z33 = rets.shift(),2289 zmol = rets.shift(),2290 zmos = rets.shift(),2291 TOL = 0.0000001;2292 expect(81);2293 ok(isequalRel(sinim, 6.720731102433e-02, TOL), "sinim=" + sinim);2294 ok(isequalRel(cosim, 9.977390326858e-01, TOL), "cosim=" + cosim);2295 ok(isequalRel(sinomm, -7.535897804281e-01, TOL), "sinomm=" + sinomm);2296 ok(isequalRel(cosomm, 6.573449952911e-01, TOL), "cosomm=" + cosomm);2297 ok(isequalRel(snodm, 9.848444029137e-01, TOL), "snodm=" + snodm);2298 ok(isequalRel(cnodm, 1.734401973290e-01, TOL), "cnodm=" + cnodm);2299 ok(isequalRel(day, 3.889254061740e+04, TOL), "day=" + day);2300 ok(isequalRel(e3, -7.726902954388e-06, TOL), "e3=" + e3);2301 ok(isequalRel(ee2, -5.176143424006e-07, TOL), "ee2=" + ee2);2302 ok(isequalRel(em, 2.664000000000e-03, TOL), "em=" + em);2303 ok(isequalRel(emsq, 7.096896000000e-06, TOL), "emsq=" + emsq);2304 ok(isequalRel(gam, 8.145656281517e+01, TOL), "gam=" + gam);2305 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);2306 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);2307 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);2308 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);2309 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);2310 ok(isequalRel(rtemsq, 9.999964515457e-01, TOL), "rtemsq=" + rtemsq);2311 ok(isequalRel(se2, 3.935674677679e-05, TOL), "se2=" + se2);2312 ok(isequalRel(se3, 3.101303936462e-05, TOL), "se3=" + se3);2313 ok(isequalRel(sgh2, -1.095943198289e-02, TOL), "sgh2=" + sgh2);2314 ok(isequalRel(sgh3, 1.543789357065e-02, TOL), "sgh3=" + sgh3);2315 ok(isequalRel(sgh4, -2.047755658748e-04, TOL), "sgh4=" + sgh4);2316 ok(isequalRel(sh2, 1.170723269672e-03, TOL), "sh2=" + sh2);2317 ok(isequalRel(sh3, -1.086189670839e-03, TOL), "sh3=" + sh3);2318 ok(isequalRel(si2, -1.002689875952e-03, TOL), "si2=" + si2);2319 ok(isequalRel(si3, -1.074034874057e-03, TOL), "si3=" + si3);2320 ok(isequalRel(sl2, 1.012379841762e-02, TOL), "sl2=" + sl2);2321 ok(isequalRel(sl3, -1.636988036209e-02, TOL), "sl3=" + sl3);2322 ok(isequalRel(sl4, 4.778128024756e-04, TOL), "sl4=" + sl4);2323 ok(isequalRel(s1, -4.359221435156e-06, TOL), "s1=" + s1);2324 ok(isequalRel(s2, -5.454519985382e-05, TOL), "s2=" + s2);2325 ok(isequalRel(s3, 1.090900126053e-04, TOL), "s3=" + s3);2326 ok(isequalRel(s4, 1.090896255044e-04, TOL), "s4=" + s4);2327 ok(isequalRel(s5, -1.083047439793e-01, TOL), "s5=" + s5);2328 ok(isequalRel(s6, 5.937004463986e-02, TOL), "s6=" + s6);2329 ok(isequalRel(s7, 8.862709854645e-01, TOL), "s7=" + s7);2330 ok(isequalRel(ss1, -2.714040335773e-05, TOL), "ss1=" + ss1);2331 ok(isequalRel(ss2, -3.395970466932e-04, TOL), "ss2=" + ss2);2332 ok(isequalRel(ss3, 6.791916832972e-04, TOL), "ss3=" + ss3);2333 ok(isequalRel(ss4, 6.791892732165e-04, TOL), "ss4=" + ss4);2334 ok(isequalRel(ss5, -7.564404853169e-02, TOL), "ss5=" + ss5);2335 ok(isequalRel(ss6, -7.250582509412e-01, TOL), "ss6=" + ss6);2336 ok(isequalRel(ss7, -5.713444814331e-01, TOL), "ss7=" + ss7);2337 ok(isequalRel(sz1, 3.767328239899e+00, TOL), "sz1=" + sz1);2338 ok(isequalRel(sz2, -7.452828609794e+00, TOL), "sz2=" + sz2);2339 ok(isequalRel(sz3, 1.581833001499e+01, TOL), "sz3=" + sz3);2340 ok(isequalRel(sz11, -1.872126641261e+00, TOL), "sz11=" + sz11);2341 ok(isequalRel(sz12, 1.476293574569e+00, TOL), "sz12=" + sz12);2342 ok(isequalRel(sz13, -2.907894586864e-01, TOL), "sz13=" + sz13);2343 ok(isequalRel(sz21, 8.194386720961e-01, TOL), "sz21=" + sz21);2344 ok(isequalRel(sz22, 1.723694715652e+00, TOL), "sz22=" + sz22);2345 ok(isequalRel(sz23, -7.797944210889e-01, TOL), "sz23=" + sz23);2346 ok(isequalRel(sz31, -1.428938019349e+00, TOL), "sz31=" + sz31);2347 ok(isequalRel(sz32, -8.068024934334e+00, TOL), "sz32=" + sz32);2348 ok(isequalRel(sz33, 9.936004110508e+00, TOL), "sz33=" + sz33);2349 ok(isequalRel(xgh2, 2.915576106025e-03, TOL), "xgh2=" + xgh2);2350 ok(isequalRel(xgh3, -4.189146928255e-04, TOL), "xgh3=" + xgh3);2351 ok(isequalRel(xgh4, -1.078023679235e-04, TOL), "xgh4=" + xgh4);2352 ok(isequalRel(xh2, -3.065019513911e-04, TOL), "xh2=" + xh2);2353 ok(isequalRel(xh3, -3.781667774154e-05, TOL), "xh3=" + xh3);2354 ok(isequalRel(xi2, -2.998211222471e-05, TOL), "xi2=" + xi2);2355 ok(isequalRel(xi3, 2.707830507804e-04, TOL), "xi3=" + xi3);2356 ok(isequalRel(xl2, -2.963865666279e-03, TOL), "xl2=" + xl2);2357 ok(isequalRel(xl3, 7.064676449674e-04, TOL), "xl3=" + xl3);2358 ok(isequalRel(xl4, 2.515405161303e-04, TOL), "xl4=" + xl4);2359 ok(isequalRel(nm, 4.397108759492e-03, TOL), "nm=" + nm);2360 ok(isequalRel(z1, 1.114414424666e+01, TOL), "z1=" + z1);2361 ok(isequalRel(z2, 1.358449593824e+01, TOL), "z2=" + z2);2362 ok(isequalRel(z3, 7.906140931350e+00, TOL), "z3=" + z3);2363 ok(isequalRel(z11, -5.626930686788e-03, TOL), "z11=" + z11);2364 ok(isequalRel(z12, 2.748373120372e-01, TOL), "z12=" + z12);2365 ok(isequalRel(z13, -2.487816486377e+00, TOL), "z13=" + z13);2366 ok(isequalRel(z21, 2.349040036708e-01, TOL), "z21=" + z21);2367 ok(isequalRel(z22, -2.809614340149e+00, TOL), "z22=" + z22);2368 ok(isequalRel(z23, -1.117504942767e-01, TOL), "z23=" + z23);2369 ok(isequalRel(z31, 5.153323530243e+00, TOL), "z31=" + z31);2370 ok(isequalRel(z32, 1.336321438699e+01, TOL), "z32=" + z32);2371 ok(isequalRel(z33, 3.233275263102e+00, TOL), "z33=" + z33);2372 ok(isequalRel(zmol, 1.864840548802e+00, TOL), "zmol=" + zmol);2373 ok(isequalRel(zmos, 2.984345003862e+00, TOL), "zmos=" + zmos);2374 });2375// 242082376test(' 1.976268057285e+04, 1.765000000000e-04, 2.710391608592e-01, 0.000000000000e+00, 6.981317007977e-06, 4.255350081140e+00, 4.374997775854e-03',2377 function () {2378 var rets = dscom( 1.976268057285e+04, 1.765000000000e-04, 2.710391608592e-01, 0.000000000000e+00, 6.981317007977e-06, 4.255350081140e+00, 4.374997775854e-03),2379 sinim = rets.shift(),2380 cosim = rets.shift(),2381 sinomm = rets.shift(),2382 cosomm = rets.shift(),2383 snodm = rets.shift(),2384 cnodm = rets.shift(),2385 day = rets.shift(),2386 e3 = rets.shift(),2387 ee2 = rets.shift(),2388 em = rets.shift(),2389 emsq = rets.shift(),2390 gam = rets.shift(),2391 peo = rets.shift(),2392 pgho = rets.shift(),2393 pho = rets.shift(),2394 pinco = rets.shift(),2395 plo = rets.shift(),2396 rtemsq = rets.shift(),2397 se2 = rets.shift(),2398 se3 = rets.shift(),2399 sgh2 = rets.shift(),2400 sgh3 = rets.shift(),2401 sgh4 = rets.shift(),2402 sh2 = rets.shift(),2403 sh3 = rets.shift(),2404 si2 = rets.shift(),2405 si3 = rets.shift(),2406 sl2 = rets.shift(),2407 sl3 = rets.shift(),2408 sl4 = rets.shift(),2409 s1 = rets.shift(),2410 s2 = rets.shift(),2411 s3 = rets.shift(),2412 s4 = rets.shift(),2413 s5 = rets.shift(),2414 s6 = rets.shift(),2415 s7 = rets.shift(),2416 ss1 = rets.shift(),2417 ss2 = rets.shift(),2418 ss3 = rets.shift(),2419 ss4 = rets.shift(),2420 ss5 = rets.shift(),2421 ss6 = rets.shift(),2422 ss7 = rets.shift(),2423 sz1 = rets.shift(),2424 sz2 = rets.shift(),2425 sz3 = rets.shift(),2426 sz11 = rets.shift(),2427 sz12 = rets.shift(),2428 sz13 = rets.shift(),2429 sz21 = rets.shift(),2430 sz22 = rets.shift(),2431 sz23 = rets.shift(),2432 sz31 = rets.shift(),2433 sz32 = rets.shift(),2434 sz33 = rets.shift(),2435 xgh2 = rets.shift(),2436 xgh3 = rets.shift(),2437 xgh4 = rets.shift(),2438 xh2 = rets.shift(),2439 xh3 = rets.shift(),2440 xi2 = rets.shift(),2441 xi3 = rets.shift(),2442 xl2 = rets.shift(),2443 xl3 = rets.shift(),2444 xl4 = rets.shift(),2445 nm = rets.shift(),2446 z1 = rets.shift(),2447 z2 = rets.shift(),2448 z3 = rets.shift(),2449 z11 = rets.shift(),2450 z12 = rets.shift(),2451 z13 = rets.shift(),2452 z21 = rets.shift(),2453 z22 = rets.shift(),2454 z23 = rets.shift(),2455 z31 = rets.shift(),2456 z32 = rets.shift(),2457 z33 = rets.shift(),2458 zmol = rets.shift(),2459 zmos = rets.shift(),2460 TOL = 0.0000001;2461 expect(81);2462 ok(isequalRel(sinim, 6.981317007921e-06, TOL), "sinim=" + sinim);2463 ok(isequalRel(cosim, 9.999999999756e-01, TOL), "cosim=" + cosim);2464 ok(isequalRel(sinomm, 2.677328054857e-01, TOL), "sinomm=" + sinomm);2465 ok(isequalRel(cosomm, 9.634931991803e-01, TOL), "cosomm=" + cosomm);2466 ok(isequalRel(snodm, -8.973631423355e-01, TOL), "snodm=" + snodm);2467 ok(isequalRel(cnodm, -4.412928628221e-01, TOL), "cnodm=" + cnodm);2468 ok(isequalRel(day, 3.802418057285e+04, TOL), "day=" + day);2469 ok(isequalRel(e3, -1.443253711966e-07, TOL), "e3=" + e3);2470 ok(isequalRel(ee2, -4.967861523155e-07, TOL), "ee2=" + ee2);2471 ok(isequalRel(em, 1.765000000000e-04, TOL), "em=" + em);2472 ok(isequalRel(emsq, 3.115225000000e-08, TOL), "emsq=" + emsq);2473 ok(isequalRel(gam, 7.976815133207e+01, TOL), "gam=" + gam);2474 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);2475 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);2476 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);2477 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);2478 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);2479 ok(isequalRel(rtemsq, 9.999999844239e-01, TOL), "rtemsq=" + rtemsq);2480 ok(isequalRel(se2, -2.393510838524e-06, TOL), "se2=" + se2);2481 ok(isequalRel(se3, 2.297499314735e-06, TOL), "se3=" + se3);2482 ok(isequalRel(sgh2, -1.264715658450e-02, TOL), "sgh2=" + sgh2);2483 ok(isequalRel(sgh3, -1.273189516222e-02, TOL), "sgh3=" + sgh3);2484 ok(isequalRel(sgh4, -2.058112167495e-04, TOL), "sgh4=" + sgh4);2485 ok(isequalRel(sh2, -1.099705176855e-03, TOL), "sh2=" + sh2);2486 ok(isequalRel(sh3, 1.167960133285e-03, TOL), "sh3=" + sh3);2487 ok(isequalRel(si2, 1.176752281702e-03, TOL), "si2=" + si2);2488 ok(isequalRel(si3, 9.654718969481e-04, TOL), "si3=" + si3);2489 ok(isequalRel(sl2, 1.215221622343e-02, TOL), "sl2=" + sl2);2490 ok(isequalRel(sl3, 1.153344263874e-02, TOL), "sl3=" + sl3);2491 ok(isequalRel(sl4, 4.802261863070e-04, TOL), "sl4=" + sl4);2492 ok(isequalRel(s1, -2.902754621049e-07, TOL), "s1=" + s1);2493 ok(isequalRel(s2, -5.482067443771e-05, TOL), "s2=" + s2);2494 ok(isequalRel(s3, 1.096413471676e-04, TOL), "s3=" + s3);2495 ok(isequalRel(s4, 1.096413454598e-04, TOL), "s4=" + s4);2496 ok(isequalRel(s5, -6.378753298339e-02, TOL), "s5=" + s5);2497 ok(isequalRel(s6, 8.557150313586e-01, TOL), "s6=" + s6);2498 ok(isequalRel(s7, 2.486007087027e-01, TOL), "s7=" + s7);2499 ok(isequalRel(ss1, -1.807247749069e-06, TOL), "ss1=" + ss1);2500 ok(isequalRel(ss2, -3.413121445456e-04, TOL), "ss2=" + ss2);2501 ok(isequalRel(ss3, 6.826242784585e-04, TOL), "ss3=" + ss3);2502 ok(isequalRel(ss4, 6.826242678259e-04, TOL), "ss4=" + ss4);2503 ok(isequalRel(ss5, -2.876970046754e-02, TOL), "ss5=" + ss5);2504 ok(isequalRel(ss6, 6.621977644616e-01, TOL), "ss6=" + ss6);2505 ok(isequalRel(ss7, -6.356348530297e-01, TOL), "ss7=" + ss7);2506 ok(isequalRel(sz1, 1.333992996164e+01, TOL), "sz1=" + sz1);2507 ok(isequalRel(sz2, -8.901101679884e+00, TOL), "sz2=" + sz2);2508 ok(isequalRel(sz3, 4.892059732956e+00, TOL), "sz3=" + sz3);2509 ok(isequalRel(sz11, 1.689817110256e+00, TOL), "sz11=" + sz11);2510 ok(isequalRel(sz12, -1.723865236716e+00, TOL), "sz12=" + sz12);2511 ok(isequalRel(sz13, 2.754638380722e-01, TOL), "sz13=" + sz13);2512 ok(isequalRel(sz21, -1.338739623226e+00, TOL), "sz21=" + sz21);2513 ok(isequalRel(sz22, -1.610996260211e+00, TOL), "sz22=" + sz22);2514 ok(isequalRel(sz23, 3.722456902921e-01, TOL), "sz23=" + sz23);2515 ok(isequalRel(sz31, 8.253714037282e+00, TOL), "sz31=" + sz31);2516 ok(isequalRel(sz32, -9.263629481548e+00, TOL), "sz32=" + sz32);2517 ok(isequalRel(sz33, -1.071983687153e+00, TOL), "sz33=" + sz33);2518 ok(isequalRel(xgh2, 6.708089970693e-04, TOL), "xgh2=" + xgh2);2519 ok(isequalRel(xgh3, -2.691818508104e-03, TOL), "xgh3=" + xgh3);2520 ok(isequalRel(xgh4, -1.083475775834e-04, TOL), "xgh4=" + xgh4);2521 ok(isequalRel(xh2, -2.688548161140e-04, TOL), "xh2=" + xh2);2522 ok(isequalRel(xh3, -1.120931668890e-04, TOL), "xh3=" + xh3);2523 ok(isequalRel(xi2, -7.859155231505e-05, TOL), "xi2=" + xi2);2524 ok(isequalRel(xi3, 2.677016040710e-04, TOL), "xi3=" + xi3);2525 ok(isequalRel(xl2, -4.478395208697e-04, TOL), "xl2=" + xl2);2526 ok(isequalRel(xl3, 2.528608623316e-03, TOL), "xl3=" + xl3);2527 ok(isequalRel(xl4, 2.528110216744e-04, TOL), "xl4=" + xl4);2528 ok(isequalRel(nm, 4.374997775854e-03, TOL), "nm=" + nm);2529 ok(isequalRel(z1, 1.453742738580e+01, TOL), "z1=" + z1);2530 ok(isequalRel(z2, 2.042293041990e+00, TOL), "z2=" + z2);2531 ok(isequalRel(z3, 3.006154336733e+00, TOL), "z3=" + z3);2532 ok(isequalRel(z11, 2.231085072369e+00, TOL), "z11=" + z11);2533 ok(isequalRel(z12, 7.168057773930e-01, TOL), "z12=" + z12);2534 ok(isequalRel(z13, -2.105266627735e-01, TOL), "z13=" + z13);2535 ok(isequalRel(z21, -1.762284682913e-01, TOL), "z21=" + z21);2536 ok(isequalRel(z22, -2.452129774685e+00, TOL), "z22=" + z22);2537 ok(isequalRel(z23, -1.198590634013e+00, TOL), "z23=" + z23);2538 ok(isequalRel(z31, 9.539627269283e+00, TOL), "z31=" + z31);2539 ok(isequalRel(z32, 3.059106007209e+00, TOL), "z32=" + z32);2540 ok(isequalRel(z33, -2.735935826075e+00, TOL), "z33=" + z33);2541 ok(isequalRel(zmol, 4.917119876491e+00, TOL), "zmol=" + zmol);2542 ok(isequalRel(zmos, 6.132061041587e-01, TOL), "zmos=" + zmos);2543 });2544// 259542545test(' 2.056074503247e+04, 3.319000000000e-04, 1.504114277393e+00, 0.000000000000e+00, 2.862339973271e-04, 4.651962191022e+00, 4.375109379983e-03',2546 function () {2547 var rets = dscom( 2.056074503247e+04, 3.319000000000e-04, 1.504114277393e+00, 0.000000000000e+00, 2.862339973271e-04, 4.651962191022e+00, 4.375109379983e-03),2548 sinim = rets.shift(),2549 cosim = rets.shift(),2550 sinomm = rets.shift(),2551 cosomm = rets.shift(),2552 snodm = rets.shift(),2553 cnodm = rets.shift(),2554 day = rets.shift(),2555 e3 = rets.shift(),2556 ee2 = rets.shift(),2557 em = rets.shift(),2558 emsq = rets.shift(),2559 gam = rets.shift(),2560 peo = rets.shift(),2561 pgho = rets.shift(),2562 pho = rets.shift(),2563 pinco = rets.shift(),2564 plo = rets.shift(),2565 rtemsq = rets.shift(),2566 se2 = rets.shift(),2567 se3 = rets.shift(),2568 sgh2 = rets.shift(),2569 sgh3 = rets.shift(),2570 sgh4 = rets.shift(),2571 sh2 = rets.shift(),2572 sh3 = rets.shift(),2573 si2 = rets.shift(),2574 si3 = rets.shift(),2575 sl2 = rets.shift(),2576 sl3 = rets.shift(),2577 sl4 = rets.shift(),2578 s1 = rets.shift(),2579 s2 = rets.shift(),2580 s3 = rets.shift(),2581 s4 = rets.shift(),2582 s5 = rets.shift(),2583 s6 = rets.shift(),2584 s7 = rets.shift(),2585 ss1 = rets.shift(),2586 ss2 = rets.shift(),2587 ss3 = rets.shift(),2588 ss4 = rets.shift(),2589 ss5 = rets.shift(),2590 ss6 = rets.shift(),2591 ss7 = rets.shift(),2592 sz1 = rets.shift(),2593 sz2 = rets.shift(),2594 sz3 = rets.shift(),2595 sz11 = rets.shift(),2596 sz12 = rets.shift(),2597 sz13 = rets.shift(),2598 sz21 = rets.shift(),2599 sz22 = rets.shift(),2600 sz23 = rets.shift(),2601 sz31 = rets.shift(),2602 sz32 = rets.shift(),2603 sz33 = rets.shift(),2604 xgh2 = rets.shift(),2605 xgh3 = rets.shift(),2606 xgh4 = rets.shift(),2607 xh2 = rets.shift(),2608 xh3 = rets.shift(),2609 xi2 = rets.shift(),2610 xi3 = rets.shift(),2611 xl2 = rets.shift(),2612 xl3 = rets.shift(),2613 xl4 = rets.shift(),2614 nm = rets.shift(),2615 z1 = rets.shift(),2616 z2 = rets.shift(),2617 z3 = rets.shift(),2618 z11 = rets.shift(),2619 z12 = rets.shift(),2620 z13 = rets.shift(),2621 z21 = rets.shift(),2622 z22 = rets.shift(),2623 z23 = rets.shift(),2624 z31 = rets.shift(),2625 z32 = rets.shift(),2626 z33 = rets.shift(),2627 zmol = rets.shift(),2628 zmos = rets.shift(),2629 TOL = 0.0000001;2630 expect(81);2631 ok(isequalRel(sinim, 2.862339934185e-04, TOL), "sinim=" + sinim);2632 ok(isequalRel(cosim, 9.999999590350e-01, TOL), "cosim=" + cosim);2633 ok(isequalRel(sinomm, 9.977775758269e-01, TOL), "sinomm=" + sinomm);2634 ok(isequalRel(cosomm, 6.663264347934e-02, TOL), "cosomm=" + cosomm);2635 ok(isequalRel(snodm, -9.981748570252e-01, TOL), "snodm=" + snodm);2636 ok(isequalRel(cnodm, -6.039002237745e-02, TOL), "cnodm=" + cnodm);2637 ok(isequalRel(day, 3.882224503247e+04, TOL), "day=" + day);2638 ok(isequalRel(e3, -4.297357109584e-07, TOL), "e3=" + e3);2639 ok(isequalRel(ee2, -8.575863014313e-07, TOL), "ee2=" + ee2);2640 ok(isequalRel(em, 3.319000000000e-04, TOL), "em=" + em);2641 ok(isequalRel(emsq, 1.101576100000e-07, TOL), "emsq=" + emsq);2642 ok(isequalRel(gam, 8.131988232929e+01, TOL), "gam=" + gam);2643 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);2644 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);2645 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);2646 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);2647 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);2648 ok(isequalRel(rtemsq, 9.999999449212e-01, TOL), "rtemsq=" + rtemsq);2649 ok(isequalRel(se2, 4.977710503291e-06, TOL), "se2=" + se2);2650 ok(isequalRel(se3, -3.758122880832e-06, TOL), "se3=" + se3);2651 ok(isequalRel(sgh2, 1.170238813200e-02, TOL), "sgh2=" + sgh2);2652 ok(isequalRel(sgh3, 1.596617407202e-02, TOL), "sgh3=" + sgh3);2653 ok(isequalRel(sgh4, -2.058059586065e-04, TOL), "sgh4=" + sgh4);2654 ok(isequalRel(sh2, -1.469489949578e-03, TOL), "sh2=" + sh2);2655 ok(isequalRel(sh3, 7.031457064751e-04, TOL), "sh3=" + sh3);2656 ok(isequalRel(si2, 6.596584265507e-04, TOL), "si2=" + si2);2657 ok(isequalRel(si3, 1.342180142943e-03, TOL), "si3=" + si3);2658 ok(isequalRel(sl2, -1.219566699304e-02, TOL), "sl2=" + sl2);2659 ok(isequalRel(sl3, -1.716537238492e-02, TOL), "sl3=" + sl3);2660 ok(isequalRel(sl4, 4.802139525359e-04, TOL), "sl4=" + sl4);2661 ok(isequalRel(s1, -5.458354928034e-07, TOL), "s1=" + s1);2662 ok(isequalRel(s2, -5.481927818934e-05, TOL), "s2=" + s2);2663 ok(isequalRel(s3, 1.096385503399e-04, TOL), "s3=" + s3);2664 ok(isequalRel(s4, 1.096385443012e-04, TOL), "s4=" + s4);2665 ok(isequalRel(s5, 3.134894679716e-02, TOL), "s5=" + s5);2666 ok(isequalRel(s6, 7.855721300082e-01, TOL), "s6=" + s6);2667 ok(isequalRel(s7, 3.936494755510e-01, TOL), "s7=" + s7);2668 ok(isequalRel(ss1, -3.398358092612e-06, TOL), "ss1=" + ss1);2669 ok(isequalRel(ss2, -3.413034515383e-04, TOL), "ss2=" + ss2);2670 ok(isequalRel(ss3, 6.826068654794e-04, TOL), "ss3=" + ss3);2671 ok(isequalRel(ss4, 6.826068278822e-04, TOL), "ss4=" + ss4);2672 ok(isequalRel(ss5, 2.000630099778e-02, TOL), "ss5=" + ss5);2673 ok(isequalRel(ss6, -7.323699221269e-01, TOL), "ss6=" + ss6);2674 ok(isequalRel(ss7, 5.529321481752e-01, TOL), "ss7=" + ss7);2675 ok(isequalRel(sz1, 3.956575789077e+00, TOL), "sz1=" + sz1);2676 ok(isequalRel(sz2, 8.933155824965e+00, TOL), "sz2=" + sz2);2677 ok(isequalRel(sz3, 1.652997143817e+01, TOL), "sz3=" + sz3);2678 ok(isequalRel(sz11, 2.076153554075e+00, TOL), "sz11=" + sz11);2679 ok(isequalRel(sz12, -9.663811244475e-01, TOL), "sz12=" + sz12);2680 ok(isequalRel(sz13, 1.098972257350e-01, TOL), "sz13=" + sz13);2681 ok(isequalRel(sz21, -5.818957556802e-01, TOL), "sz21=" + sz21);2682 ok(isequalRel(sz22, -2.152761630383e+00, TOL), "sz22=" + sz22);2683 ok(isequalRel(sz23, 4.481930162117e-01, TOL), "sz23=" + sz23);2684 ok(isequalRel(sz31, -1.129325285006e+00, TOL), "sz31=" + sz31);2685 ok(isequalRel(sz32, 8.571836417392e+00, TOL), "sz32=" + sz32);2686 ok(isequalRel(sz33, 1.056567498445e+01, TOL), "sz33=" + sz33);2687 ok(isequalRel(xgh2, 1.468610866371e-03, TOL), "xgh2=" + xgh2);2688 ok(isequalRel(xgh3, -2.762771903365e-03, TOL), "xgh3=" + xgh3);2689 ok(isequalRel(xgh4, -1.083448094784e-04, TOL), "xgh4=" + xgh4);2690 ok(isequalRel(xh2, 2.443977229280e-04, TOL), "xh2=" + xh2);2691 ok(isequalRel(xh3, 1.980068154638e-04, TOL), "xh3=" + xh3);2692 ok(isequalRel(xi2, 1.700595365594e-04, TOL), "xi2=" + xi2);2693 ok(isequalRel(xi3, -2.181240526799e-04, TOL), "xi3=" + xi3);2694 ok(isequalRel(xl2, -1.672610170679e-03, TOL), "xl2=" + xl2);2695 ok(isequalRel(xl3, 2.984308463316e-03, TOL), "xl3=" + xl3);2696 ok(isequalRel(xl4, 2.528045813088e-04, TOL), "xl4=" + xl4);2697 ok(isequalRel(nm, 4.375109379983e-03, TOL), "nm=" + nm);2698 ok(isequalRel(z1, 1.692870278037e+01, TOL), "z1=" + z1);2699 ok(isequalRel(z2, 7.627837861288e+00, TOL), "z2=" + z2);2700 ok(isequalRel(z3, 3.318943922456e+00, TOL), "z3=" + z3);2701 ok(isequalRel(z11, 2.623614504262e-01, TOL), "z11=" + z11);2702 ok(isequalRel(z12, -1.551092445727e+00, TOL), "z12=" + z12);2703 ok(isequalRel(z13, 2.251844529048e+00, TOL), "z13=" + z13);2704 ok(isequalRel(z21, -9.937247788382e-01, TOL), "z21=" + z21);2705 ok(isequalRel(z22, 2.229122044291e+00, TOL), "z22=" + z22);2706 ok(isequalRel(z23, 8.122714145074e-01, TOL), "z23=" + z23);2707 ok(isequalRel(z31, 1.111024835979e+01, TOL), "z31=" + z31);2708 ok(isequalRel(z32, 6.697511699614e+00, TOL), "z32=" + z32);2709 ok(isequalRel(z33, -1.489207064283e+00, TOL), "z33=" + z33);2710 ok(isequalRel(zmol, 4.685095846573e+00, TOL), "zmol=" + zmol);2711 ok(isequalRel(zmos, 1.775121968701e+00, TOL), "zmos=" + zmos);2712 });2713// 269002714test(' 2.062885818871e+04, 5.602877000000e-01, 2.159817024075e+00, 0.000000000000e+00, 1.195051373450e+00, 4.121251198722e+00, 8.973959238486e-03',2715 function () {2716 var rets = dscom( 2.062885818871e+04, 5.602877000000e-01, 2.159817024075e+00, 0.000000000000e+00, 1.195051373450e+00, 4.121251198722e+00, 8.973959238486e-03),2717 sinim = rets.shift(),2718 cosim = rets.shift(),2719 sinomm = rets.shift(),2720 cosomm = rets.shift(),2721 snodm = rets.shift(),2722 cnodm = rets.shift(),2723 day = rets.shift(),2724 e3 = rets.shift(),2725 ee2 = rets.shift(),2726 em = rets.shift(),2727 emsq = rets.shift(),2728 gam = rets.shift(),2729 peo = rets.shift(),2730 pgho = rets.shift(),2731 pho = rets.shift(),2732 pinco = rets.shift(),2733 plo = rets.shift(),2734 rtemsq = rets.shift(),2735 se2 = rets.shift(),2736 se3 = rets.shift(),2737 sgh2 = rets.shift(),2738 sgh3 = rets.shift(),2739 sgh4 = rets.shift(),2740 sh2 = rets.shift(),2741 sh3 = rets.shift(),2742 si2 = rets.shift(),2743 si3 = rets.shift(),2744 sl2 = rets.shift(),2745 sl3 = rets.shift(),2746 sl4 = rets.shift(),2747 s1 = rets.shift(),2748 s2 = rets.shift(),2749 s3 = rets.shift(),2750 s4 = rets.shift(),2751 s5 = rets.shift(),2752 s6 = rets.shift(),2753 s7 = rets.shift(),2754 ss1 = rets.shift(),2755 ss2 = rets.shift(),2756 ss3 = rets.shift(),2757 ss4 = rets.shift(),2758 ss5 = rets.shift(),2759 ss6 = rets.shift(),2760 ss7 = rets.shift(),2761 sz1 = rets.shift(),2762 sz2 = rets.shift(),2763 sz3 = rets.shift(),2764 sz11 = rets.shift(),2765 sz12 = rets.shift(),2766 sz13 = rets.shift(),2767 sz21 = rets.shift(),2768 sz22 = rets.shift(),2769 sz23 = rets.shift(),2770 sz31 = rets.shift(),2771 sz32 = rets.shift(),2772 sz33 = rets.shift(),2773 xgh2 = rets.shift(),2774 xgh3 = rets.shift(),2775 xgh4 = rets.shift(),2776 xh2 = rets.shift(),2777 xh3 = rets.shift(),2778 xi2 = rets.shift(),2779 xi3 = rets.shift(),2780 xl2 = rets.shift(),2781 xl3 = rets.shift(),2782 xl4 = rets.shift(),2783 nm = rets.shift(),2784 z1 = rets.shift(),2785 z2 = rets.shift(),2786 z3 = rets.shift(),2787 z11 = rets.shift(),2788 z12 = rets.shift(),2789 z13 = rets.shift(),2790 z21 = rets.shift(),2791 z22 = rets.shift(),2792 z23 = rets.shift(),2793 z31 = rets.shift(),2794 z32 = rets.shift(),2795 z33 = rets.shift(),2796 zmol = rets.shift(),2797 zmos = rets.shift(),2798 TOL = 0.0000001;2799 expect(81);2800 ok(isequalRel(sinim, 9.302345077967e-01, TOL), "sinim=" + sinim);2801 ok(isequalRel(cosim, 3.669656121548e-01, TOL), "cosim=" + cosim);2802 ok(isequalRel(sinomm, 8.314851264260e-01, TOL), "sinomm=" + sinomm);2803 ok(isequalRel(cosomm, -5.555470137912e-01, TOL), "cosomm=" + cosomm);2804 ok(isequalRel(snodm, -8.303071240211e-01, TOL), "snodm=" + snodm);2805 ok(isequalRel(cnodm, -5.573060916586e-01, TOL), "cnodm=" + cnodm);2806 ok(isequalRel(day, 3.889035818871e+04, TOL), "day=" + day);2807 ok(isequalRel(e3, -2.267021997425e-04, TOL), "e3=" + e3);2808 ok(isequalRel(ee2, -2.551224465045e-04, TOL), "ee2=" + ee2);2809 ok(isequalRel(em, 5.602877000000e-01, TOL), "em=" + em);2810 ok(isequalRel(emsq, 3.139223067713e-01, TOL), "emsq=" + emsq);2811 ok(isequalRel(gam, 8.145231937067e+01, TOL), "gam=" + gam);2812 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);2813 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);2814 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);2815 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);2816 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);2817 ok(isequalRel(rtemsq, 8.282980702795e-01, TOL), "rtemsq=" + rtemsq);2818 ok(isequalRel(se2, 2.254910627255e-03, TOL), "se2=" + se2);2819 ok(isequalRel(se3, -2.280386619192e-04, TOL), "se3=" + se3);2820 ok(isequalRel(sgh2, -3.389917058225e-03, TOL), "sgh2=" + sgh2);2821 ok(isequalRel(sgh3, 1.654422300963e-03, TOL), "sgh3=" + sgh3);2822 ok(isequalRel(sgh4, -8.310926481500e-05, TOL), "sgh4=" + sgh4);2823 ok(isequalRel(sh2, -9.721139826925e-04, TOL), "sh2=" + sh2);2824 ok(isequalRel(sh3, -2.919237403379e-03, TOL), "sh3=" + sh3);2825 ok(isequalRel(si2, 6.537866741737e-04, TOL), "si2=" + si2);2826 ok(isequalRel(si3, 3.149325116495e-03, TOL), "si3=" + si3);2827 ok(isequalRel(sl2, 9.242202107515e-03, TOL), "sl2=" + sl2);2828 ok(isequalRel(sl3, -3.312631236734e-03, TOL), "sl3=" + sl3);2829 ok(isequalRel(sl4, 2.656187161612e-04, TOL), "sl4=" + sl4);2830 ok(isequalRel(s1, -3.720978016674e-04, TOL), "s1=" + s1);2831 ok(isequalRel(s2, -3.226647047178e-05, TOL), "s2=" + s2);2832 ok(isequalRel(s3, 5.345251045300e-05, TOL), "s3=" + s3);2833 ok(isequalRel(s4, 4.427461125982e-05, TOL), "s4=" + s4);2834 ok(isequalRel(s5, 4.525325835392e-01, TOL), "s5=" + s5);2835 ok(isequalRel(s6, 3.428163850489e-01, TOL), "s6=" + s6);2836 ok(isequalRel(s7, 3.046271688877e-01, TOL), "s7=" + s7);2837 ok(isequalRel(ss1, -2.316671583676e-03, TOL), "ss1=" + ss1);2838 ok(isequalRel(ss2, -2.008902361490e-04, TOL), "ss2=" + ss2);2839 ok(isequalRel(ss3, 3.327939898804e-04, TOL), "ss3=" + ss3);2840 ok(isequalRel(ss4, 2.756526196186e-04, TOL), "ss4=" + ss4);2841 ok(isequalRel(ss5, 4.714471153965e-01, TOL), "ss5=" + ss5);2842 ok(isequalRel(ss6, -4.866703254669e-01, TOL), "ss6=" + ss6);2843 ok(isequalRel(ss7, 4.921687293228e-02, TOL), "ss7=" + ss7);2844 ok(isequalRel(sz1, 4.938361689104e+00, TOL), "sz1=" + sz1);2845 ok(isequalRel(sz2, -1.388577075992e+01, TOL), "sz2=" + sz2);2846 ok(isequalRel(sz3, 9.915361480964e+00, TOL), "sz3=" + sz3);2847 ok(isequalRel(sz11, 3.805314774695e+00, TOL), "sz11=" + sz11);2848 ok(isequalRel(sz12, -1.627223618994e+00, TOL), "sz12=" + sz12);2849 ok(isequalRel(sz13, -4.033107780993e+00, TOL), "sz13=" + sz13);2850 ok(isequalRel(sz21, 3.078769405047e+00, TOL), "sz21=" + sz21);2851 ok(isequalRel(sz22, -2.419515257007e+00, TOL), "sz22=" + sz22);2852 ok(isequalRel(sz23, -4.186982926525e+00, TOL), "sz23=" + sz23);2853 ok(isequalRel(sz31, 1.829903197356e+00, TOL), "sz31=" + sz31);2854 ok(isequalRel(sz32, -6.148893239098e+00, TOL), "sz32=" + sz32);2855 ok(isequalRel(sz33, 4.830822077162e+00, TOL), "sz33=" + sz33);2856 ok(isequalRel(xgh2, 5.870668970928e-04, TOL), "xgh2=" + xgh2);2857 ok(isequalRel(xgh3, 3.411079917117e-04, TOL), "xgh3=" + xgh3);2858 ok(isequalRel(xgh4, -4.375217084695e-05, TOL), "xgh4=" + xgh4);2859 ok(isequalRel(xh2, -2.939157970135e-04, TOL), "xh2=" + xh2);2860 ok(isequalRel(xh3, 4.419605173894e-04, TOL), "xh3=" + xh3);2861 ok(isequalRel(xi2, 3.177266725877e-04, TOL), "xi2=" + xi2);2862 ok(isequalRel(xi3, -4.193605290405e-04, TOL), "xi3=" + xi3);2863 ok(isequalRel(xl2, -1.435489158349e-03, TOL), "xl2=" + xl2);2864 ok(isequalRel(xl3, -9.317921317489e-04, TOL), "xl3=" + xl3);2865 ok(isequalRel(xl4, 1.398327307491e-04, TOL), "xl4=" + xl4);2866 ok(isequalRel(nm, 8.973959238486e-03, TOL), "nm=" + nm);2867 ok(isequalRel(z1, 3.661706391172e+00, TOL), "z1=" + z1);2868 ok(isequalRel(z2, 1.342770569786e+01, TOL), "z2=" + z2);2869 ok(isequalRel(z3, 1.237778093895e+01, TOL), "z3=" + z3);2870 ok(isequalRel(z11, -3.293349160083e+00, TOL), "z11=" + z11);2871 ok(isequalRel(z12, -4.923480441805e+00, TOL), "z12=" + z12);2872 ok(isequalRel(z13, 3.205045658268e+00, TOL), "z13=" + z13);2873 ok(isequalRel(z21, -3.721535433952e+00, TOL), "z21=" + z21);2874 ok(isequalRel(z22, -4.554508018945e+00, TOL), "z22=" + z22);2875 ok(isequalRel(z23, 3.127067944841e+00, TOL), "z23=" + z23);2876 ok(isequalRel(z31, 1.881696181512e+00, TOL), "z31=" + z31);2877 ok(isequalRel(z32, 6.629836834113e+00, TOL), "z32=" + z32);2878 ok(isequalRel(z33, 5.733881237525e+00, TOL), "z33=" + z33);2879 ok(isequalRel(zmol, 1.367187593900e+00, TOL), "zmol=" + zmol);2880 ok(isequalRel(zmos, 2.946802915738e+00, TOL), "zmos=" + zmos);2881 });2882// 269752883// 280572884test(' 2.062957071136e+04, 4.850600000000e-03, 4.647183479530e+00, 0.000000000000e+00, 9.552152089580e-01, 5.669000452744e+00, 8.751201528747e-03',2885 function () {2886 var rets = dscom( 2.062957071136e+04, 4.850600000000e-03, 4.647183479530e+00, 0.000000000000e+00, 9.552152089580e-01, 5.669000452744e+00, 8.751201528747e-03),2887 sinim = rets.shift(),2888 cosim = rets.shift(),2889 sinomm = rets.shift(),2890 cosomm = rets.shift(),2891 snodm = rets.shift(),2892 cnodm = rets.shift(),2893 day = rets.shift(),2894 e3 = rets.shift(),2895 ee2 = rets.shift(),2896 em = rets.shift(),2897 emsq = rets.shift(),2898 gam = rets.shift(),2899 peo = rets.shift(),2900 pgho = rets.shift(),2901 pho = rets.shift(),2902 pinco = rets.shift(),2903 plo = rets.shift(),2904 rtemsq = rets.shift(),2905 se2 = rets.shift(),2906 se3 = rets.shift(),2907 sgh2 = rets.shift(),2908 sgh3 = rets.shift(),2909 sgh4 = rets.shift(),2910 sh2 = rets.shift(),2911 sh3 = rets.shift(),2912 si2 = rets.shift(),2913 si3 = rets.shift(),2914 sl2 = rets.shift(),2915 sl3 = rets.shift(),2916 sl4 = rets.shift(),2917 s1 = rets.shift(),2918 s2 = rets.shift(),2919 s3 = rets.shift(),2920 s4 = rets.shift(),2921 s5 = rets.shift(),2922 s6 = rets.shift(),2923 s7 = rets.shift(),2924 ss1 = rets.shift(),2925 ss2 = rets.shift(),2926 ss3 = rets.shift(),2927 ss4 = rets.shift(),2928 ss5 = rets.shift(),2929 ss6 = rets.shift(),2930 ss7 = rets.shift(),2931 sz1 = rets.shift(),2932 sz2 = rets.shift(),2933 sz3 = rets.shift(),2934 sz11 = rets.shift(),2935 sz12 = rets.shift(),2936 sz13 = rets.shift(),2937 sz21 = rets.shift(),2938 sz22 = rets.shift(),2939 sz23 = rets.shift(),2940 sz31 = rets.shift(),2941 sz32 = rets.shift(),2942 sz33 = rets.shift(),2943 xgh2 = rets.shift(),2944 xgh3 = rets.shift(),2945 xgh4 = rets.shift(),2946 xh2 = rets.shift(),2947 xh3 = rets.shift(),2948 xi2 = rets.shift(),2949 xi3 = rets.shift(),2950 xl2 = rets.shift(),2951 xl3 = rets.shift(),2952 xl4 = rets.shift(),2953 nm = rets.shift(),2954 z1 = rets.shift(),2955 z2 = rets.shift(),2956 z3 = rets.shift(),2957 z11 = rets.shift(),2958 z12 = rets.shift(),2959 z13 = rets.shift(),2960 z21 = rets.shift(),2961 z22 = rets.shift(),2962 z23 = rets.shift(),2963 z31 = rets.shift(),2964 z32 = rets.shift(),2965 z33 = rets.shift(),2966 zmol = rets.shift(),2967 zmos = rets.shift(),2968 TOL = 0.0000001;2969 expect(81);2970 ok(isequalRel(sinim, 8.164380281199e-01, TOL), "sinim=" + sinim);2971 ok(isequalRel(cosim, 5.774330664585e-01, TOL), "cosim=" + cosim);2972 ok(isequalRel(sinomm, -9.978748744491e-01, TOL), "sinomm=" + sinomm);2973 ok(isequalRel(cosomm, -6.515930434859e-02, TOL), "cosomm=" + cosomm);2974 ok(isequalRel(snodm, -5.762925414229e-01, TOL), "snodm=" + snodm);2975 ok(isequalRel(cnodm, 8.172434806716e-01, TOL), "cnodm=" + cnodm);2976 ok(isequalRel(day, 3.889107071136e+04, TOL), "day=" + day);2977 ok(isequalRel(e3, -3.876849228949e-06, TOL), "e3=" + e3);2978 ok(isequalRel(ee2, 5.421891510864e-06, TOL), "ee2=" + ee2);2979 ok(isequalRel(em, 4.850600000000e-03, TOL), "em=" + em);2980 ok(isequalRel(emsq, 2.352832036000e-05, TOL), "emsq=" + emsq);2981 ok(isequalRel(gam, 8.145370477691e+01, TOL), "gam=" + gam);2982 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);2983 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);2984 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);2985 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);2986 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);2987 ok(isequalRel(rtemsq, 9.999882357706e-01, TOL), "rtemsq=" + rtemsq);2988 ok(isequalRel(se2, -2.399586065802e-06, TOL), "se2=" + se2);2989 ok(isequalRel(se3, 3.979795711446e-05, TOL), "se3=" + se3);2990 ok(isequalRel(sgh2, -7.340466124056e-03, TOL), "sgh2=" + sgh2);2991 ok(isequalRel(sgh3, -9.267102539452e-04, TOL), "sgh3=" + sgh3);2992 ok(isequalRel(sgh4, -1.028902184234e-04, TOL), "sgh4=" + sgh4);2993 ok(isequalRel(sh2, 1.019818515817e-03, TOL), "sh2=" + sh2);2994 ok(isequalRel(sh3, -1.260734846663e-04, TOL), "sh3=" + sh3);2995 ok(isequalRel(si2, -3.379233009896e-04, TOL), "si2=" + si2);2996 ok(isequalRel(si3, -1.160185387548e-03, TOL), "si3=" + si3);2997 ok(isequalRel(sl2, 6.096109975713e-03, TOL), "sl2=" + sl2);2998 ok(isequalRel(sl3, 1.773703432654e-03, TOL), "sl3=" + sl3);2999 ok(isequalRel(sl4, 2.400824215399e-04, TOL), "sl4=" + sl4);3000 ok(isequalRel(s1, -3.988100801283e-06, TOL), "s1=" + s1);3001 ok(isequalRel(s2, -2.740688187581e-05, TOL), "s2=" + s2);3002 ok(isequalRel(s3, 5.481311890993e-05, TOL), "s3=" + s3);3003 ok(isequalRel(s4, 5.481247407583e-05, TOL), "s4=" + s4);3004 ok(isequalRel(s5, 1.233438061238e-01, TOL), "s5=" + s5);3005 ok(isequalRel(s6, -6.797585844770e-01, TOL), "s6=" + s6);3006 ok(isequalRel(s7, 4.860520611341e-01, TOL), "s7=" + s7);3007 ok(isequalRel(ss1, -2.482981559624e-05, TOL), "ss1=" + ss1);3008 ok(isequalRel(ss2, -1.706345593936e-04, TOL), "ss2=" + ss2);3009 ok(isequalRel(ss3, 3.412651040191e-04, TOL), "ss3=" + ss3);3010 ok(isequalRel(ss4, 3.412610892981e-04, TOL), "ss4=" + ss4);3011 ok(isequalRel(ss5, 1.105337187989e-01, TOL), "ss5=" + ss5);3012 ok(isequalRel(ss6, 4.832065821233e-02, TOL), "ss6=" + ss6);3013 ok(isequalRel(ss7, -8.014146734236e-01, TOL), "ss7=" + ss7);3014 ok(isequalRel(sz1, 8.767976650646e+00, TOL), "sz1=" + sz1);3015 ok(isequalRel(sz2, -8.931633946627e+00, TOL), "sz2=" + sz2);3016 ok(isequalRel(sz3, 6.169258803781e+00, TOL), "sz3=" + sz3);3017 ok(isequalRel(sz11, -1.152824021952e+00, TOL), "sz11=" + sz11);3018 ok(isequalRel(sz12, 9.901959550000e-01, TOL), "sz12=" + sz12);3019 ok(isequalRel(sz13, 2.246796171257e+00, TOL), "sz13=" + sz13);3020 ok(isequalRel(sz21, -1.154475187594e+00, TOL), "sz21=" + sz21);3021 ok(isequalRel(sz22, 2.988311744821e+00, TOL), "sz22=" + sz22);3022 ok(isequalRel(sz23, -1.523900599171e+00, TOL), "sz23=" + sz23);3023 ok(isequalRel(sz31, 3.250295769937e+00, TOL), "sz31=" + sz31);3024 ok(isequalRel(sz32, -1.075491222740e+01, TOL), "sz32=" + sz32);3025 ok(isequalRel(sz33, 1.892522670385e+00, TOL), "sz33=" + sz33);3026 ok(isequalRel(xgh2, 6.595724207569e-04, TOL), "xgh2=" + xgh2);3027 ok(isequalRel(xgh3, 1.091630835372e-03, TOL), "xgh3=" + xgh3);3028 ok(isequalRel(xgh4, -5.416568688173e-05, TOL), "xgh4=" + xgh4);3029 ok(isequalRel(xh2, -1.288582105817e-04, TOL), "xh2=" + xh2);3030 ok(isequalRel(xh3, -9.703376083569e-05, TOL), "xh3=" + xh3);3031 ok(isequalRel(xi2, -8.270003713552e-05, TOL), "xi2=" + xi2);3032 ok(isequalRel(xi3, 1.575914794162e-04, TOL), "xi3=" + xi3);3033 ok(isequalRel(xl2, -4.514061623044e-04, TOL), "xl2=" + xl2);3034 ok(isequalRel(xl3, -1.081448579815e-03, TOL), "xl3=" + xl3);3035 ok(isequalRel(xl4, 1.263893640252e-04, TOL), "xl4=" + xl4);3036 ok(isequalRel(nm, 8.751201528747e-03, TOL), "nm=" + nm);3037 ok(isequalRel(z1, 3.157998007190e+00, TOL), "z1=" + z1);3038 ok(isequalRel(z2, 4.117683606420e+00, TOL), "z2=" + z2);3039 ok(isequalRel(z3, 1.302286796280e+01, TOL), "z3=" + z3);3040 ok(isequalRel(z11, 2.120494801971e+00, TOL), "z11=" + z11);3041 ok(isequalRel(z12, 1.508745823590e+00, TOL), "z12=" + z12);3042 ok(isequalRel(z13, -7.545400183037e-01, TOL), "z13=" + z13);3043 ok(isequalRel(z21, -3.322838238711e-01, TOL), "z21=" + z21);3044 ok(isequalRel(z22, -2.350836756359e+00, TOL), "z22=" + z22);3045 ok(isequalRel(z23, -2.102528269689e+00, TOL), "z23=" + z23);3046 ok(isequalRel(z31, -1.937886829300e+00, TOL), "z31=" + z31);3047 ok(isequalRel(z32, 6.016626980242e+00, TOL), "z32=" + z32);3048 ok(isequalRel(z33, 8.019981829044e+00, TOL), "z33=" + z33);3049 ok(isequalRel(zmol, 1.529662090192e+00, TOL), "zmol=" + zmol);3050 ok(isequalRel(zmos, 2.959059713970e+00, TOL), "zmos=" + zmos);3051 });3052// 281293053// 283503054// *** error: t:= 1560.000000 *** code = 13055test(' 2.063181079184e+04, 6.249053000000e-01, 2.971510317983e+00, 0.000000000000e+00, 4.977679026688e-01, 2.006838915138e+00, 1.655279727416e-02',3056 function () {3057 var rets = dscom( 2.063181079184e+04, 6.249053000000e-01, 2.971510317983e+00, 0.000000000000e+00, 4.977679026688e-01, 2.006838915138e+00, 1.655279727416e-02),3058 sinim = rets.shift(),3059 cosim = rets.shift(),3060 sinomm = rets.shift(),3061 cosomm = rets.shift(),3062 snodm = rets.shift(),3063 cnodm = rets.shift(),3064 day = rets.shift(),3065 e3 = rets.shift(),3066 ee2 = rets.shift(),3067 em = rets.shift(),3068 emsq = rets.shift(),3069 gam = rets.shift(),3070 peo = rets.shift(),3071 pgho = rets.shift(),3072 pho = rets.shift(),3073 pinco = rets.shift(),3074 plo = rets.shift(),3075 rtemsq = rets.shift(),3076 se2 = rets.shift(),3077 se3 = rets.shift(),3078 sgh2 = rets.shift(),3079 sgh3 = rets.shift(),3080 sgh4 = rets.shift(),3081 sh2 = rets.shift(),3082 sh3 = rets.shift(),3083 si2 = rets.shift(),3084 si3 = rets.shift(),3085 sl2 = rets.shift(),3086 sl3 = rets.shift(),3087 sl4 = rets.shift(),3088 s1 = rets.shift(),3089 s2 = rets.shift(),3090 s3 = rets.shift(),3091 s4 = rets.shift(),3092 s5 = rets.shift(),3093 s6 = rets.shift(),3094 s7 = rets.shift(),3095 ss1 = rets.shift(),3096 ss2 = rets.shift(),3097 ss3 = rets.shift(),3098 ss4 = rets.shift(),3099 ss5 = rets.shift(),3100 ss6 = rets.shift(),3101 ss7 = rets.shift(),3102 sz1 = rets.shift(),3103 sz2 = rets.shift(),3104 sz3 = rets.shift(),3105 sz11 = rets.shift(),3106 sz12 = rets.shift(),3107 sz13 = rets.shift(),3108 sz21 = rets.shift(),3109 sz22 = rets.shift(),3110 sz23 = rets.shift(),3111 sz31 = rets.shift(),3112 sz32 = rets.shift(),3113 sz33 = rets.shift(),3114 xgh2 = rets.shift(),3115 xgh3 = rets.shift(),3116 xgh4 = rets.shift(),3117 xh2 = rets.shift(),3118 xh3 = rets.shift(),3119 xi2 = rets.shift(),3120 xi3 = rets.shift(),3121 xl2 = rets.shift(),3122 xl3 = rets.shift(),3123 xl4 = rets.shift(),3124 nm = rets.shift(),3125 z1 = rets.shift(),3126 z2 = rets.shift(),3127 z3 = rets.shift(),3128 z11 = rets.shift(),3129 z12 = rets.shift(),3130 z13 = rets.shift(),3131 z21 = rets.shift(),3132 z22 = rets.shift(),3133 z23 = rets.shift(),3134 z31 = rets.shift(),3135 z32 = rets.shift(),3136 z33 = rets.shift(),3137 zmol = rets.shift(),3138 zmos = rets.shift(),3139 TOL = 0.0000001;3140 expect(81);3141 ok(isequalRel(sinim, 4.774654962260e-01, TOL), "sinim=" + sinim);3142 ok(isequalRel(cosim, 8.786504992963e-01, TOL), "cosim=" + cosim);3143 ok(isequalRel(sinomm, 1.692634972133e-01, TOL), "sinomm=" + sinomm);3144 ok(isequalRel(cosomm, -9.855708338375e-01, TOL), "cosomm=" + cosomm);3145 ok(isequalRel(snodm, 9.064301919275e-01, TOL), "snodm=" + snodm);3146 ok(isequalRel(cnodm, -4.223556642953e-01, TOL), "cnodm=" + cnodm);3147 ok(isequalRel(day, 3.889331079184e+04, TOL), "day=" + day);3148 ok(isequalRel(e3, 2.080207273239e-04, TOL), "e3=" + e3);3149 ok(isequalRel(ee2, 2.279612848318e-04, TOL), "ee2=" + ee2);3150 ok(isequalRel(em, 6.249053000000e-01, TOL), "em=" + em);3151 ok(isequalRel(emsq, 3.905066339681e-01, TOL), "emsq=" + emsq);3152 ok(isequalRel(gam, 8.145806031771e+01, TOL), "gam=" + gam);3153 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);3154 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);3155 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);3156 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);3157 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);3158 ok(isequalRel(rtemsq, 7.807005610552e-01, TOL), "rtemsq=" + rtemsq);3159 ok(isequalRel(se2, -2.010666927152e-03, TOL), "se2=" + se2);3160 ok(isequalRel(se3, 1.234888459603e-04, TOL), "se3=" + se3);3161 ok(isequalRel(sgh2, 4.404694052449e-04, TOL), "sgh2=" + sgh2);3162 ok(isequalRel(sgh3, -3.174852765982e-03, TOL), "sgh3=" + sgh3);3163 ok(isequalRel(sgh4, -4.246782106577e-05, TOL), "sgh4=" + sgh4);3164 ok(isequalRel(sh2, 4.897361699131e-04, TOL), "sh2=" + sh2);3165 ok(isequalRel(sh3, -1.594883558919e-04, TOL), "sh3=" + sh3);3166 ok(isequalRel(si2, -1.422358125944e-03, TOL), "si2=" + si2);3167 ok(isequalRel(si3, -1.642085155919e-03, TOL), "si3=" + si3);3168 ok(isequalRel(sl2, -1.791873501287e-03, TOL), "sl2=" + sl2);3169 ok(isequalRel(sl3, 5.840111590196e-03, TOL), "sl3=" + sl3);3170 ok(isequalRel(sl4, 1.481689063817e-04, TOL), "sl4=" + sl4);3171 ok(isequalRel(s1, -2.120658619569e-04, TOL), "s1=" + s1);3172 ok(isequalRel(s2, -1.855950189595e-05, TOL), "s2=" + s2);3173 ok(isequalRel(s3, 2.897882708615e-05, TOL), "s3=" + s3);3174 ok(isequalRel(s4, 2.262378656488e-05, TOL), "s4=" + s4);3175 ok(isequalRel(s5, 2.722596005818e-01, TOL), "s5=" + s5);3176 ok(isequalRel(s6, -5.374775617541e-01, TOL), "s6=" + s6);3177 ok(isequalRel(s7, -4.904625511250e-01, TOL), "s7=" + s7);3178 ok(isequalRel(ss1, -1.320316739475e-03, TOL), "ss1=" + ss1);3179 ok(isequalRel(ss2, -1.155509934670e-04, TOL), "ss2=" + ss2);3180 ok(isequalRel(ss3, 1.804214508603e-04, TOL), "ss3=" + ss3);3181 ok(isequalRel(ss4, 1.408551279130e-04, TOL), "ss4=" + ss4);3182 ok(isequalRel(ss5, 2.346453190940e-01, TOL), "ss5=" + ss5);3183 ok(isequalRel(ss6, 7.614335511458e-01, TOL), "ss6=" + ss6);3184 ok(isequalRel(ss7, -4.676485659395e-02, TOL), "ss7=" + ss7);3185 ok(isequalRel(sz1, 1.776222957970e+01, TOL), "sz1=" + sz1);3186 ok(isequalRel(sz2, 4.965799500954e+00, TOL), "sz2=" + sz2);3187 ok(isequalRel(sz3, 1.577591992681e+00, TOL), "sz3=" + sz3);3188 ok(isequalRel(sz11, -5.936254038933e+00, TOL), "sz11=" + sz11);3189 ok(isequalRel(sz12, 6.154677183070e+00, TOL), "sz12=" + sz12);3190 ok(isequalRel(sz13, 1.169202637163e+00, TOL), "sz13=" + sz13);3191 ok(isequalRel(sz21, -7.594596902903e-01, TOL), "sz21=" + sz21);3192 ok(isequalRel(sz22, 2.119134397807e+00, TOL), "sz22=" + sz22);3193 ok(isequalRel(sz23, -1.449580783613e+00, TOL), "sz23=" + sz23);3194 ok(isequalRel(sz31, 9.294909311397e+00, TOL), "sz31=" + sz31);3195 ok(isequalRel(sz32, 1.563554738018e+00, TOL), "sz32=" + sz32);3196 ok(isequalRel(sz33, -1.975013243152e+00, TOL), "sz33=" + sz33);3197 ok(isequalRel(xgh2, -3.876052640328e-04, TOL), "xgh2=" + xgh2);3198 ok(isequalRel(xgh3, 2.628367881541e-04, TOL), "xgh3=" + xgh3);3199 ok(isequalRel(xgh4, -2.235682588341e-05, TOL), "xgh4=" + xgh4);3200 ok(isequalRel(xh2, -7.296812344377e-05, TOL), "xh2=" + xh2);3201 ok(isequalRel(xh3, -4.081833544751e-05, TOL), "xh3=" + xh3);3202 ok(isequalRel(xi2, -6.948628061380e-05, TOL), "xi2=" + xi2);3203 ok(isequalRel(xi3, 3.512666727653e-04, TOL), "xi3=" + xi3);3204 ok(isequalRel(xl2, 8.272799129225e-04, TOL), "xl2=" + xl2);3205 ok(isequalRel(xl3, -3.372511878045e-04, TOL), "xl3=" + xl3);3206 ok(isequalRel(xl4, 7.800226991119e-05, TOL), "xl4=" + xl4);3207 ok(isequalRel(nm, 1.655279727416e-02, TOL), "nm=" + nm);3208 ok(isequalRel(z1, 5.938562976121e+00, TOL), "z1=" + z1);3209 ok(isequalRel(z2, -1.427386813247e+01, TOL), "z2=" + z2);3210 ok(isequalRel(z3, 1.175748702715e+01, TOL), "z3=" + z3);3211 ok(isequalRel(z11, 2.138574136804e+00, TOL), "z11=" + z11);3212 ok(isequalRel(z12, 1.871986678397e+00, TOL), "z12=" + z12);3213 ok(isequalRel(z13, -7.324682871238e+00, TOL), "z13=" + z13);3214 ok(isequalRel(z21, -5.405862432734e-01, TOL), "z21=" + z21);3215 ok(isequalRel(z22, -1.965788841016e+00, TOL), "z22=" + z22);3216 ok(isequalRel(z23, -1.640247637107e+00, TOL), "z23=" + z23);3217 ok(isequalRel(z31, 3.189234780521e-01, TOL), "z31=" + z31);3218 ok(isequalRel(z32, -8.566321621740e+00, TOL), "z32=" + z32);3219 ok(isequalRel(z33, 6.127782826163e+00, TOL), "z33=" + z33);3220 ok(isequalRel(zmol, 2.040461217495e+00, TOL), "zmol=" + zmol);3221 ok(isequalRel(zmos, 2.997593526865e+00, TOL), "zmos=" + zmos);3222 });3223// 286233224test(' 2.063046683397e+04, 3.350000000000e-05, 2.407123197766e-01, 0.000000000000e+00, 3.316125578789e-05, 5.008105351538e+00, 4.374949216286e-03',3225 function () {3226 var rets = dscom( 2.063046683397e+04, 3.350000000000e-05, 2.407123197766e-01, 0.000000000000e+00, 3.316125578789e-05, 5.008105351538e+00, 4.374949216286e-03),3227 sinim = rets.shift(),3228 cosim = rets.shift(),3229 sinomm = rets.shift(),3230 cosomm = rets.shift(),3231 snodm = rets.shift(),3232 cnodm = rets.shift(),3233 day = rets.shift(),3234 e3 = rets.shift(),3235 ee2 = rets.shift(),3236 em = rets.shift(),3237 emsq = rets.shift(),3238 gam = rets.shift(),3239 peo = rets.shift(),3240 pgho = rets.shift(),3241 pho = rets.shift(),3242 pinco = rets.shift(),3243 plo = rets.shift(),3244 rtemsq = rets.shift(),3245 se2 = rets.shift(),3246 se3 = rets.shift(),3247 sgh2 = rets.shift(),3248 sgh3 = rets.shift(),3249 sgh4 = rets.shift(),3250 sh2 = rets.shift(),3251 sh3 = rets.shift(),3252 si2 = rets.shift(),3253 si3 = rets.shift(),3254 sl2 = rets.shift(),3255 sl3 = rets.shift(),3256 sl4 = rets.shift(),3257 s1 = rets.shift(),3258 s2 = rets.shift(),3259 s3 = rets.shift(),3260 s4 = rets.shift(),3261 s5 = rets.shift(),3262 s6 = rets.shift(),3263 s7 = rets.shift(),3264 ss1 = rets.shift(),3265 ss2 = rets.shift(),3266 ss3 = rets.shift(),3267 ss4 = rets.shift(),3268 ss5 = rets.shift(),3269 ss6 = rets.shift(),3270 ss7 = rets.shift(),3271 sz1 = rets.shift(),3272 sz2 = rets.shift(),3273 sz3 = rets.shift(),3274 sz11 = rets.shift(),3275 sz12 = rets.shift(),3276 sz13 = rets.shift(),3277 sz21 = rets.shift(),3278 sz22 = rets.shift(),3279 sz23 = rets.shift(),3280 sz31 = rets.shift(),3281 sz32 = rets.shift(),3282 sz33 = rets.shift(),3283 xgh2 = rets.shift(),3284 xgh3 = rets.shift(),3285 xgh4 = rets.shift(),3286 xh2 = rets.shift(),3287 xh3 = rets.shift(),3288 xi2 = rets.shift(),3289 xi3 = rets.shift(),3290 xl2 = rets.shift(),3291 xl3 = rets.shift(),3292 xl4 = rets.shift(),3293 nm = rets.shift(),3294 z1 = rets.shift(),3295 z2 = rets.shift(),3296 z3 = rets.shift(),3297 z11 = rets.shift(),3298 z12 = rets.shift(),3299 z13 = rets.shift(),3300 z21 = rets.shift(),3301 z22 = rets.shift(),3302 z23 = rets.shift(),3303 z31 = rets.shift(),3304 z32 = rets.shift(),3305 z33 = rets.shift(),3306 zmol = rets.shift(),3307 zmos = rets.shift(),3308 TOL = 0.0000001;3309 expect(81);3310 ok(isequalRel(sinim, 3.316125578181e-05, TOL), "sinim=" + sinim);3311 ok(isequalRel(cosim, 9.999999994502e-01, TOL), "cosim=" + cosim);3312 ok(isequalRel(sinomm, 2.383944693127e-01, TOL), "sinomm=" + sinomm);3313 ok(isequalRel(cosomm, 9.711684081564e-01, TOL), "cosomm=" + cosomm);3314 ok(isequalRel(snodm, -9.565936191876e-01, TOL), "snodm=" + snodm);3315 ok(isequalRel(cnodm, 2.914252009170e-01, TOL), "cnodm=" + cnodm);3316 ok(isequalRel(day, 3.889196683397e+04, TOL), "day=" + day);3317 ok(isequalRel(e3, 9.730286584479e-08, TOL), "e3=" + e3);3318 ok(isequalRel(ee2, 4.116645807083e-09, TOL), "ee2=" + ee2);3319 ok(isequalRel(em, 3.350000000000e-05, TOL), "em=" + em);3320 ok(isequalRel(emsq, 1.122250000000e-09, TOL), "emsq=" + emsq);3321 ok(isequalRel(gam, 8.145544716903e+01, TOL), "gam=" + gam);3322 ok(isequalRel(peo, 0.000000000000e+00, TOL), "peo=" + peo);3323 ok(isequalRel(pgho, 0.000000000000e+00, TOL), "pgho=" + pgho);3324 ok(isequalRel(pho, 0.000000000000e+00, TOL), "pho=" + pho);3325 ok(isequalRel(pinco, 0.000000000000e+00, TOL), "pinco=" + pinco);3326 ok(isequalRel(plo, 0.000000000000e+00, TOL), "plo=" + plo);3327 ok(isequalRel(rtemsq, 9.999999994389e-01, TOL), "rtemsq=" + rtemsq);3328 ok(isequalRel(se2, -4.897269431303e-07, TOL), "se2=" + se2);3329 ok(isequalRel(se3, -3.982514162897e-07, TOL), "se3=" + se3);3330 ok(isequalRel(sgh2, 1.218979806720e-02, TOL), "sgh2=" + sgh2);3331 ok(isequalRel(sgh3, -1.372729148759e-02, TOL), "sgh3=" + sgh3);3332 ok(isequalRel(sgh4, -2.058135042329e-04, TOL), "sgh4=" + sgh4);3333 ok(isequalRel(sh2, -1.607052704128e-03, TOL), "sh2=" + sh2);3334 ok(isequalRel(sh3, 1.922166128879e-04, TOL), "sh3=" + sh3);3335 ok(isequalRel(si2, 1.068903225853e-04, TOL), "si2=" + si2);3336 ok(isequalRel(si3, 1.503069663730e-03, TOL), "si3=" + si3);3337 ok(isequalRel(sl2, -1.268456207451e-02, TOL), "sl2=" + sl2);3338 ok(isequalRel(sl3, 1.252883219957e-02, TOL), "sl3=" + sl3);3339 ok(isequalRel(sl4, 4.802315103772e-04, TOL), "sl4=" + sl4);3340 ok(isequalRel(s1, -5.509538844302e-08, TOL), "s1=" + s1);3341 ok(isequalRel(s2, -5.482128209438e-05, TOL), "s2=" + s2);3342 ok(isequalRel(s3, 1.096425641272e-04, TOL), "s3=" + s3);3343 ok(isequalRel(s4, 1.096425640657e-04, TOL), "s4=" + s4);3344 ok(isequalRel(s5, 1.006889932162e-01, TOL), "s5=" + s5);3345 ok(isequalRel(s6, -3.735925930843e-02, TOL), "s6=" + s6);3346 ok(isequalRel(s7, -8.830400201772e-01, TOL), "s7=" + s7);3347 ok(isequalRel(ss1, -3.430225070548e-07, TOL), "ss1=" + ss1);3348 ok(isequalRel(ss2, -3.413159278008e-04, TOL), "ss2=" + ss2);3349 ok(isequalRel(ss3, 6.826318552185e-04, TOL), "ss3=" + ss3);3350 ok(isequalRel(ss4, 6.826318548355e-04, TOL), "ss4=" + ss4);3351 ok(isequalRel(ss5, 6.952479533275e-02, TOL), "ss5=" + ss5);3352 ok(isequalRel(ss6, 7.138408312257e-01, TOL), "ss6=" + ss6);3353 ok(isequalRel(ss7, 5.805033315585e-01, TOL), "ss7=" + ss7);3354 ok(isequalRel(sz1, 1.397388821705e+01, TOL), "sz1=" + sz1);3355 ok(isequalRel(sz2, 9.290924513366e+00, TOL), "sz2=" + sz2);3356 ok(isequalRel(sz3, 4.797029487281e+00, TOL), "sz3=" + sz3);3357 ok(isequalRel(sz11, 2.148442577894e+00, TOL), "sz11=" + sz11);3358 ok(isequalRel(sz12, -1.565856057085e-01, TOL), "sz12=" + sz12);3359 ok(isequalRel(sz13, -5.343190451679e-02, TOL), "sz13=" + sz13);3360 ok(isequalRel(sz21, 1.782467849547e-01, TOL), "sz21=" + sz21);3361 ok(isequalRel(sz22, -2.354201156804e+00, TOL), "sz22=" + sz22);3362 ok(isequalRel(sz23, 4.598284476190e-01, TOL), "sz23=" + sz23);3363 ok(isequalRel(sz31, 8.887642026753e+00, TOL), "sz31=" + sz31);3364 ok(isequalRel(sz32, 8.928530056762e+00, TOL), "sz32=" + sz32);3365 ok(isequalRel(sz33, -1.167039270606e+00, TOL), "sz33=" + sz33);3366 ok(isequalRel(xgh2, -2.791926643954e-03, TOL), "xgh2=" + xgh2);3367 ok(isequalRel(xgh3, -6.071229788246e-05, TOL), "xgh3=" + xgh3);3368 ok(isequalRel(xgh4, -1.083487818097e-04, TOL), "xgh4=" + xgh4);3369 ok(isequalRel(xh2, 2.358741028641e-04, TOL), "xh2=" + xh2);3370 ok(isequalRel(xh3, 2.037703492136e-04, TOL), "xh3=" + xh3);3371 ok(isequalRel(xi2, 1.978957741048e-04, TOL), "xi2=" + xi2);3372 ok(isequalRel(xi3, -1.979448507755e-04, TOL), "xi3=" + xi3);3373 ok(isequalRel(xl2, 2.660801647839e-03, TOL), "xl2=" + xl2);3374 ok(isequalRel(xl3, 3.319557433091e-04, TOL), "xl3=" + xl3);3375 ok(isequalRel(xl4, 2.528138244862e-04, TOL), "xl4=" + xl4);3376 ok(isequalRel(nm, 4.374949216286e-03, TOL), "nm=" + nm);3377 ok(isequalRel(z1, 9.646010296956e+00, TOL), "z1=" + z1);3378 ok(isequalRel(z2, -1.213398131018e+01, TOL), "z2=" + z2);3379 ok(isequalRel(z3, 8.132201558755e+00, TOL), "z3=" + z3);3380 ok(isequalRel(z11, 3.027985928786e-01, TOL), "z11=" + z11);3381 ok(isequalRel(z12, -1.804917420247e+00, TOL), "z12=" + z12);3382 ok(isequalRel(z13, 2.108163619135e+00, TOL), "z13=" + z13);3383 ok(isequalRel(z21, -5.607883259758e-01, TOL), "z21=" + z21);3384 ok(isequalRel(z22, 2.151300497297e+00, TOL), "z22=" + z22);3385 ok(isequalRel(z23, 1.297708424089e+00, TOL), "z23=" + z23);3386 ok(isequalRel(z31, 3.714486889036e+00, TOL), "z31=" + z31);3387 ok(isequalRel(z32, -1.273194706702e+01, TOL), "z32=" + z32);3388 ok(isequalRel(z33, 3.437622249834e+00, TOL), "z33=" + z33);3389 ok(isequalRel(zmol, 1.734002358913e+00, TOL), "zmol=" + zmol);3390 ok(isequalRel(zmos, 2.974474794500e+00, TOL), "zmos=" + zmos);3391 });3392// 286263393// 288723394// 291413395// *** error: t:= 440.000000 *** code = 63396// 29238...

Full Screen

Full Screen

newtonnu_test.js

Source:newtonnu_test.js Github

copy

Full Screen

1/*global2 module: true, test: true, equal: true, notEqual: true, ok: true, isequalRel: true,3 newtonnu: true4 */5module('newtonnu');6test('eccentricity = 0.0', function () {7 var TOLERANCE = 1e-14,8 TOLERANCE_BIG = 1e-13,9 ecc = 0.0,10 rets, e0, m;11 rets = newtonnu(ecc, -6.28);12 e0 = rets.shift();13 m = rets.shift();14 ok(Math.abs(e0 - -6.28000000000000E+00) < TOLERANCE, "got e0=" + e0);15 ok(Math.abs(m - 3.18530717958598E-03) < TOLERANCE, "got m=" + m);16 rets = newtonnu(ecc, -3.14);17 e0 = rets.shift();18 m = rets.shift();19 ok(Math.abs(e0 - -3.14000000000000E+00) < TOLERANCE, "got e0=" + e0);20 ok(Math.abs(m - 3.14318530717959E+00) < TOLERANCE, "got m=" + m);21 rets = newtonnu(ecc, 0.0);22 e0 = rets.shift();23 m = rets.shift();24 ok(Math.abs(e0 - 0.00000000000000E+00) < TOLERANCE, "got e0=" + e0);25 ok(Math.abs(m - 0.00000000000000E+00) < TOLERANCE, "got m=" + m);26 rets = newtonnu(ecc, 3.14);27 e0 = rets.shift();28 m = rets.shift();29 ok(Math.abs(e0 - 3.14000000000000E+00) < TOLERANCE, "got e0=" + e0);30 ok(Math.abs(m - 3.14000000000000E+00) < TOLERANCE, "got m=" + m);31 rets = newtonnu(ecc, 6.28);32 e0 = rets.shift();33 m = rets.shift();34 ok(Math.abs(e0 - 6.28000000000000E+00) < TOLERANCE, "got e0=" + e0);35 ok(Math.abs(m - 6.28000000000000E+00) < TOLERANCE, "got m=" + m);36});37test('eccentricity = 0.333', function () {38 var TOLERANCE = 1e-14,39 TOLERANCE_BIG = 1e-13,40 ecc = 0.333,41 rets, e0, m;42 rets = newtonnu(ecc, -6.28);43 e0 = rets.shift();44 m = rets.shift();45 ok(Math.abs(e0 - 2.25319794362693E-03) < TOLERANCE, "got e0=" + e0);46 ok(Math.abs(m - 1.50288366327809E-03) < TOLERANCE, "got m=" + m);47 rets = newtonnu(ecc, -3.14);48 e0 = rets.shift();49 m = rets.shift();50 ok(Math.abs(e0 - -3.13934114612643E+00) < TOLERANCE, "got e0=" + e0);51 ok(Math.abs(m - 3.14459391240500E+00) < TOLERANCE, "got m=" + m);52 rets = newtonnu(ecc, 0.0);53 e0 = rets.shift();54 m = rets.shift();55 ok(Math.abs(e0 - 0.00000000000000E+00) < TOLERANCE, "got e0=" + e0);56 ok(Math.abs(m - 0.00000000000000E+00) < TOLERANCE, "got m=" + m);57 rets = newtonnu(ecc, 3.14);58 e0 = rets.shift();59 m = rets.shift();60 ok(Math.abs(e0 - 3.13934114612643E+00) < TOLERANCE_BIG, "got e0=" + e0);61 ok(Math.abs(m - 3.13859139477458E+00) < TOLERANCE_BIG, "got m=" + m);62 rets = newtonnu(ecc, 6.28);63 e0 = rets.shift();64 m = rets.shift();65 ok(Math.abs(e0 - -2.25319794362693E-03) < TOLERANCE, "got e0=" + e0);66 ok(Math.abs(m - 6.28168242351631E+00) < TOLERANCE_BIG, "got m=" + m);67});68test('eccentricity = 0.666', function () {69 var TOLERANCE = 1e-14,70 TOLERANCE_BIG = 1e-13,71 ecc = 0.666,72 rets, e0, m;73 rets = newtonnu(ecc, -6.28);74 e0 = rets.shift();75 m = rets.shift();76 ok(Math.abs(e0 - 1.42622271470173E-03) < TOLERANCE, "got e0=" + e0);77 ok(Math.abs(m - 4.76358708731962E-04) < TOLERANCE, "got m=" + m);78 rets = newtonnu(ecc, -3.14);79 e0 = rets.shift();80 m = rets.shift();81 ok(Math.abs(e0 - -3.13803564246188E+00) < TOLERANCE, "got e0=" + e0);82 ok(Math.abs(m - 3.14751862913340E+00) < TOLERANCE_BIG, "got m=" + m);83 rets = newtonnu(ecc, 0.0);84 e0 = rets.shift();85 m = rets.shift();86 ok(Math.abs(e0 - 0.00000000000000E+00) < TOLERANCE, "got e0=" + e0);87 ok(Math.abs(m - 0.00000000000000E+00) < TOLERANCE, "got m=" + m);88 rets = newtonnu(ecc, 3.14);89 e0 = rets.shift();90 m = rets.shift();91 ok(Math.abs(e0 - 3.13803564246188E+00) < TOLERANCE, "got e0=" + e0);92 ok(Math.abs(m - 3.13566667804618E+00) < TOLERANCE_BIG, "got m=" + m);93 rets = newtonnu(ecc, 6.28);94 e0 = rets.shift();95 m = rets.shift();96 ok(Math.abs(e0 - -1.42622271470173E-03) < TOLERANCE);97 ok(Math.abs(m - 6.28270894847085E+00) < TOLERANCE_BIG, "got m=" + m);98});99test('testmat.m results', function () {100 // 5101 var TOL = 0.000001,102 rets;103 rets = newtonnu(1.856839661347e-01, 4.406401781136e+00);104 ok(isequalRel(rets.shift(), -1.693500912993e+00, TOL));105 ok(isequalRel(rets.shift(), 4.773972245877e+00, TOL));106 rets = newtonnu(1.851411170975e-01, 2.988460057544e+00);107 ok(isequalRel(rets.shift(), 2.957079757746e+00, TOL));108 ok(isequalRel(rets.shift(), 2.923112339227e+00, TOL));109 rets = newtonnu(1.856989869471e-01, 1.434828952104e+00);110 ok(isequalRel(rets.shift(), 1.252067006852e+00, TOL));111 ok(isequalRel(rets.shift(), 1.075720867283e+00, TOL));112 rets = newtonnu(1.858012633167e-01, 5.209551568087e+00);113 ok(isequalRel(rets.shift(), -9.162653479718e-01, TOL));114 ok(isequalRel(rets.shift(), 5.514322334927e+00, TOL));115 rets = newtonnu(1.850633960634e-01, 3.513807794463e+00);116 ok(isequalRel(rets.shift(), -2.695056670829e+00, TOL));117 ok(isequalRel(rets.shift(), 3.668047110329e+00, TOL));118 rets = newtonnu(1.856388540272e-01, 2.152516069731e+00);119 ok(isequalRel(rets.shift(), 1.987937576469e+00, TOL));120 ok(isequalRel(rets.shift(), 1.818217088405e+00, TOL));121 rets = newtonnu(1.863381127011e-01, 6.243079099420e+00);122 ok(isequalRel(rets.shift(), -3.321602291535e-02, TOL));123 ok(isequalRel(rets.shift(), 6.256157557215e+00, TOL));124 rets = newtonnu(1.855375875133e-01, 4.085982404991e+00);125 ok(isequalRel(rets.shift(), -2.037116767007e+00, TOL));126 ok(isequalRel(rets.shift(), 4.411796032899e+00, TOL));127 rets = newtonnu(1.853306179043e-01, 2.729639278624e+00);128 ok(isequalRel(rets.shift(), 2.647817867576e+00, TOL));129 ok(isequalRel(rets.shift(), 2.559979838351e+00, TOL));130 rets = newtonnu(1.859736824913e-01, 1.003249486494e+00);131 ok(isequalRel(rets.shift(), 8.529304762464e-01, TOL));132 ok(isequalRel(rets.shift(), 7.128530079849e-01, TOL));133 rets = newtonnu(1.858540672265e-01, 4.787559941164e+00);134 ok(isequalRel(rets.shift(), -1.310504998910e+00, TOL));135 ok(isequalRel(rets.shift(), 5.152273889120e+00, TOL));136 rets = newtonnu(1.850788067685e-01, 3.255632011792e+00);137 ok(isequalRel(rets.shift(), -3.004138755279e+00, TOL));138 ok(isequalRel(rets.shift(), 3.304406322893e+00, TOL));139 // 4632140 rets = newtonnu(1.455338138953e-01, 5.998398344535e-01);141 ok(isequalRel(rets.shift(), 5.219876549463e-01, TOL));142 ok(isequalRel(rets.shift(), 4.494239015219e-01, TOL));143 rets = newtonnu(1.455107353728e-01, 1.355729535740e+00);144 ok(isequalRel(rets.shift(), 1.215238700804e+00, TOL));145 ok(isequalRel(rets.shift(), 1.078829295587e+00, TOL));146 rets = newtonnu(1.454826923634e-01, 1.985943404750e+00);147 ok(isequalRel(rets.shift(), 1.848256889119e+00, TOL));148 ok(isequalRel(rets.shift(), 1.708338309375e+00, TOL));149 rets = newtonnu(1.454720410785e-01, 2.209343273602e+00);150 ok(isequalRel(rets.shift(), 2.086712434391e+00, TOL));151 ok(isequalRel(rets.shift(), 1.960174868014e+00, TOL));152 // 6251153 rets = newtonnu(2.843508525266e-03, 5.878252404382e+00);154 ok(isequalRel(rets.shift(), -4.038141422773e-01, TOL));155 ok(isequalRel(rets.shift(), 5.880488460609e+00, TOL));156 rets = newtonnu(3.376171121503e-03, 1.450679689026e+00);157 ok(isequalRel(rets.shift(), 1.447328515807e+00, TOL));158 ok(isequalRel(rets.shift(), 1.443978045695e+00, TOL));159 rets = newtonnu(3.544166013612e-03, 3.280757728716e+00);160 ok(isequalRel(rets.shift(), -3.001935078983e+00, TOL));161 ok(isequalRel(rets.shift(), 3.281743590394e+00, TOL));162 rets = newtonnu(3.600050068409e-03, 5.017749103053e+00);163 ok(isequalRel(rets.shift(), -1.262004546185e+00, TOL));164 ok(isequalRel(rets.shift(), 5.024610533924e+00, TOL));165 rets = newtonnu(4.248428830090e-03, 7.050316851707e-01);166 ok(isequalRel(rets.shift(), 7.022828933235e-01, TOL));167 ok(isequalRel(rets.shift(), 6.995385694840e-01, TOL));168 rets = newtonnu(4.550610606204e-03, 2.746082539211e+00);169 ok(isequalRel(rets.shift(), 2.744325586999e+00, TOL));170 ok(isequalRel(rets.shift(), 2.742564957154e+00, TOL));171 rets = newtonnu(3.929277166681e-03, 4.642871348913e+00);172 ok(isequalRel(rets.shift(), -1.636393626680e+00, TOL));173 ok(isequalRel(rets.shift(), 4.650712506846e+00, TOL));174 rets = newtonnu(3.678356420796e-03, 2.327986184503e-01);175 ok(isequalRel(rets.shift(), 2.319515290377e-01, TOL));176 ok(isequalRel(rets.shift(), 2.311059586657e-01, TOL));177 rets = newtonnu(3.768503158891e-03, 2.197801244803e+00);178 ok(isequalRel(rets.shift(), 2.194746168633e+00, TOL));179 ok(isequalRel(rets.shift(), 2.191687737705e+00, TOL));180 rets = newtonnu(3.094892579346e-03, 3.988588600513e+00);181 ok(isequalRel(rets.shift(), -2.292275337606e+00, TOL));182 ok(isequalRel(rets.shift(), 3.993233706748e+00, TOL));183 rets = newtonnu(2.843839523788e-03, 5.585413699649e+00);184 ok(isequalRel(rets.shift(), -6.959463928446e-01, TOL));185 ok(isequalRel(rets.shift(), 5.589062134074e+00, TOL));186 rets = newtonnu(3.546297390768e-03, 1.190045223729e+00);187 ok(isequalRel(rets.shift(), 1.186755052311e+00, TOL));188 ok(isequalRel(rets.shift(), 1.183467074085e+00, TOL));189 rets = newtonnu(3.871245429332e-03, 3.094940341490e+00);190 ok(isequalRel(rets.shift(), 3.094759454018e+00, TOL));191 ok(isequalRel(rets.shift(), 3.094578217478e+00, TOL));192 rets = newtonnu(3.830682076651e-03, 4.893163296023e+00);193 ok(isequalRel(rets.shift(), -1.386255038754e+00, TOL));194 ok(isequalRel(rets.shift(), 4.900695907535e+00, TOL));195 rets = newtonnu(4.291094373757e-03, 5.792132070155e-01);196 ok(isequalRel(rets.shift(), 5.768686096083e-01, TOL));197 ok(isequalRel(rets.shift(), 5.745282383129e-01, TOL));198 rets = newtonnu(4.500171741789e-03, 2.628295360431e+00);199 ok(isequalRel(rets.shift(), 2.626081190485e+00, TOL));200 ok(isequalRel(rets.shift(), 2.623862696238e+00, TOL));201 rets = newtonnu(3.728008119345e-03, 4.522332982372e+00);202 ok(isequalRel(rets.shift(), -1.757190146260e+00, TOL));203 ok(isequalRel(rets.shift(), 4.529658595867e+00, TOL));204 rets = newtonnu(3.314475452111e-03, 4.833955774302e-02);205 ok(isequalRel(rets.shift(), 4.817966408982e-02, TOL));206 ok(isequalRel(rets.shift(), 4.802003554972e-02, TOL));207 rets = newtonnu(3.476031515181e-03, 1.963288807041e+00);208 ok(isequalRel(rets.shift(), 1.960074954471e+00, TOL));209 ok(isequalRel(rets.shift(), 1.956858988939e+00, TOL));210 rets = newtonnu(3.061988804711e-03, 3.719587170064e+00);211 ok(isequalRel(rets.shift(), -2.561923082393e+00, TOL));212 ok(isequalRel(rets.shift(), 3.722939421547e+00, TOL));213 rets = newtonnu(3.018592697200e-03, 5.324365580014e+00);214 ok(isequalRel(rets.shift(), -9.563511026201e-01, TOL));215 ok(isequalRel(rets.shift(), 5.329300676741e+00, TOL));216 rets = newtonnu(3.799018634628e-03, 9.741987854508e-01);217 ok(isequalRel(rets.shift(), 9.710593812987e-01, TOL));218 ok(isequalRel(rets.shift(), 9.679233517514e-01, TOL));219 rets = newtonnu(4.171484128490e-03, 2.945319559456e+00);220 ok(isequalRel(rets.shift(), 2.944504384945e+00, TOL));221 ok(isequalRel(rets.shift(), 2.943687546606e+00, TOL));222 rets = newtonnu(3.961521766570e-03, 4.789304733122e+00);223 ok(isequalRel(rets.shift(), -1.489931355478e+00, TOL));224 ok(isequalRel(rets.shift(), 4.797202528045e+00, TOL));225 // 8195226 rets = newtonnu(6.866679038576e-01, 2.613009397654e+00);227 ok(isequalRel(rets.shift(), 2.020259327952e+00, TOL));228 ok(isequalRel(rets.shift(), 1.401790903669e+00, TOL));229 rets = newtonnu(6.867283634668e-01, 2.961126539238e+00);230 ok(isequalRel(rets.shift(), 2.727710756785e+00, TOL));231 ok(isequalRel(rets.shift(), 2.451531625324e+00, TOL));232 rets = newtonnu(6.867381437714e-01, 3.234035448475e+00);233 ok(isequalRel(rets.shift(), -2.927750569629e+00, TOL));234 ok(isequalRel(rets.shift(), 3.501171579310e+00, TOL));235 rets = newtonnu(6.866895933949e-01, 3.541952899055e+00);236 ok(isequalRel(rets.shift(), -2.261613026813e+00, TOL));237 ok(isequalRel(rets.shift(), 4.550821733826e+00, TOL));238 rets = newtonnu(6.865986595814e-01, 4.127179172619e+00);239 ok(isequalRel(rets.shift(), -1.352842161930e+00, TOL));240 ok(isequalRel(rets.shift(), 5.600698163503e+00, TOL));241 rets = newtonnu(6.866592555576e-01, 1.695649454174e+00);242 ok(isequalRel(rets.shift(), 9.088009790091e-01, TOL));243 ok(isequalRel(rets.shift(), 3.671866268738e-01, TOL));244 rets = newtonnu(6.866249970949e-01, 2.619601954539e+00);245 ok(isequalRel(rets.shift(), 2.032139114172e+00, TOL));246 ok(isequalRel(rets.shift(), 1.417296941539e+00, TOL));247 rets = newtonnu(6.866856337694e-01, 2.965349613386e+00);248 ok(isequalRel(rets.shift(), 2.737212459312e+00, TOL));249 ok(isequalRel(rets.shift(), 2.467036669796e+00, TOL));250 rets = newtonnu(6.866954129400e-01, 3.238085269989e+00);251 ok(isequalRel(rets.shift(), -2.918462081655e+00, TOL));252 ok(isequalRel(rets.shift(), 3.516677703844e+00, TOL));253 rets = newtonnu(6.866467632282e-01, 3.547474198617e+00);254 ok(isequalRel(rets.shift(), -2.250779727158e+00, TOL));255 ok(isequalRel(rets.shift(), 4.566330537490e+00, TOL));256 rets = newtonnu(6.865576422170e-01, 4.143072416289e+00);257 ok(isequalRel(rets.shift(), -1.334438323568e+00, TOL));258 ok(isequalRel(rets.shift(), 5.616216430647e+00, TOL));259 rets = newtonnu(6.866127327248e-01, 1.728437343991e+00);260 ok(isequalRel(rets.shift(), 9.352598690906e-01, TOL));261 ok(isequalRel(rets.shift(), 3.827059612942e-01, TOL));262 rets = newtonnu(6.865870212103e-01, 2.626132585540e+00);263 ok(isequalRel(rets.shift(), 2.043963913744e+00, TOL));264 ok(isequalRel(rets.shift(), 1.432812715882e+00, TOL));265 rets = newtonnu(6.866479054501e-01, 2.969565037590e+00);266 ok(isequalRel(rets.shift(), 2.746706788210e+00, TOL));267 ok(isequalRel(rets.shift(), 2.482551388602e+00, TOL));268 rets = newtonnu(6.866577546707e-01, 3.242144019262e+00);269 ok(isequalRel(rets.shift(), -2.909160234363e+00, TOL));270 ok(isequalRel(rets.shift(), 3.532193398632e+00, TOL));271 rets = newtonnu(6.866090696296e-01, 3.553039212915e+00);272 ok(isequalRel(rets.shift(), -2.239898258322e+00, TOL));273 ok(isequalRel(rets.shift(), 4.581848810139e+00, TOL));274 rets = newtonnu(6.865219861167e-01, 4.159436417334e+00);275 ok(isequalRel(rets.shift(), -1.315756242332e+00, TOL));276 ok(isequalRel(rets.shift(), 5.631744250455e+00, TOL));277 rets = newtonnu(6.865718043358e-01, 1.759697486449e+00);278 ok(isequalRel(rets.shift(), 9.611028295108e-01, TOL));279 ok(isequalRel(rets.shift(), 3.982350854065e-01, TOL));280 rets = newtonnu(6.865543454928e-01, 2.632603055222e+00);281 ok(isequalRel(rets.shift(), 2.055734571975e+00, TOL));282 ok(isequalRel(rets.shift(), 1.448337376153e+00, TOL));283 rets = newtonnu(6.866155039773e-01, 2.973772889409e+00);284 ok(isequalRel(rets.shift(), 2.756193543430e+00, TOL));285 ok(isequalRel(rets.shift(), 2.498074862607e+00, TOL));286 rets = newtonnu(6.866254503966e-01, 3.246211532620e+00);287 ok(isequalRel(rets.shift(), -2.899845383805e+00, TOL));288 ok(isequalRel(rets.shift(), 3.547717680073e+00, TOL));289 rets = newtonnu(6.865767504906e-01, 3.558648318838e+00);290 ok(isequalRel(rets.shift(), -2.228968584018e+00, TOL));291 ok(isequalRel(rets.shift(), 4.597375507549e+00, TOL));292 rets = newtonnu(6.864919004431e-01, 4.176296398714e+00);293 ok(isequalRel(rets.shift(), -1.296786064341e+00, TOL));294 ok(isequalRel(rets.shift(), 5.647280523859e+00, TOL));295 rets = newtonnu(6.865366485917e-01, 1.789541978850e+00);296 ok(isequalRel(rets.shift(), 9.863603307447e-01, TOL));297 ok(isequalRel(rets.shift(), 4.137727036757e-01, TOL));298 // 9880299 rets = newtonnu(7.074789674872e-01, 2.613353781448e+00);300 ok(isequalRel(rets.shift(), 1.984097373815e+00, TOL));301 ok(isequalRel(rets.shift(), 1.336188135260e+00, TOL));302 rets = newtonnu(7.075425806213e-01, 2.953696643023e+00);303 ok(isequalRel(rets.shift(), 2.693867477717e+00, TOL));304 ok(isequalRel(rets.shift(), 2.387560937341e+00, TOL));305 rets = newtonnu(7.075501192075e-01, 3.213941865671e+00);306 ok(isequalRel(rets.shift(), -2.967138666750e+00, TOL));307 ok(isequalRel(rets.shift(), 3.438856424540e+00, TOL));308 rets = newtonnu(7.075018577910e-01, 3.501203792419e+00);309 ok(isequalRel(rets.shift(), -2.313960934883e+00, TOL));310 ok(isequalRel(rets.shift(), 4.490179928072e+00, TOL));311 rets = newtonnu(7.074137034860e-01, 4.021124830156e+00);312 ok(isequalRel(rets.shift(), -1.443127233313e+00, TOL));313 ok(isequalRel(rets.shift(), 5.541714395334e+00, TOL));314 rets = newtonnu(7.074880079976e-01, 1.638267445445e+00);315 ok(isequalRel(rets.shift(), 8.337176182159e-01, TOL));316 ok(isequalRel(rets.shift(), 3.098685960655e-01, TOL));317 rets = newtonnu(7.074533218510e-01, 2.624123778438e+00);318 ok(isequalRel(rets.shift(), 2.003809886512e+00, TOL));319 ok(isequalRel(rets.shift(), 1.361650714943e+00, TOL));320 rets = newtonnu(7.075145068396e-01, 2.960372493246e+00);321 ok(isequalRel(rets.shift(), 2.709385359246e+00, TOL));322 ok(isequalRel(rets.shift(), 2.413024413463e+00, TOL));323 rets = newtonnu(7.075196023956e-01, 3.220205927721e+00);324 ok(isequalRel(rets.shift(), -2.952117584532e+00, TOL));325 ok(isequalRel(rets.shift(), 3.464324359213e+00, TOL));326 rets = newtonnu(7.074689009380e-01, 3.509519813311e+00);327 ok(isequalRel(rets.shift(), -2.296663494009e+00, TOL));328 ok(isequalRel(rets.shift(), 4.515654848025e+00, TOL));329 rets = newtonnu(7.073807397407e-01, 4.043449649444e+00);330 ok(isequalRel(rets.shift(), -1.414767295713e+00, TOL));331 ok(isequalRel(rets.shift(), 5.567205593100e+00, TOL));332 rets = newtonnu(7.074407245305e-01, 1.700573304283e+00);333 ok(isequalRel(rets.shift(), 8.811291040794e-01, TOL));334 ok(isequalRel(rets.shift(), 3.353684409392e-01, TOL));335 rets = newtonnu(7.074213601086e-01, 2.634691028511e+00);336 ok(isequalRel(rets.shift(), 2.023350663209e+00, TOL));337 ok(isequalRel(rets.shift(), 1.387143205884e+00, TOL));338 rets = newtonnu(7.074803209950e-01, 2.967017186326e+00);339 ok(isequalRel(rets.shift(), 2.724877433271e+00, TOL));340 ok(isequalRel(rets.shift(), 2.438518432461e+00, TOL));341 rets = newtonnu(7.074831964281e-01, 3.226494742039e+00);342 ok(isequalRel(rets.shift(), -2.937059155838e+00, TOL));343 ok(isequalRel(rets.shift(), 3.489823348923e+00, TOL));344 rets = newtonnu(7.074302810557e-01, 3.517957445017e+00);345 ok(isequalRel(rets.shift(), -2.279232554485e+00, TOL));346 ok(isequalRel(rets.shift(), 4.541161349068e+00, TOL));347 rets = newtonnu(7.073426782139e-01, 4.066845514948e+00);348 ok(isequalRel(rets.shift(), -1.385718614044e+00, TOL));349 ok(isequalRel(rets.shift(), 5.592729339613e+00, TOL));350 rets = newtonnu(7.073898343357e-01, 1.757450772531e+00);351 ok(isequalRel(rets.shift(), 9.264595436735e-01, TOL));352 ok(isequalRel(rets.shift(), 3.609025622811e-01, TOL));353 rets = newtonnu(7.073844594661e-01, 2.645067878270e+00);354 ok(isequalRel(rets.shift(), 2.042729306308e+00, TOL));355 ok(isequalRel(rets.shift(), 1.412668190983e+00, TOL));356 rets = newtonnu(7.074414286305e-01, 2.973633805192e+00);357 ok(isequalRel(rets.shift(), 2.740347340465e+00, TOL));358 ok(isequalRel(rets.shift(), 2.464045443944e+00, TOL));359 rets = newtonnu(7.074423311942e-01, 3.232810138934e+00);360 ok(isequalRel(rets.shift(), -2.921960498350e+00, TOL));361 ok(isequalRel(rets.shift(), 3.515355714905e+00, TOL));362 rets = newtonnu(7.073874505795e-01, 3.526521093421e+00);363 ok(isequalRel(rets.shift(), -2.261662989335e+00, TOL));364 ok(isequalRel(rets.shift(), 4.566701625887e+00, TOL));365 rets = newtonnu(7.073010396884e-01, 4.091409233514e+00);366 ok(isequalRel(rets.shift(), -1.355934909694e+00, TOL));367 ok(isequalRel(rets.shift(), 5.618287722502e+00, TOL));368 rets = newtonnu(7.073368998088e-01, 1.809626469631e+00);369 ok(isequalRel(rets.shift(), 9.699069515904e-01, TOL));370 ok(isequalRel(rets.shift(), 3.864720570250e-01, TOL));371 // 9998372 rets = newtonnu(2.716148207783e-02, 5.781740115703e+00);373 ok(isequalRel(rets.shift(), -4.885403307166e-01, TOL));374 ok(isequalRel(rets.shift(), 5.807392877827e+00, TOL));375 rets = newtonnu(2.716659459679e-02, 6.101465692941e+00);376 ok(isequalRel(rets.shift(), -1.768738888294e-01, TOL));377 ok(isequalRel(rets.shift(), 6.111091464856e+00, TOL));378 rets = newtonnu(2.716755405657e-02, 1.389307149831e-01);379 ok(isequalRel(rets.shift(), 1.352177074359e-01, TOL));380 ok(isequalRel(rets.shift(), 1.315553572091e-01, TOL));381 rets = newtonnu(2.716378367535e-02, 4.588417955321e-01);382 ok(isequalRel(rets.shift(), 4.469533982133e-01, TOL));383 ok(isequalRel(rets.shift(), 4.352126617664e-01, TOL));384 rets = newtonnu(2.715556395731e-02, 7.764561441336e-01);385 ok(isequalRel(rets.shift(), 7.576064037511e-01, TOL));386 ok(isequalRel(rets.shift(), 7.389455208803e-01, TOL));387 rets = newtonnu(2.714407348493e-02, 1.090500167808e+00);388 ok(isequalRel(rets.shift(), 1.066574003483e+00, TOL));389 ok(isequalRel(rets.shift(), 1.042807997579e+00, TOL));390 rets = newtonnu(2.713093521576e-02, 1.400107160725e+00);391 ok(isequalRel(rets.shift(), 1.373428643431e+00, TOL));392 ok(isequalRel(rets.shift(), 1.346824424330e+00, TOL));393 rets = newtonnu(2.711763450764e-02, 1.704879207196e+00);394 ok(isequalRel(rets.shift(), 1.677952837997e+00, TOL));395 ok(isequalRel(rets.shift(), 1.650990743932e+00, TOL));396 rets = newtonnu(2.710521487919e-02, 2.004889883980e+00);397 ok(isequalRel(rets.shift(), 1.980154348505e+00, TOL));398 ok(isequalRel(rets.shift(), 1.955288660470e+00, TOL));399 rets = newtonnu(2.709435717698e-02, 2.300636343814e+00);400 ok(isequalRel(rets.shift(), 2.280256305522e+00, TOL));401 ok(isequalRel(rets.shift(), 2.259699443657e+00, TOL));402 rets = newtonnu(2.708564805003e-02, 2.592956156753e+00);403 ok(isequalRel(rets.shift(), 2.578662787795e+00, TOL));404 ok(isequalRel(rets.shift(), 2.564208091348e+00, TOL));405 rets = newtonnu(2.707976836312e-02, 2.882928008781e+00);406 ok(isequalRel(rets.shift(), 2.875908133917e+00, TOL));407 ok(isequalRel(rets.shift(), 2.868797803699e+00, TOL));408 rets = newtonnu(2.707745330068e-02, 3.171773308210e+00);409 ok(isequalRel(rets.shift(), -3.110583544821e+00, TOL));410 ok(isequalRel(rets.shift(), 3.173441275497e+00, TOL));411 // 11801412 rets = newtonnu(7.316022415966e-01, 3.288549055618e+00);413 ok(isequalRel(rets.shift(), -2.771917696774e+00, TOL));414 ok(isequalRel(rets.shift(), 3.775604547447e+00, TOL));415 rets = newtonnu(7.309987995342e-01, 2.539391847291e+00);416 ok(isequalRel(rets.shift(), 1.807131007853e+00, TOL));417 ok(isequalRel(rets.shift(), 1.096451998254e+00, TOL));418 rets = newtonnu(7.305135354946e-01, 3.550285442989e+00);419 ok(isequalRel(rets.shift(), -2.174449759259e+00, TOL));420 ok(isequalRel(rets.shift(), 4.710143401486e+00, TOL));421 rets = newtonnu(7.298769657158e-01, 2.876960270493e+00);422 ok(isequalRel(rets.shift(), 2.491840505066e+00, TOL));423 ok(isequalRel(rets.shift(), 2.050272913542e+00, TOL));424 // 14128425 rets = newtonnu(1.211244188429e-03, 2.423482789142e-02);426 ok(isequalRel(rets.shift(), 2.420549421947e-02, TOL));427 ok(isequalRel(rets.shift(), 2.417617831819e-02, TOL));428 rets = newtonnu(1.204966652741e-03, 5.289647058498e-01);429 ok(isequalRel(rets.shift(), 5.283569476242e-01, TOL));430 ok(isequalRel(rets.shift(), 5.277495058332e-01, TOL));431 rets = newtonnu(1.192304030227e-03, 1.037694577457e+00);432 ok(isequalRel(rets.shift(), 1.036668034368e+00, TOL));433 ok(isequalRel(rets.shift(), 1.035641803106e+00, TOL));434 rets = newtonnu(1.175943608200e-03, 1.551150302261e+00);435 ok(isequalRel(rets.shift(), 1.549974598892e+00, TOL));436 ok(isequalRel(rets.shift(), 1.548798910187e+00, TOL));437 rets = newtonnu(1.158121853711e-03, 2.070994646747e+00);438 ok(isequalRel(rets.shift(), 2.069978126779e+00, TOL));439 ok(isequalRel(rets.shift(), 2.068961325284e+00, TOL));440 rets = newtonnu(1.143952893278e-03, 2.598631981531e+00);441 ok(isequalRel(rets.shift(), 2.598040642045e+00, TOL));442 ok(isequalRel(rets.shift(), 2.597449013251e+00, TOL));443 rets = newtonnu(1.139311322585e-03, 3.131180299349e+00);444 ok(isequalRel(rets.shift(), 3.131168429885e+00, TOL));445 ok(isequalRel(rets.shift(), 3.131156553664e+00, TOL));446 rets = newtonnu(1.145149449569e-03, 3.662685446796e+00);447 ok(isequalRel(rets.shift(), -2.619929489302e+00, TOL));448 ok(isequalRel(rets.shift(), 3.663826471930e+00, TOL));449 rets = newtonnu(1.157830776929e-03, 4.189544099786e+00);450 ok(isequalRel(rets.shift(), -2.092637770046e+00, TOL));451 ok(isequalRel(rets.shift(), 4.191551263798e+00, TOL));452 rets = newtonnu(1.174172010601e-03, 4.711085143769e+00);453 ok(isequalRel(rets.shift(), -1.570925991230e+00, TOL));454 ok(isequalRel(rets.shift(), 4.713433487951e+00, TOL));455 rets = newtonnu(1.191780771710e-03, 5.226262443973e+00);456 ok(isequalRel(rets.shift(), -1.055885308100e+00, TOL));457 ok(isequalRel(rets.shift(), 5.228337249439e+00, TOL));458 rets = newtonnu(1.205845104887e-03, 5.734321009877e+00);459 ok(isequalRel(rets.shift(), -5.482355086072e-01, TOL));460 ok(isequalRel(rets.shift(), 5.735578263509e+00, TOL));461 rets = newtonnu(1.210865633436e-03, 6.237991092039e+00);462 ok(isequalRel(rets.shift(), -4.513954269262e-02, TOL));463 ok(isequalRel(rets.shift(), 6.238100403848e+00, TOL));464 rets = newtonnu(1.205766439863e-03, 4.591253600639e-01);465 ok(isequalRel(rets.shift(), 4.585912959803e-01, TOL));466 ok(isequalRel(rets.shift(), 4.580575207886e-01, TOL));467 rets = newtonnu(1.193775211743e-03, 9.672534794013e-01);468 ok(isequalRel(rets.shift(), 9.662709410443e-01, TOL));469 ok(isequalRel(rets.shift(), 9.652887362883e-01, TOL));470 rets = newtonnu(1.177820064704e-03, 1.480000229664e+00);471 ok(isequalRel(rets.shift(), 1.478827323557e+00, TOL));472 ok(isequalRel(rets.shift(), 1.477654481158e+00, TOL));473 rets = newtonnu(1.159970274751e-03, 1.998835589395e+00);474 ok(isequalRel(rets.shift(), 1.997780015661e+00, TOL));475 ok(isequalRel(rets.shift(), 1.996724188649e+00, TOL));476 rets = newtonnu(1.144897789529e-03, 2.525463771786e+00);477 ok(isequalRel(rets.shift(), 2.524801848593e+00, TOL));478 ok(isequalRel(rets.shift(), 2.524139616495e+00, TOL));479 rets = newtonnu(1.138736282854e-03, 3.057695076183e+00);480 ok(isequalRel(rets.shift(), 3.057599596803e+00, TOL));481 ok(isequalRel(rets.shift(), 3.057504063283e+00, TOL));482 rets = newtonnu(1.143295172548e-03, 3.589668189295e+00);483 ok(isequalRel(rets.shift(), -2.693021550525e+00, TOL));484 ok(isequalRel(rets.shift(), 3.590659579127e+00, TOL));485 rets = newtonnu(1.155268452626e-03, 4.117250443365e+00);486 ok(isequalRel(rets.shift(), -2.164977909555e+00, TOL));487 ok(isequalRel(rets.shift(), 4.119164661096e+00, TOL));488 rets = newtonnu(1.171225937288e-03, 4.639569211560e+00);489 ok(isequalRel(rets.shift(), -1.642447923612e+00, TOL));490 ok(isequalRel(rets.shift(), 4.641905604283e+00, TOL));491 rets = newtonnu(1.188876403708e-03, 5.155722578143e+00);492 ok(isequalRel(rets.shift(), -1.126389058700e+00, TOL));493 ok(isequalRel(rets.shift(), 5.157869644151e+00, TOL));494 rets = newtonnu(1.203799374030e-03, 5.664696981605e+00);495 ok(isequalRel(rets.shift(), -6.177906995606e-01, TOL));496 ok(isequalRel(rets.shift(), 5.666091891122e+00, TOL));497 // 16925498 rets = newtonnu(5.588503598295e-01, 3.228842773114e+00);499 ok(isequalRel(rets.shift(), -2.977843536462e+00, TOL));500 ok(isequalRel(rets.shift(), 3.396444611351e+00, TOL));501 rets = newtonnu(5.585233356674e-01, 5.118810788625e+00);502 ok(isequalRel(rets.shift(), -6.739995370803e-01, TOL));503 ok(isequalRel(rets.shift(), 5.957769084386e+00, TOL));504 rets = newtonnu(5.580621374190e-01, 2.819537459986e+00);505 ok(isequalRel(rets.shift(), 2.549531730254e+00, TOL));506 ok(isequalRel(rets.shift(), 2.238092684462e+00, TOL));507 rets = newtonnu(5.578477826700e-01, 3.807540447635e+00);508 ok(isequalRel(rets.shift(), -1.989994285351e+00, TOL));509 ok(isequalRel(rets.shift(), 4.802737937689e+00, TOL));510 rets = newtonnu(5.573540142195e-01, 2.221250150424e+00);511 ok(isequalRel(rets.shift(), 1.643606196665e+00, TOL));512 ok(isequalRel(rets.shift(), 1.087728873960e+00, TOL));513 rets = newtonnu(5.573812749174e-01, 3.320785430055e+00);514 ok(isequalRel(rets.shift(), -2.807700525931e+00, TOL));515 ok(isequalRel(rets.shift(), 3.658151267708e+00, TOL));516 rets = newtonnu(5.567523549887e-01, 6.060784968882e+00);517 ok(isequalRel(rets.shift(), -1.190230401788e-01, TOL));518 ok(isequalRel(rets.shift(), 6.230272275488e+00, TOL));519 rets = newtonnu(5.566328651392e-01, 2.925115255302e+00);520 ok(isequalRel(rets.shift(), 2.739868148757e+00, TOL));521 ok(isequalRel(rets.shift(), 2.522221282650e+00, TOL));522 rets = newtonnu(5.562657187843e-01, 3.992590610128e+00);523 ok(isequalRel(rets.shift(), -1.734112192280e+00, TOL));524 ok(isequalRel(rets.shift(), 5.097936928032e+00, TOL));525 rets = newtonnu(5.558490397474e-01, 2.423750578165e+00);526 ok(isequalRel(rets.shift(), 1.917217901990e+00, TOL));527 ok(isequalRel(rets.shift(), 1.394389780453e+00, TOL));528 rets = newtonnu(5.558964845678e-01, 3.438269293796e+00);529 ok(isequalRel(rets.shift(), -2.596118489327e+00, TOL));530 ok(isequalRel(rets.shift(), 3.975478979288e+00, TOL));531 rets = newtonnu(5.553207140524e-01, 1.018738373234e+00);532 ok(isequalRel(rets.shift(), 5.804332042561e-01, TOL));533 ok(isequalRel(rets.shift(), 2.759029633628e-01, TOL));534 // 20413535 rets = newtonnu(7.787670244171e-01, 2.756537247626e+00);536 ok(isequalRel(rets.shift(), 2.131665152184e+00, TOL));537 ok(isequalRel(rets.shift(), 1.472210466701e+00, TOL));538 rets = newtonnu(7.787318278023e-01, 2.795498343882e+00);539 ok(isequalRel(rets.shift(), 2.221359885948e+00, TOL));540 ok(isequalRel(rets.shift(), 1.601689785835e+00, TOL));541 rets = newtonnu(7.786982908955e-01, 2.831678475947e+00);542 ok(isequalRel(rets.shift(), 2.307792741023e+00, TOL));543 ok(isequalRel(rets.shift(), 1.731174049415e+00, TOL));544 rets = newtonnu(7.786664754119e-01, 2.865606725861e+00);545 ok(isequalRel(rets.shift(), 2.391490433266e+00, TOL));546 ok(isequalRel(rets.shift(), 1.860662946097e+00, TOL));547 rets = newtonnu(7.786360598891e-01, 2.897697282650e+00);548 ok(isequalRel(rets.shift(), 2.472887575894e+00, TOL));549 ok(isequalRel(rets.shift(), 1.990156205250e+00, TOL));550 rets = newtonnu(7.786078600369e-01, 2.928282952468e+00);551 ok(isequalRel(rets.shift(), 2.552350213864e+00, TOL));552 ok(isequalRel(rets.shift(), 2.119653396692e+00, TOL));553 rets = newtonnu(7.785815482761e-01, 2.957635499184e+00);554 ok(isequalRel(rets.shift(), 2.630191644530e+00, TOL));555 ok(isequalRel(rets.shift(), 2.249154231614e+00, TOL));556 rets = newtonnu(7.785571740818e-01, 2.985982433197e+00);557 ok(isequalRel(rets.shift(), 2.706685147711e+00, TOL));558 ok(isequalRel(rets.shift(), 2.378658363389e+00, TOL));559 rets = newtonnu(7.785347838381e-01, 3.013517951608e+00);560 ok(isequalRel(rets.shift(), 2.782073090457e+00, TOL));561 ok(isequalRel(rets.shift(), 2.508165437906e+00, TOL));562 rets = newtonnu(7.785144207609e-01, 3.040411304260e+00);563 ok(isequalRel(rets.shift(), 2.856574092018e+00, TOL));564 ok(isequalRel(rets.shift(), 2.637675094174e+00, TOL));565 rets = newtonnu(7.784961248099e-01, 3.066813191577e+00);566 ok(isequalRel(rets.shift(), 2.930388730377e+00, TOL));567 ok(isequalRel(rets.shift(), 2.767186964960e+00, TOL));568 rets = newtonnu(7.784799325977e-01, 3.092860814165e+00);569 ok(isequalRel(rets.shift(), 3.003704221097e+00, TOL));570 ok(isequalRel(rets.shift(), 2.896700677442e+00, TOL));571 rets = newtonnu(7.784658772980e-01, 3.118682005899e+00);572 ok(isequalRel(rets.shift(), 3.076698380864e+00, TOL));573 ok(isequalRel(rets.shift(), 3.026215853894e+00, TOL));574 rets = newtonnu(7.784539885554e-01, 3.144398764351e+00);575 ok(isequalRel(rets.shift(), -3.133642195446e+00, TOL));576 ok(isequalRel(rets.shift(), 3.155732112386e+00, TOL));577 rets = newtonnu(7.784442923988e-01, 3.170130419862e+00);578 ok(isequalRel(rets.shift(), -3.060777713141e+00, TOL));579 ok(isequalRel(rets.shift(), 3.285249067500e+00, TOL));580 rets = newtonnu(7.784368111594e-01, 3.195996643139e+00);581 ok(isequalRel(rets.shift(), -2.987723959261e+00, TOL));582 ok(isequalRel(rets.shift(), 3.414766331066e+00, TOL));583 rets = newtonnu(7.784315633925e-01, 3.222120473262e+00);584 ok(isequalRel(rets.shift(), -2.914307995972e+00, TOL));585 ok(isequalRel(rets.shift(), 3.544283512910e+00, TOL));586 rets = newtonnu(7.784285638045e-01, 3.248631550250e+00);587 ok(isequalRel(rets.shift(), -2.840350224300e+00, TOL));588 ok(isequalRel(rets.shift(), 3.673800221610e+00, TOL));589 rets = newtonnu(7.784278231833e-01, 3.275669759147e+00);590 ok(isequalRel(rets.shift(), -2.765660810361e+00, TOL));591 ok(isequalRel(rets.shift(), 3.803316065264e+00, TOL));592 rets = newtonnu(7.784293483318e-01, 3.303389540241e+00);593 ok(isequalRel(rets.shift(), -2.690035584593e+00, TOL));594 ok(isequalRel(rets.shift(), 3.932830652264e+00, TOL));595 rets = newtonnu(7.784331420011e-01, 3.331965201172e+00);596 ok(isequalRel(rets.shift(), -2.613251163757e+00, TOL));597 ok(isequalRel(rets.shift(), 4.062343592070e+00, TOL));598 rets = newtonnu(7.784392028199e-01, 3.361597697789e+00);599 ok(isequalRel(rets.shift(), -2.535058961257e+00, TOL));600 ok(isequalRel(rets.shift(), 4.191854495991e+00, TOL));601 rets = newtonnu(7.784475252140e-01, 3.392523559727e+00);602 ok(isequalRel(rets.shift(), -2.455177620809e+00, TOL));603 ok(isequalRel(rets.shift(), 4.321362977954e+00, TOL));604 rets = newtonnu(7.784580993053e-01, 3.425026973822e+00);605 ok(isequalRel(rets.shift(), -2.373283205275e+00, TOL));606 ok(isequalRel(rets.shift(), 4.450868655273e+00, TOL));607 rets = newtonnu(7.784709107731e-01, 3.459456592715e+00);608 ok(isequalRel(rets.shift(), -2.288996151076e+00, TOL));609 ok(isequalRel(rets.shift(), 4.580371149403e+00, TOL));610 // 21897611 rets = newtonnu(7.418713178843e-01, 2.687451322260e+00);612 ok(isequalRel(rets.shift(), 2.060438630814e+00, TOL));613 ok(isequalRel(rets.shift(), 1.405736344711e+00, TOL));614 rets = newtonnu(7.419337660802e-01, 2.987505710749e+00);615 ok(isequalRel(rets.shift(), 2.745722754815e+00, TOL));616 ok(isequalRel(rets.shift(), 2.459624965475e+00, TOL));617 rets = newtonnu(7.419644108308e-01, 3.224276172793e+00);618 ok(isequalRel(rets.shift(), -2.927460249785e+00, TOL));619 ok(isequalRel(rets.shift(), 3.513392292221e+00, TOL));620 rets = newtonnu(7.419481115307e-01, 3.492015957339e+00);621 ok(isequalRel(rets.shift(), -2.279410450834e+00, TOL));622 ok(isequalRel(rets.shift(), 4.567109724343e+00, TOL));623 rets = newtonnu(7.418581430988e-01, 4.004886348835e+00);624 ok(isequalRel(rets.shift(), -1.392342932897e+00, TOL));625 ok(isequalRel(rets.shift(), 5.620919368097e+00, TOL));626 rets = newtonnu(7.418951234893e-01, 1.942770864677e+00);627 ok(isequalRel(rets.shift(), 1.026099336304e+00, TOL));628 ok(isequalRel(rets.shift(), 3.915680573883e-01, TOL));629 rets = newtonnu(7.418764474845e-01, 2.701998565017e+00);630 ok(isequalRel(rets.shift(), 2.089900680155e+00, TOL));631 ok(isequalRel(rets.shift(), 1.445756171797e+00, TOL));632 rets = newtonnu(7.419379802954e-01, 2.996922400116e+00);633 ok(isequalRel(rets.shift(), 2.769425329935e+00, TOL));634 ok(isequalRel(rets.shift(), 2.499630537234e+00, TOL));635 rets = newtonnu(7.419670075317e-01, 3.233306439119e+00);636 ok(isequalRel(rets.shift(), -2.904249834460e+00, TOL));637 ok(isequalRel(rets.shift(), 3.553387326560e+00, TOL));638 rets = newtonnu(7.419483855201e-01, 3.504335932164e+00);639 ok(isequalRel(rets.shift(), -2.252303581800e+00, TOL));640 ok(isequalRel(rets.shift(), 4.607096710975e+00, TOL));641 rets = newtonnu(7.418560262900e-01, 4.041909597073e+00);642 ok(isequalRel(rets.shift(), -1.345356100353e+00, TOL));643 ok(isequalRel(rets.shift(), 5.660913156366e+00, TOL));644 rets = newtonnu(7.418842753170e-01, 2.009102882130e+00);645 ok(isequalRel(rets.shift(), 1.088994490396e+00, TOL));646 ok(isequalRel(rets.shift(), 4.315652579809e-01, TOL));647 rets = newtonnu(7.418809620621e-01, 2.716133347635e+00);648 ok(isequalRel(rets.shift(), 2.118925849628e+00, TOL));649 ok(isequalRel(rets.shift(), 1.485729925734e+00, TOL));650 rets = newtonnu(7.419415750629e-01, 3.006257125092e+00);651 ok(isequalRel(rets.shift(), 2.793011280787e+00, TOL));652 ok(isequalRel(rets.shift(), 2.539590123051e+00, TOL));653 rets = newtonnu(7.419690216489e-01, 3.242368909528e+00);654 ok(isequalRel(rets.shift(), -2.881011487452e+00, TOL));655 ok(isequalRel(rets.shift(), 3.593336307449e+00, TOL));656 rets = newtonnu(7.419480886518e-01, 3.516908405580e+00);657 ok(isequalRel(rets.shift(), -2.224936476777e+00, TOL));658 ok(isequalRel(rets.shift(), 4.647037629019e+00, TOL));659 rets = newtonnu(7.418539473630e-01, 4.082099274567e+00);660 ok(isequalRel(rets.shift(), -1.296428685507e+00, TOL));661 ok(isequalRel(rets.shift(), 5.700862798318e+00, TOL));662 rets = newtonnu(7.418755898522e-01, 2.067738535875e+00);663 ok(isequalRel(rets.shift(), 1.148095891832e+00, TOL));664 ok(isequalRel(rets.shift(), 4.715168664700e-01, TOL));665 rets = newtonnu(7.418851730991e-01, 2.729884161534e+00);666 ok(isequalRel(rets.shift(), 2.147537543031e+00, TOL));667 ok(isequalRel(rets.shift(), 1.525656676188e+00, TOL));668 rets = newtonnu(7.419448675302e-01, 3.015515314817e+00);669 ok(isequalRel(rets.shift(), 2.816486755941e+00, TOL));670 ok(isequalRel(rets.shift(), 2.579502785323e+00, TOL));671 rets = newtonnu(7.419707694028e-01, 3.251467701041e+00);672 ok(isequalRel(rets.shift(), -2.857740303804e+00, TOL));673 ok(isequalRel(rets.shift(), 3.633238302750e+00, TOL));674 rets = newtonnu(7.419475344599e-01, 3.529749790986e+00);675 ok(isequalRel(rets.shift(), -2.197294697318e+00, TOL));676 ok(isequalRel(rets.shift(), 4.686931561882e+00, TOL));677 rets = newtonnu(7.418524611590e-01, 4.125998165449e+00);678 ok(isequalRel(rets.shift(), -1.245322222785e+00, TOL));679 ok(isequalRel(rets.shift(), 5.740767723337e+00, TOL));680 rets = newtonnu(7.418690431082e-01, 2.120113766971e+00);681 ok(isequalRel(rets.shift(), 1.203920733653e+00, TOL));682 ok(isequalRel(rets.shift(), 5.114211265811e-01, TOL));683 // 22312684 rets = newtonnu(2.675181425237e-02, 5.290184034854e+00);685 ok(isequalRel(rets.shift(), -9.707515982488e-01, TOL));686 ok(isequalRel(rets.shift(), 5.334512258340e+00, TOL));687 rets = newtonnu(2.439822350749e-02, 5.029815553106e-01);688 ok(isequalRel(rets.shift(), 4.913434281590e-01, TOL));689 ok(isequalRel(rets.shift(), 4.798320824675e-01, TOL));690 rets = newtonnu(2.336377341457e-02, 1.883160080065e+00);691 ok(isequalRel(rets.shift(), 1.860844649395e+00, TOL));692 ok(isequalRel(rets.shift(), 1.838456779477e+00, TOL));693 rets = newtonnu(2.364469118874e-02, 3.250644890537e+00);694 ok(isequalRel(rets.shift(), -3.029936048462e+00, TOL));695 ok(isequalRel(rets.shift(), 3.255883862338e+00, TOL));696 rets = newtonnu(2.100327812399e-02, 4.665716463652e+00);697 ok(isequalRel(rets.shift(), -1.596476606959e+00, TOL));698 ok(isequalRel(rets.shift(), 4.707705053138e+00, TOL));699 rets = newtonnu(1.874584407606e-02, 6.058390627524e+00);700 ok(isequalRel(rets.shift(), -2.206535941986e-01, TOL));701 ok(isequalRel(rets.shift(), 6.066634567460e+00, TOL));702 rets = newtonnu(1.892815082464e-02, 1.235065384670e+00);703 ok(isequalRel(rets.shift(), 1.217248427872e+00, TOL));704 ok(isequalRel(rets.shift(), 1.199490978700e+00, TOL));705 rets = newtonnu(1.773690758731e-02, 2.692951932245e+00);706 ok(isequalRel(rets.shift(), 2.685196158742e+00, TOL));707 ok(isequalRel(rets.shift(), 2.677379214425e+00, TOL));708 rets = newtonnu(1.568324749544e-02, 4.013896696360e+00);709 ok(isequalRel(rets.shift(), -2.257216711005e+00, TOL));710 ok(isequalRel(rets.shift(), 4.038099895934e+00, TOL));711 rets = newtonnu(1.481759681755e-02, 5.439861002541e+00);712 ok(isequalRel(rets.shift(), -8.323114308968e-01, TOL));713 ok(isequalRel(rets.shift(), 5.461831330983e+00, TOL));714 rets = newtonnu(1.305180624613e-02, 6.963097470980e-01);715 ok(isequalRel(rets.shift(), 6.879798375972e-01, TOL));716 ok(isequalRel(rets.shift(), 6.796922298301e-01, TOL));717 rets = newtonnu(1.155741395162e-02, 2.069636245312e+00);718 ok(isequalRel(rets.shift(), 2.059458850841e+00, TOL));719 ok(isequalRel(rets.shift(), 2.049254099050e+00, TOL));720 rets = newtonnu(1.165528802335e-02, 3.434663530073e+00);721 ok(isequalRel(rets.shift(), -2.845135636307e+00, TOL));722 ok(isequalRel(rets.shift(), 3.441454572335e+00, TOL));723 rets = newtonnu(9.673995701750e-03, 4.977688537268e+00);724 ok(isequalRel(rets.shift(), -1.296172903117e+00, TOL));725 ok(isequalRel(rets.shift(), 4.996323889873e+00, TOL));726 rets = newtonnu(6.812314294138e-03, 1.066893958335e-01);727 ok(isequalRel(rets.shift(), 1.059664124081e-01, TOL));728 ok(isequalRel(rets.shift(), 1.052458861213e-01, TOL));729 rets = newtonnu(6.901471261849e-03, 1.432509797150e+00);730 ok(isequalRel(rets.shift(), 1.425677404982e+00, TOL));731 ok(isequalRel(rets.shift(), 1.418848477048e+00, TOL));732 rets = newtonnu(6.637568551695e-03, 3.027959831728e+00);733 ok(isequalRel(rets.shift(), 3.027204710020e+00, TOL));734 ok(isequalRel(rets.shift(), 3.026447106884e+00, TOL));735 rets = newtonnu(3.791297143854e-03, 4.522842999589e+00);736 ok(isequalRel(rets.shift(), -1.756617573611e+00, TOL));737 ok(isequalRel(rets.shift(), 4.530293762977e+00, TOL));738 rets = newtonnu(2.272010245208e-03, 5.577829006748e+00);739 ok(isequalRel(rets.shift(), -7.038846157609e-01, TOL));740 ok(isequalRel(rets.shift(), 5.580771099954e+00, TOL));741 rets = newtonnu(1.961854943427e-03, 1.081212776615e+00);742 ok(isequalRel(rets.shift(), 1.079482180249e+00, TOL));743 ok(isequalRel(rets.shift(), 1.077752386014e+00, TOL));744 rets = newtonnu(7.438880868106e-04, 3.524034448127e+00);745 ok(isequalRel(rets.shift(), -2.758873153847e+00, TOL));746 ok(isequalRel(rets.shift(), 3.524589954320e+00, TOL));747 rets = newtonnu(1.204363911379e-03, 1.206589309560e+00);748 ok(isequalRel(rets.shift(), 1.205464185119e+00, TOL));749 ok(isequalRel(rets.shift(), 1.204339303021e+00, TOL));750 // *** error: t:= 494.202867 *** code = 1751 // 22674752 rets = newtonnu(7.544172890840e-01, 2.685592796046e+00);753 ok(isequalRel(rets.shift(), 2.031335824792e+00, TOL));754 ok(isequalRel(rets.shift(), 1.355519116917e+00, TOL));755 rets = newtonnu(7.544731574519e-01, 2.975858362533e+00);756 ok(isequalRel(rets.shift(), 2.704630595709e+00, TOL));757 ok(isequalRel(rets.shift(), 2.385345914590e+00, TOL));758 rets = newtonnu(7.544983721924e-01, 3.200101244478e+00);759 ok(isequalRel(rets.shift(), -2.985454411948e+00, TOL));760 ok(isequalRel(rets.shift(), 3.415058858959e+00, TOL));761 rets = newtonnu(7.544806038316e-01, 3.444664010443e+00);762 ok(isequalRel(rets.shift(), -2.366457169440e+00, TOL));763 ok(isequalRel(rets.shift(), 4.444723368166e+00, TOL));764 rets = newtonnu(7.543954150750e-01, 3.862708265350e+00);765 ok(isequalRel(rets.shift(), -1.563122514175e+00, TOL));766 ok(isequalRel(rets.shift(), 5.474435995996e+00, TOL));767 rets = newtonnu(7.544818233776e-01, 1.571691104696e+00);768 ok(isequalRel(rets.shift(), 7.165195428979e-01, TOL));769 ok(isequalRel(rets.shift(), 2.210030004631e-01, TOL));770 rets = newtonnu(7.543704233005e-01, 2.645476966811e+00);771 ok(isequalRel(rets.shift(), 1.951513514987e+00, TOL));772 ok(isequalRel(rets.shift(), 1.251157238350e+00, TOL));773 rets = newtonnu(7.544273950354e-01, 2.951373432026e+00);774 ok(isequalRel(rets.shift(), 2.642263076950e+00, TOL));775 ok(isequalRel(rets.shift(), 2.281015266753e+00, TOL));776 rets = newtonnu(7.544556439375e-01, 3.177710326905e+00);777 ok(isequalRel(rets.shift(), -3.045112911187e+00, TOL));778 ok(isequalRel(rets.shift(), 3.310749209521e+00, TOL));779 rets = newtonnu(7.544423660167e-01, 3.416429814041e+00);780 ok(isequalRel(rets.shift(), -2.433458465877e+00, TOL));781 ok(isequalRel(rets.shift(), 4.340429491937e+00, TOL));782 rets = newtonnu(7.543649856597e-01, 3.798493751187e+00);783 ok(isequalRel(rets.shift(), -1.664128273727e+00, TOL));784 ok(isequalRel(rets.shift(), 5.370138822445e+00, TOL));785 rets = newtonnu(7.543973649324e-01, 1.065570636840e+00);786 ok(isequalRel(rets.shift(), 4.342955564040e-01, TOL));787 ok(isequalRel(rets.shift(), 1.168666772008e-01, TOL));788 rets = newtonnu(7.543205050293e-01, 2.601631683239e+00);789 ok(isequalRel(rets.shift(), 1.868099933621e+00, TOL));790 ok(isequalRel(rets.shift(), 1.146871579335e+00, TOL));791 rets = newtonnu(7.543782726170e-01, 2.926221972581e+00);792 ok(isequalRel(rets.shift(), 2.579082513888e+00, TOL));793 ok(isequalRel(rets.shift(), 2.176764093643e+00, TOL));794 rets = newtonnu(7.544097492072e-01, 3.155441928149e+00);795 ok(isequalRel(rets.shift(), -3.104580501402e+00, TOL));796 ok(isequalRel(rets.shift(), 3.206520759535e+00, TOL));797 rets = newtonnu(7.544010397628e-01, 3.389359534002e+00);798 ok(isequalRel(rets.shift(), -2.499036758909e+00, TOL));799 ok(isequalRel(rets.shift(), 4.236218513604e+00, TOL));800 rets = newtonnu(7.543315566779e-01, 3.742567954597e+00);801 ok(isequalRel(rets.shift(), -1.758357028408e+00, TOL));802 ok(isequalRel(rets.shift(), 5.265930365825e+00, TOL));803 rets = newtonnu(7.540773149328e-01, 1.379633086621e-01);804 ok(isequalRel(rets.shift(), 5.172866833145e-02, TOL));805 ok(isequalRel(rets.shift(), 1.273864704904e-02, TOL));806 rets = newtonnu(7.542695512343e-01, 2.553148562530e+00);807 ok(isequalRel(rets.shift(), 1.780425168220e+00, TOL));808 ok(isequalRel(rets.shift(), 1.042667920789e+00, TOL));809 rets = newtonnu(7.543275574825e-01, 2.900284963886e+00);810 ok(isequalRel(rets.shift(), 2.514954715674e+00, TOL));811 ok(isequalRel(rets.shift(), 2.072598332621e+00, TOL));812 rets = newtonnu(7.543624491072e-01, 3.133228268447e+00);813 ok(isequalRel(rets.shift(), 3.119239914294e+00, TOL));814 ok(isequalRel(rets.shift(), 3.102379251274e+00, TOL));815 rets = newtonnu(7.543584025770e-01, 3.363281180717e+00);816 ok(isequalRel(rets.shift(), -2.563372295632e+00, TOL));817 ok(isequalRel(rets.shift(), 4.132095878009e+00, TOL));818 rets = newtonnu(7.542967241330e-01, 3.692964050534e+00);819 ok(isequalRel(rets.shift(), -1.847064592697e+00, TOL));820 ok(isequalRel(rets.shift(), 5.161814529443e+00, TOL));821 rets = newtonnu(7.544385527024e-01, 5.400593266884e+00);822 ok(isequalRel(rets.shift(), -3.498303424809e-01, TOL));823 ok(isequalRel(rets.shift(), 6.191930050445e+00, TOL));824 // 23177825 rets = newtonnu(7.263087733555e-01, 2.637418480129e+00);826 ok(isequalRel(rets.shift(), 1.993247562015e+00, TOL));827 ok(isequalRel(rets.shift(), 1.330791003283e+00, TOL));828 rets = newtonnu(7.262533237763e-01, 2.993942370793e+00);829 ok(isequalRel(rets.shift(), 2.774325838562e+00, TOL));830 ok(isequalRel(rets.shift(), 2.513553063295e+00, TOL));831 rets = newtonnu(7.262566786379e-01, 3.271456185468e+00);832 ok(isequalRel(rets.shift(), -2.817877380632e+00, TOL));833 ok(isequalRel(rets.shift(), 3.696323676145e+00, TOL));834 rets = newtonnu(7.263198311914e-01, 3.616660347911e+00);835 ok(isequalRel(rets.shift(), -2.048952515975e+00, TOL));836 ok(isequalRel(rets.shift(), 4.879092111333e+00, TOL));837 rets = newtonnu(7.263454271303e-01, 4.837457714387e+00);838 ok(isequalRel(rets.shift(), -6.755217307564e-01, TOL));839 ok(isequalRel(rets.shift(), 6.061850677234e+00, TOL));840 rets = newtonnu(7.263670854616e-01, 2.458314087655e+00);841 ok(isequalRel(rets.shift(), 1.683561447863e+00, TOL));842 ok(isequalRel(rets.shift(), 9.618077026516e-01, TOL));843 rets = newtonnu(7.262956957566e-01, 2.899985976628e+00);844 ok(isequalRel(rets.shift(), 2.549754191281e+00, TOL));845 ok(isequalRel(rets.shift(), 2.144562730680e+00, TOL));846 rets = newtonnu(7.262798501064e-01, 3.184506271738e+00);847 ok(isequalRel(rets.shift(), -3.033910417165e+00, TOL));848 ok(isequalRel(rets.shift(), 3.327331274225e+00, TOL));849 rets = newtonnu(7.263238070861e-01, 3.489692093179e+00);850 ok(isequalRel(rets.shift(), -2.309893474338e+00, TOL));851 ok(isequalRel(rets.shift(), 4.510101082385e+00, TOL));852 rets = newtonnu(7.264120176083e-01, 4.116789489670e+00);853 ok(isequalRel(rets.shift(), -1.287858790195e+00, TOL));854 ok(isequalRel(rets.shift(), 5.692856020935e+00, TOL));855 rets = newtonnu(7.264167991962e-01, 2.169100857506e+00);856 ok(isequalRel(rets.shift(), 1.290991144736e+00, TOL));857 ok(isequalRel(rets.shift(), 5.928252330550e-01, TOL));858 rets = newtonnu(7.263406648409e-01, 2.794279417344e+00);859 ok(isequalRel(rets.shift(), 2.311571109619e+00, TOL));860 ok(isequalRel(rets.shift(), 1.775570986411e+00, TOL));861 // 23333862 rets = newtonnu(9.906044031463e-01, 2.710920576748e+00);863 ok(isequalRel(rets.shift(), 6.086820953334e-01, TOL));864 ok(isequalRel(rets.shift(), 4.226762810877e-02, TOL));865 rets = newtonnu(9.906744583785e-01, 2.804969305754e+00);866 ok(isequalRel(rets.shift(), 7.658434418298e-01, TOL));867 ok(isequalRel(rets.shift(), 7.916219999337e-02, TOL));868 rets = newtonnu(9.907363097222e-01, 2.853418125097e+00);869 ok(isequalRel(rets.shift(), 8.789727658895e-01, TOL));870 ok(isequalRel(rets.shift(), 1.160226162864e-01, TOL));871 rets = newtonnu(9.907930387002e-01, 2.885019187817e+00);872 ok(isequalRel(rets.shift(), 9.703331378680e-01, TOL));873 ok(isequalRel(rets.shift(), 1.528555719233e-01, TOL));874 rets = newtonnu(9.908453428193e-01, 2.908057142832e+00);875 ok(isequalRel(rets.shift(), 1.048314299258e+00, TOL));876 ok(isequalRel(rets.shift(), 1.896643340401e-01, TOL));877 rets = newtonnu(9.908934162100e-01, 2.925984490012e+00);878 ok(isequalRel(rets.shift(), 1.117098298413e+00, TOL));879 ok(isequalRel(rets.shift(), 2.264511571453e-01, TOL));880 rets = newtonnu(9.909372927325e-01, 2.940546063766e+00);881 ok(isequalRel(rets.shift(), 1.179107046850e+00, TOL));882 ok(isequalRel(rets.shift(), 2.632178986692e-01, TOL));883 rets = newtonnu(9.909769444104e-01, 2.952737452853e+00);884 ok(isequalRel(rets.shift(), 1.235883470382e+00, TOL));885 ok(isequalRel(rets.shift(), 2.999662394134e-01, TOL));886 rets = newtonnu(9.910123176508e-01, 2.963176615147e+00);887 ok(isequalRel(rets.shift(), 1.288478100658e+00, TOL));888 ok(isequalRel(rets.shift(), 3.366977788907e-01, TOL));889 rets = newtonnu(9.910433489629e-01, 2.972271689837e+00);890 ok(isequalRel(rets.shift(), 1.337642275600e+00, TOL));891 ok(isequalRel(rets.shift(), 3.734140816695e-01, TOL));892 rets = newtonnu(9.910699726623e-01, 2.980305455016e+00);893 ok(isequalRel(rets.shift(), 1.383934130026e+00, TOL));894 ok(isequalRel(rets.shift(), 4.101167015781e-01, TOL));895 rets = newtonnu(9.910921250270e-01, 2.987481446559e+00);896 ok(isequalRel(rets.shift(), 1.427780988229e+00, TOL));897 ok(isequalRel(rets.shift(), 4.468071947966e-01, TOL));898 rets = newtonnu(9.911097467267e-01, 2.993950801145e+00);899 ok(isequalRel(rets.shift(), 1.469518180325e+00, TOL));900 ok(isequalRel(rets.shift(), 4.834871268905e-01, TOL));901 rets = newtonnu(9.911146043875e-01, 2.995970942154e+00);902 ok(isequalRel(rets.shift(), 1.483009748697e+00, TOL));903 ok(isequalRel(rets.shift(), 4.957116964193e-01, TOL));904 // 23599905 rets = newtonnu(5.784051420876e-01, 2.042734029820e+00);906 ok(isequalRel(rets.shift(), 1.402040163613e+00, TOL));907 ok(isequalRel(rets.shift(), 8.318515906631e-01, TOL));908 rets = newtonnu(5.783202612333e-01, 2.353987642725e+00);909 ok(isequalRel(rets.shift(), 1.787403278048e+00, TOL));910 ok(isequalRel(rets.shift(), 1.222597034643e+00, TOL));911 rets = newtonnu(5.782452116786e-01, 2.571151958504e+00);912 ok(isequalRel(rets.shift(), 2.109673564379e+00, TOL));913 ok(isequalRel(rets.shift(), 1.613374145509e+00, TOL));914 rets = newtonnu(5.781858818730e-01, 2.742767240296e+00);915 ok(isequalRel(rets.shift(), 2.396293113376e+00, TOL));916 ok(isequalRel(rets.shift(), 2.004172092034e+00, TOL));917 rets = newtonnu(5.781435183037e-01, 2.890012644494e+00);918 ok(isequalRel(rets.shift(), 2.661834460677e+00, TOL));919 ok(isequalRel(rets.shift(), 2.394983832435e+00, TOL));920 rets = newtonnu(5.781182295785e-01, 3.024294654572e+00);921 ok(isequalRel(rets.shift(), 2.915437361688e+00, TOL));922 ok(isequalRel(rets.shift(), 2.785804532415e+00, TOL));923 rets = newtonnu(5.781099191721e-01, 3.153073057420e+00);924 ok(isequalRel(rets.shift(), -3.119389581938e+00, TOL));925 ok(isequalRel(rets.shift(), 3.176630486600e+00, TOL));926 rets = newtonnu(5.781185602132e-01, 3.282377737929e+00);927 ok(isequalRel(rets.shift(), -2.870524379645e+00, TOL));928 ok(isequalRel(rets.shift(), 3.567458447874e+00, TOL));929 rets = newtonnu(5.781442547519e-01, 3.418369059747e+00);930 ok(isequalRel(rets.shift(), -2.615313371561e+00, TOL));931 ok(isequalRel(rets.shift(), 3.958285119243e+00, TOL));932 rets = newtonnu(5.781871583535e-01, 3.568979715947e+00);933 ok(isequalRel(rets.shift(), -2.346758356903e+00, TOL));934 ok(isequalRel(rets.shift(), 4.349106621248e+00, TOL));935 rets = newtonnu(5.782471511503e-01, 3.746777622450e+00);936 ok(isequalRel(rets.shift(), -2.055033771840e+00, TOL));937 ok(isequalRel(rets.shift(), 4.739917727954e+00, TOL));938 rets = newtonnu(5.783226767564e-01, 3.975937404662e+00);939 ok(isequalRel(rets.shift(), -1.724021766408e+00, TOL));940 ok(isequalRel(rets.shift(), 5.130710549596e+00, TOL));941 rets = newtonnu(5.784060990336e-01, 4.314306727539e+00);942 ok(isequalRel(rets.shift(), -1.322360872112e+00, TOL));943 ok(isequalRel(rets.shift(), 5.521472489589e+00, TOL));944 rets = newtonnu(5.784609433935e-01, 4.944459382375e+00);945 ok(isequalRel(rets.shift(), -7.762795773556e-01, TOL));946 ok(isequalRel(rets.shift(), 5.912192623481e+00, TOL));947 rets = newtonnu(5.784178049311e-01, 9.098140980551e-02);948 ok(isequalRel(rets.shift(), 4.704380301857e-02, TOL));949 ok(isequalRel(rets.shift(), 1.984286548586e-02, TOL));950 rets = newtonnu(5.784567893684e-01, 1.428319169135e+00);951 ok(isequalRel(rets.shift(), 8.422745412591e-01, TOL));952 ok(isequalRel(rets.shift(), 4.106535910989e-01, TOL));953 rets = newtonnu(5.783928239487e-01, 2.011549338173e+00);954 ok(isequalRel(rets.shift(), 1.367916471514e+00, TOL));955 ok(isequalRel(rets.shift(), 8.013862671461e-01, TOL));956 rets = newtonnu(5.783078403339e-01, 2.334050515830e+00);957 ok(isequalRel(rets.shift(), 1.760134801544e+00, TOL));958 ok(isequalRel(rets.shift(), 1.192161926553e+00, TOL));959 rets = newtonnu(5.782317383207e-01, 2.556248718242e+00);960 ok(isequalRel(rets.shift(), 2.086111386365e+00, TOL));961 ok(isequalRel(rets.shift(), 1.582970266417e+00, TOL));962 rets = newtonnu(5.781711345647e-01, 2.730476349827e+00);963 ok(isequalRel(rets.shift(), 2.374907377344e+00, TOL));964 ok(isequalRel(rets.shift(), 1.973800144940e+00, TOL));965 rets = newtonnu(5.781274575091e-01, 2.879148887278e+00);966 ok(isequalRel(rets.shift(), 2.641739070668e+00, TOL));967 ok(isequalRel(rets.shift(), 2.364644291315e+00, TOL));968 rets = newtonnu(5.781008606368e-01, 3.014155823370e+00);969 ok(isequalRel(rets.shift(), 2.896033395820e+00, TOL));970 ok(isequalRel(rets.shift(), 2.755497745077e+00, TOL));971 rets = newtonnu(5.780912522479e-01, 3.143153611159e+00);972 ok(isequalRel(rets.shift(), -3.138573761097e+00, TOL));973 ok(isequalRel(rets.shift(), 3.146356738774e+00, TOL));974 rets = newtonnu(5.780985986352e-01, 3.272224256700e+00);975 ok(isequalRel(rets.shift(), -2.889925052126e+00, TOL));976 ok(isequalRel(rets.shift(), 3.537218006355e+00, TOL));977 rets = newtonnu(5.781229951224e-01, 3.407467729449e+00);978 ok(isequalRel(rets.shift(), -2.635406959541e+00, TOL));979 ok(isequalRel(rets.shift(), 3.928078269318e+00, TOL));980 rets = newtonnu(5.781646028457e-01, 3.556605575105e+00);981 ok(isequalRel(rets.shift(), -2.368156299530e+00, TOL));982 ok(isequalRel(rets.shift(), 4.318933711585e+00, TOL));983 rets = newtonnu(5.782233506636e-01, 3.731687084934e+00);984 ok(isequalRel(rets.shift(), -2.078651571054e+00, TOL));985 ok(isequalRel(rets.shift(), 4.709779240440e+00, TOL));986 rets = newtonnu(5.782978841206e-01, 3.955539621498e+00);987 ok(isequalRel(rets.shift(), -1.751463602273e+00, TOL));988 ok(isequalRel(rets.shift(), 5.100607219443e+00, TOL));989 rets = newtonnu(5.783814148451e-01, 4.281774322930e+00);990 ok(isequalRel(rets.shift(), -1.356992012291e+00, TOL));991 ok(isequalRel(rets.shift(), 5.491405423111e+00, TOL));992 rets = newtonnu(5.784415819901e-01, 4.875919714831e+00);993 ok(isequalRel(rets.shift(), -8.265088773899e-01, TOL));994 ok(isequalRel(rets.shift(), 5.882161169868e+00, TOL));995 rets = newtonnu(5.783988140863e-01, 6.236497677359e+00);996 ok(isequalRel(rets.shift(), -2.413249280196e-02, TOL));997 ok(isequalRel(rets.shift(), 6.273009664811e+00, TOL));998 rets = newtonnu(5.784399994085e-01, 1.361334154581e+00);999 ok(isequalRel(rets.shift(), 7.926705899408e-01, TOL));1000 ok(isequalRel(rets.shift(), 3.806880266413e-01, TOL));1001 rets = newtonnu(5.783808309591e-01, 1.979534666510e+00);1002 ok(isequalRel(rets.shift(), 1.333644047704e+00, TOL));1003 ok(isequalRel(rets.shift(), 7.714515489745e-01, TOL));1004 rets = newtonnu(5.782958886741e-01, 2.313907266475e+00);1005 ok(isequalRel(rets.shift(), 1.732965656025e+00, TOL));1006 ok(isequalRel(rets.shift(), 1.162257387001e+00, TOL));1007 rets = newtonnu(5.782187822181e-01, 2.541333908517e+00);1008 ok(isequalRel(rets.shift(), 2.062746643187e+00, TOL));1009 ok(isequalRel(rets.shift(), 1.553096911448e+00, TOL));1010 rets = newtonnu(5.781569290539e-01, 2.718253536163e+00);1011 ok(isequalRel(rets.shift(), 2.353768115677e+00, TOL));1012 ok(isequalRel(rets.shift(), 1.943958687704e+00, TOL));1013 // 242081014 rets = newtonnu(2.654297752769e-03, 1.355056725607e+00);1015 ok(isequalRel(rets.shift(), 1.352464692186e+00, TOL));1016 ok(isequalRel(rets.shift(), 1.349873406990e+00, TOL));1017 rets = newtonnu(2.634424546089e-03, 1.882982264873e+00);1018 ok(isequalRel(rets.shift(), 1.880474158934e+00, TOL));1019 ok(isequalRel(rets.shift(), 1.877965049220e+00, TOL));1020 rets = newtonnu(2.617868391905e-03, 2.413251211721e+00);1021 ok(isequalRel(rets.shift(), 2.411506966265e+00, TOL));1022 ok(isequalRel(rets.shift(), 2.409761022177e+00, TOL));1023 rets = newtonnu(2.608930185835e-03, 2.945196393376e+00);1024 ok(isequalRel(rets.shift(), 2.944686643777e+00, TOL));1025 ok(isequalRel(rets.shift(), 2.944176242933e+00, TOL));1026 rets = newtonnu(2.610099643301e-03, 3.477711644804e+00);1027 ok(isequalRel(rets.shift(), -2.804611720956e+00, TOL));1028 ok(isequalRel(rets.shift(), 3.479436587838e+00, TOL));1029 rets = newtonnu(2.621280442174e-03, 4.009403899752e+00);1030 ok(isequalRel(rets.shift(), -2.271779892611e+00, TOL));1031 ok(isequalRel(rets.shift(), 4.013408618543e+00, TOL));1032 rets = newtonnu(2.639328633586e-03, 4.539064512266e+00);1033 ok(isequalRel(rets.shift(), -1.741520416782e+00, TOL));1034 ok(isequalRel(rets.shift(), 4.544265848486e+00, TOL));1035 rets = newtonnu(2.659026281401e-03, 5.066214260860e+00);1036 ok(isequalRel(rets.shift(), -1.214477881036e+00, TOL));1037 ok(isequalRel(rets.shift(), 5.071199432057e+00, TOL));1038 rets = newtonnu(2.675047219934e-03, 5.591159816614e+00);1039 ok(isequalRel(rets.shift(), -6.903203016360e-01, TOL));1040 ok(isequalRel(rets.shift(), 5.594568433296e+00, TOL));1041 rets = newtonnu(2.683325530177e-03, 6.114655177180e+00);1042 ok(isequalRel(rets.shift(), -1.680806401740e-01, TOL));1043 ok(isequalRel(rets.shift(), 6.115553561464e+00, TOL));1044 rets = newtonnu(2.681605396723e-03, 3.545203619987e-01);1045 ok(isequalRel(rets.shift(), 3.535906353620e-01, TOL));1046 ok(isequalRel(rets.shift(), 3.526620797908e-01, TOL));1047 rets = newtonnu(2.670087967001e-03, 8.783370687673e-01);1048 ok(isequalRel(rets.shift(), 8.762837072798e-01, TOL));1049 ok(isequalRel(rets.shift(), 8.742321032115e-01, TOL));1050 // 259541051 rets = newtonnu(2.118980881091e-04, 3.094712057265e-01);1052 ok(isequalRel(rets.shift(), 3.094066776144e-01, TOL));1053 ok(isequalRel(rets.shift(), 3.093421560150e-01, TOL));1054 rets = newtonnu(2.018857414327e-04, 7.522873900398e-01);1055 ok(isequalRel(rets.shift(), 7.521494495312e-01, TOL));1056 ok(isequalRel(rets.shift(), 7.520115191915e-01, TOL));1057 rets = newtonnu(1.853991043408e-04, 1.221123179806e+00);1058 ok(isequalRel(rets.shift(), 1.220949005707e+00, TOL));1059 ok(isequalRel(rets.shift(), 1.220774837144e+00, TOL));1060 rets = newtonnu(1.657288742284e-04, 1.735739082203e+00);1061 ok(isequalRel(rets.shift(), 1.735575600417e+00, TOL));1062 ok(isequalRel(rets.shift(), 1.735412116409e+00, TOL));1063 rets = newtonnu(1.479780786326e-04, 2.315992652649e+00);1064 ok(isequalRel(rets.shift(), 2.315883889995e+00, TOL));1065 ok(isequalRel(rets.shift(), 2.315775121884e+00, TOL));1066 rets = newtonnu(1.384411464309e-04, 2.961761549236e+00);1067 ok(isequalRel(rets.shift(), 2.961736785495e+00, TOL));1068 ok(isequalRel(rets.shift(), 2.961712020067e+00, TOL));1069 rets = newtonnu(1.414428690715e-04, 3.626207835025e+00);1070 ok(isequalRel(rets.shift(), -2.656911574341e+00, TOL));1071 ok(isequalRel(rets.shift(), 3.626339634777e+00, TOL));1072 rets = newtonnu(1.555355900366e-04, 4.244384461393e+00);1073 ok(isequalRel(rets.shift(), -2.038662030031e+00, TOL));1074 ok(isequalRel(rets.shift(), 4.244662097773e+00, TOL));1075 rets = newtonnu(1.749131783852e-04, 4.792383442720e+00);1076 ok(isequalRel(rets.shift(), -1.490627511845e+00, TOL));1077 ok(isequalRel(rets.shift(), 4.792732146727e+00, TOL));1078 rets = newtonnu(1.936266716627e-04, 5.283165782504e+00);1079 ok(isequalRel(rets.shift(), -9.998565999283e-01, TOL));1080 ok(isequalRel(rets.shift(), 5.283491623474e+00, TOL));1081 rets = newtonnu(2.074197220398e-04, 5.737762198434e+00);1082 ok(isequalRel(rets.shift(), -5.453155131111e-01, TOL));1083 ok(isequalRel(rets.shift(), 5.737977380162e+00, TOL));1084 rets = newtonnu(2.137717161693e-04, 6.174117635266e+00);1085 ok(isequalRel(rets.shift(), -1.090444050002e-01, TOL));1086 ok(isequalRel(rets.shift(), 6.174164166620e+00, TOL));1087 rets = newtonnu(2.116506173217e-04, 3.237859936919e-01);1088 ok(isequalRel(rets.shift(), 3.237186620887e-01, TOL));1089 ok(isequalRel(rets.shift(), 3.236513372416e-01, TOL));1090 rets = newtonnu(2.013927155994e-04, 7.671738094483e-01);1091 ok(isequalRel(rets.shift(), 7.670340321889e-01, TOL));1092 ok(isequalRel(rets.shift(), 7.668942650642e-01, TOL));1093 rets = newtonnu(1.847419205128e-04, 1.237171927001e+00);1094 ok(isequalRel(rets.shift(), 1.236997376721e+00, TOL));1095 ok(isequalRel(rets.shift(), 1.236822831723e+00, TOL));1096 rets = newtonnu(1.650458110166e-04, 1.753662603595e+00);1097 ok(isequalRel(rets.shift(), 1.753500307239e+00, TOL));1098 ok(isequalRel(rets.shift(), 1.753338008449e+00, TOL));1099 rets = newtonnu(1.474658285037e-04, 2.336291941255e+00);1100 ok(isequalRel(rets.shift(), 2.336185607203e+00, TOL));1101 ok(isequalRel(rets.shift(), 2.336079267720e+00, TOL));1102 rets = newtonnu(1.382992296552e-04, 2.983724275840e+00);1103 ok(isequalRel(rets.shift(), 2.983702531855e+00, TOL));1104 ok(isequalRel(rets.shift(), 2.983680786387e+00, TOL));1105 rets = newtonnu(1.417267990267e-04, 3.647603983939e+00);1106 ok(isequalRel(rets.shift(), -2.635512625096e+00, TOL));1107 ok(isequalRel(rets.shift(), 3.647741384485e+00, TOL));1108 rets = newtonnu(1.560996564057e-04, 4.263576124747e+00);1109 ok(isequalRel(rets.shift(), -2.019468537680e+00, TOL));1110 ok(isequalRel(rets.shift(), 4.263857419013e+00, TOL));1111 rets = newtonnu(1.755451493936e-04, 4.809374887000e+00);1112 ok(isequalRel(rets.shift(), -1.473635701480e+00, TOL));1113 ok(isequalRel(rets.shift(), 4.809724322911e+00, TOL));1114 rets = newtonnu(1.941563959538e-04, 5.298627489863e+00);1115 ok(isequalRel(rets.shift(), -9.843960883758e-01, TOL));1116 ok(isequalRel(rets.shift(), 5.298950939055e+00, TOL));1117 rets = newtonnu(2.077379521664e-04, 5.752349988353e+00);1118 ok(isequalRel(rets.shift(), -5.307301601004e-01, TOL));1119 ok(isequalRel(rets.shift(), 5.752560296384e+00, TOL));1120 rets = newtonnu(2.138219808942e-04, 6.188357826844e+00);1121 ok(isequalRel(rets.shift(), -9.480723666420e-02, TOL));1122 ok(isequalRel(rets.shift(), 6.188398312032e+00, TOL));1123 rets = newtonnu(2.114225876523e-04, 3.381384865579e-01);1124 ok(isequalRel(rets.shift(), 3.380683580049e-01, TOL));1125 ok(isequalRel(rets.shift(), 3.379982364464e-01, TOL));1126 // 269001127 rets = newtonnu(3.702590174409e-04, 6.178606008330e+00);1128 ok(isequalRel(rets.shift(), -1.045406550777e-01, TOL));1129 ok(isequalRel(rets.shift(), 6.178683288757e+00, TOL));1130 rets = newtonnu(3.701274097376e-04, 1.311787735524e-01);1131 ok(isequalRel(rets.shift(), 1.311303687009e-01, TOL));1132 ok(isequalRel(rets.shift(), 1.310819727321e-01, TOL));1133 rets = newtonnu(3.687418981571e-04, 2.886761651077e-01);1134 ok(isequalRel(rets.shift(), 2.885712089504e-01, TOL));1135 ok(isequalRel(rets.shift(), 2.884662713473e-01, TOL));1136 // 269751137 rets = newtonnu(5.600550020529e-01, 3.055085867742e-01);1138 ok(isequalRel(rets.shift(), 1.631489467787e-01, TOL));1139 ok(isequalRel(rets.shift(), 7.218137586086e-02, TOL));1140 rets = newtonnu(5.600301892854e-01, 2.271836458316e+00);1141 ok(isequalRel(rets.shift(), 1.704232394083e+00, TOL));1142 ok(isequalRel(rets.shift(), 1.149180531845e+00, TOL));1143 rets = newtonnu(5.600934955264e-01, 2.816149153755e+00);1144 ok(isequalRel(rets.shift(), 2.541895638297e+00, TOL));1145 ok(isequalRel(rets.shift(), 2.225783135424e+00, TOL));1146 rets = newtonnu(5.600478225224e-01, 3.196415647512e+00);1147 ok(isequalRel(rets.shift(), -3.038422921054e+00, TOL));1148 ok(isequalRel(rets.shift(), 3.302439923089e+00, TOL));1149 rets = newtonnu(5.599706577269e-01, 3.598925992357e+00);1150 ok(isequalRel(rets.shift(), -2.315578114506e+00, TOL));1151 ok(isequalRel(rets.shift(), 4.379317682113e+00, TOL));1152 rets = newtonnu(5.599893485981e-01, 4.288678697633e+00);1153 ok(isequalRel(rets.shift(), -1.376207344610e+00, TOL));1154 ok(isequalRel(rets.shift(), 5.456398759969e+00, TOL));1155 rets = newtonnu(5.600638670535e-01, 9.537448265413e-01);1156 ok(isequalRel(rets.shift(), 5.355334773051e-01, TOL));1157 ok(isequalRel(rets.shift(), 2.497329415917e-01, TOL));1158 rets = newtonnu(5.600082181346e-01, 2.389582311632e+00);1159 ok(isequalRel(rets.shift(), 1.863103837074e+00, TOL));1160 ok(isequalRel(rets.shift(), 1.326850334671e+00, TOL));1161 rets = newtonnu(5.600491118493e-01, 2.883301197419e+00);1162 ok(isequalRel(rets.shift(), 2.661903692274e+00, TOL));1163 ok(isequalRel(rets.shift(), 2.403439199449e+00, TOL));1164 rets = newtonnu(5.599936084298e-01, 3.257500895422e+00);1165 ok(isequalRel(rets.shift(), -2.923965037926e+00, TOL));1166 ok(isequalRel(rets.shift(), 3.480130621318e+00, TOL));1167 rets = newtonnu(5.599206562963e-01, 3.679624684616e+00);1168 ok(isequalRel(rets.shift(), -2.184027891888e+00, TOL));1169 ok(isequalRel(rets.shift(), 4.557056318968e+00, TOL));1170 rets = newtonnu(5.599717319624e-01, 4.500602674831e+00);1171 ok(isequalRel(rets.shift(), -1.163172871369e+00, TOL));1172 ok(isequalRel(rets.shift(), 5.634103189003e+00, TOL));1173 rets = newtonnu(5.599370292825e-01, 1.407630631290e+00);1174 ok(isequalRel(rets.shift(), 8.471095774090e-01, TOL));1175 ok(isequalRel(rets.shift(), 4.275097677437e-01, TOL));1176 rets = newtonnu(5.599861031042e-01, 2.491749272943e+00);1177 ok(isequalRel(rets.shift(), 2.011110812908e+00, TOL));1178 ok(isequalRel(rets.shift(), 1.504537491082e+00, TOL));1179 rets = newtonnu(5.600061902363e-01, 2.947772957086e+00);1180 ok(isequalRel(rets.shift(), 2.779500877230e+00, TOL));1181 ok(isequalRel(rets.shift(), 2.581129241572e+00, TOL));1182 rets = newtonnu(5.599428934279e-01, 3.319721883918e+00);1183 ok(isequalRel(rets.shift(), -2.808440659401e+00, TOL));1184 ok(isequalRel(rets.shift(), 3.657859039487e+00, TOL));1185 rets = newtonnu(5.598778587657e-01, 3.768254456239e+00);1186 ok(isequalRel(rets.shift(), -2.046154814096e+00, TOL));1187 ok(isequalRel(rets.shift(), 4.734833973902e+00, TOL));1188 rets = newtonnu(5.599408868531e-01, 4.787768395720e+00);1189 ok(isequalRel(rets.shift(), -9.153090753996e-01, TOL));1190 ok(isequalRel(rets.shift(), 5.811769941130e+00, TOL));1191 rets = newtonnu(5.598628789548e-01, 1.720153608349e+00);1192 ok(isequalRel(rets.shift(), 1.105802238942e+00, TOL));1193 ok(isequalRel(rets.shift(), 6.053832396828e-01, TOL));1194 rets = newtonnu(5.599638794879e-01, 2.582573301986e+00);1195 ok(isequalRel(rets.shift(), 2.150677425754e+00, TOL));1196 ok(isequalRel(rets.shift(), 1.682252070980e+00, TOL));1197 rets = newtonnu(5.599653791676e-01, 3.010336368451e+00);1198 ok(isequalRel(rets.shift(), 2.895354066762e+00, TOL));1199 ok(isequalRel(rets.shift(), 2.758858172723e+00, TOL));1200 rets = newtonnu(5.598962994359e-01, 3.383730187939e+00);1201 ok(isequalRel(rets.shift(), -2.691259411846e+00, TOL));1202 ok(isequalRel(rets.shift(), 3.835629480898e+00, TOL));1203 rets = newtonnu(5.598436970652e-01, 3.867476885835e+00);1204 ok(isequalRel(rets.shift(), -1.900264427413e+00, TOL));1205 ok(isequalRel(rets.shift(), 4.912653141722e+00, TOL));1206 rets = newtonnu(5.598443873674e-01, 5.200514292271e+00);1207 ok(isequalRel(rets.shift(), -6.182906073510e-01, TOL));1208 ok(isequalRel(rets.shift(), 5.989404621744e+00, TOL));1209 // 280571210 rets = newtonnu(7.333961569790e-04, 4.195374323083e+00);1211 ok(isequalRel(rets.shift(), -2.087173328153e+00, TOL));1212 ok(isequalRel(rets.shift(), 4.196649750355e+00, TOL));1213 rets = newtonnu(1.327018230815e-03, 1.327306440310e+00);1214 ok(isequalRel(rets.shift(), 1.326018771385e+00, TOL));1215 ok(isequalRel(rets.shift(), 1.324731309901e+00, TOL));1216 rets = newtonnu(9.196305043762e-04, 2.457233819566e+00);1217 ok(isequalRel(rets.shift(), 2.456652243602e+00, TOL));1218 ok(isequalRel(rets.shift(), 2.456070460641e+00, TOL));1219 rets = newtonnu(2.671287814371e-03, 3.165700582569e+00);1220 ok(isequalRel(rets.shift(), -3.117420245421e+00, TOL));1221 ok(isequalRel(rets.shift(), 3.165829626930e+00, TOL));1222 rets = newtonnu(1.029370833968e-03, 4.964434733801e+00);1223 ok(isequalRel(rets.shift(), -1.317753854023e+00, TOL));1224 ok(isequalRel(rets.shift(), 4.966428043901e+00, TOL));1225 rets = newtonnu(8.855437590308e-04, 4.474886889950e+00);1226 ok(isequalRel(rets.shift(), -1.807437642047e+00, TOL));1227 ok(isequalRel(rets.shift(), 4.476608529551e+00, TOL));1228 rets = newtonnu(1.198447314706e-03, 1.453658925869e+00);1229 ok(isequalRel(rets.shift(), 1.452468774268e+00, TOL));1230 ok(isequalRel(rets.shift(), 1.451278707145e+00, TOL));1231 rets = newtonnu(7.950634398042e-04, 2.005371775591e+00);1232 ok(isequalRel(rets.shift(), 2.004650493391e+00, TOL));1233 ok(isequalRel(rets.shift(), 2.003929090740e+00, TOL));1234 rets = newtonnu(2.769612384846e-03, 3.150346841263e+00);1235 ok(isequalRel(rets.shift(), -3.132814186852e+00, TOL));1236 ok(isequalRel(rets.shift(), 3.150395432965e+00, TOL));1237 rets = newtonnu(8.577165476244e-04, 4.694534930147e+00);1238 ok(isequalRel(rets.shift(), -1.587792790516e+00, TOL));1239 ok(isequalRel(rets.shift(), 4.696250109326e+00, TOL));1240 rets = newtonnu(1.047239373767e-03, 4.687360971920e+00);1241 ok(isequalRel(rets.shift(), -1.594777409954e+00, TOL));1242 ok(isequalRel(rets.shift(), 4.689454835484e+00, TOL));1243 rets = newtonnu(1.046159866680e-03, 1.618368989317e+00);1244 ok(isequalRel(rets.shift(), 1.617323986854e+00, TOL));1245 ok(isequalRel(rets.shift(), 1.616278959159e+00, TOL));1246 rets = newtonnu(8.652745849065e-04, 1.575763395697e+00);1247 ok(isequalRel(rets.shift(), 1.574898129818e+00, TOL));1248 ok(isequalRel(rets.shift(), 1.574032862513e+00, TOL));1249 rets = newtonnu(2.766168153711e-03, 3.136831201507e+00);1250 ok(isequalRel(rets.shift(), 3.136818012312e+00, TOL));1251 ok(isequalRel(rets.shift(), 3.136804804902e+00, TOL));1252 rets = newtonnu(7.965670845200e-04, 4.256230709275e+00);1253 ok(isequalRel(rets.shift(), -2.026239353112e+00, TOL));1254 ok(isequalRel(rets.shift(), 4.257661324079e+00, TOL));1255 rets = newtonnu(1.200865835031e-03, 4.850134276420e+00);1256 ok(isequalRel(rets.shift(), -1.431861637168e+00, TOL));1257 ok(isequalRel(rets.shift(), 4.852512964413e+00, TOL));1258 rets = newtonnu(8.864163207241e-04, 1.831932871163e+00);1259 ok(isequalRel(rets.shift(), 1.831076408746e+00, TOL));1260 ok(isequalRel(rets.shift(), 1.830219848756e+00, TOL));1261 rets = newtonnu(1.038983051778e-03, 1.316307731762e+00);1262 ok(isequalRel(rets.shift(), 1.315302343401e+00, TOL));1263 ok(isequalRel(rets.shift(), 1.314297087223e+00, TOL));1264 rets = newtonnu(2.661219266844e-03, 3.121295808750e+00);1265 ok(isequalRel(rets.shift(), 3.121241726060e+00, TOL));1266 ok(isequalRel(rets.shift(), 3.121187571518e+00, TOL));1267 rets = newtonnu(9.326937609175e-04, 3.809280071246e+00);1268 ok(isequalRel(rets.shift(), -2.473327526707e+00, TOL));1269 ok(isequalRel(rets.shift(), 3.810435701051e+00, TOL));1270 rets = newtonnu(1.329698702340e-03, 4.974229143065e+00);1271 ok(isequalRel(rets.shift(), -1.307672008445e+00, TOL));1272 ok(isequalRel(rets.shift(), 4.976797231949e+00, TOL));1273 rets = newtonnu(7.360717491391e-04, 2.110838769814e+00);1274 ok(isequalRel(rets.shift(), 2.110207331193e+00, TOL));1275 ok(isequalRel(rets.shift(), 2.109575773273e+00, TOL));1276 rets = newtonnu(1.219309889156e-03, 1.191933899729e+00);1277 ok(isequalRel(rets.shift(), 1.190801311088e+00, TOL));1278 ok(isequalRel(rets.shift(), 1.189668978860e+00, TOL));1279 rets = newtonnu(2.462219959731e-03, 3.099310142526e+00);1280 ok(isequalRel(rets.shift(), 3.099205936369e+00, TOL));1281 ok(isequalRel(rets.shift(), 3.099101602196e+00, TOL));1282 // 281291283 rets = newtonnu(4.640666248398e-03, 2.688053122763e+00);1284 ok(isequalRel(rets.shift(), 2.686015554890e+00, TOL));1285 ok(isequalRel(rets.shift(), 2.683973751649e+00, TOL));1286 rets = newtonnu(4.638074038857e-03, 3.716820103224e+00);1287 ok(isequalRel(rets.shift(), -2.563837041079e+00, TOL));1288 ok(isequalRel(rets.shift(), 3.721881328029e+00, TOL));1289 rets = newtonnu(4.629207297044e-03, 4.780504691011e+00);1290 ok(isequalRel(rets.shift(), -1.498062854847e+00, TOL));1291 ok(isequalRel(rets.shift(), 4.789739420407e+00, TOL));1292 rets = newtonnu(4.611707205141e-03, 5.818459689103e+00);1293 ok(isequalRel(rets.shift(), -4.626629959640e-01, TOL));1294 ok(isequalRel(rets.shift(), 5.822580667009e+00, TOL));1295 rets = newtonnu(4.616435403522e-03, 6.068134805952e-01);1296 ok(isequalRel(rets.shift(), 6.041859154156e-01, TOL));1297 ok(isequalRel(rets.shift(), 6.015633540021e-01, TOL));1298 rets = newtonnu(4.621156197662e-03, 1.643346322335e+00);1299 ok(isequalRel(rets.shift(), 1.638736534015e+00, TOL));1300 ok(isequalRel(rets.shift(), 1.634126039048e+00, TOL));1301 rets = newtonnu(4.642194405799e-03, 2.705502836523e+00);1302 ok(isequalRel(rets.shift(), 2.703537836641e+00, TOL));1303 ok(isequalRel(rets.shift(), 2.701568716408e+00, TOL));1304 rets = newtonnu(4.635494796957e-03, 3.734349294046e+00);1305 ok(isequalRel(rets.shift(), -2.546241395989e+00, TOL));1306 ok(isequalRel(rets.shift(), 3.739543494880e+00, TOL));1307 rets = newtonnu(4.630325740817e-03, 4.798073754256e+00);1308 ok(isequalRel(rets.shift(), -1.480499111761e+00, TOL));1309 ok(isequalRel(rets.shift(), 4.807297657100e+00, TOL));1310 rets = newtonnu(4.609045984338e-03, 5.836171484637e+00);1311 ok(isequalRel(rets.shift(), -4.450255704088e-01, TOL));1312 ok(isequalRel(rets.shift(), 5.840143843312e+00, TOL));1313 rets = newtonnu(4.617930660554e-03, 6.244211807145e-01);1314 ok(isequalRel(rets.shift(), 6.217264454195e-01, TOL));1315 ok(isequalRel(rets.shift(), 6.190367806071e-01, TOL));1316 rets = newtonnu(4.618929629951e-03, 1.660972656137e+00);1317 ok(isequalRel(rets.shift(), 1.656371520467e+00, TOL));1318 ok(isequalRel(rets.shift(), 1.651769492992e+00, TOL));1319 // 283501320 rets = newtonnu(1.092900560486e-03, 3.755536003947e+00);1321 ok(isequalRel(rets.shift(), -2.527019406997e+00, TOL));1322 ok(isequalRel(rets.shift(), 3.756796077475e+00, TOL));1323 rets = newtonnu(6.742081783819e-04, 2.612214602642e+00);1324 ok(isequalRel(rets.shift(), 2.611874030661e+00, TOL));1325 ok(isequalRel(rets.shift(), 2.611533359642e+00, TOL));1326 rets = newtonnu(1.074437396221e-03, 3.363041521853e+00);1327 ok(isequalRel(rets.shift(), -2.919907668492e+00, TOL));1328 ok(isequalRel(rets.shift(), 3.363513879197e+00, TOL));1329 rets = newtonnu(9.979499333660e-04, 5.939466001665e+00);1330 ok(isequalRel(rets.shift(), -3.433831630345e-01, TOL));1331 ok(isequalRel(rets.shift(), 5.940138128610e+00, TOL));1332 rets = newtonnu(5.727401464106e-04, 1.971189384963e+00);1333 ok(isequalRel(rets.shift(), 1.970661885150e+00, TOL));1334 ok(isequalRel(rets.shift(), 1.970134326561e+00, TOL));1335 rets = newtonnu(1.069219642677e-03, 3.056861482628e+00);1336 ok(isequalRel(rets.shift(), 3.056770946507e+00, TOL));1337 ok(isequalRel(rets.shift(), 3.056680362185e+00, TOL));1338 rets = newtonnu(1.376351918738e-03, 3.159198185783e+00);1339 ok(isequalRel(rets.shift(), -3.123962874545e+00, TOL));1340 ok(isequalRel(rets.shift(), 3.159246696158e+00, TOL));1341 rets = newtonnu(1.294617565144e-03, 5.288416964379e+00);1342 ok(isequalRel(rets.shift(), -9.936830163633e-01, TOL));1343 ok(isequalRel(rets.shift(), 5.290587233593e+00, TOL));1344 rets = newtonnu(1.504204024512e-03, 9.807516430894e-01);1345 ok(isequalRel(rets.shift(), 9.795022984388e-01, TOL));1346 ok(isequalRel(rets.shift(), 9.782534781184e-01, TOL));1347 rets = newtonnu(1.644044584100e-03, 3.255122645661e+00);1348 ok(isequalRel(rets.shift(), -3.027876261481e+00, TOL));1349 ok(isequalRel(rets.shift(), 3.255495597846e+00, TOL));1350 rets = newtonnu(4.134101163345e-04, 3.376722047172e+00);1351 ok(isequalRel(rets.shift(), -2.906366928972e+00, TOL));1352 ok(isequalRel(rets.shift(), 3.376914728603e+00, TOL));1353 rets = newtonnu(1.425465157565e-03, 2.974557517523e+00);1354 ok(isequalRel(rets.shift(), 2.974320353619e+00, TOL));1355 ok(isequalRel(rets.shift(), 2.974083023159e+00, TOL));1356 // *** error: t:= 1560.000000 *** code = 11357 // 286231358 rets = newtonnu(6.253749953957e-01, 4.416709793252e+00);1359 ok(isequalRel(rets.shift(), -1.150086158832e+00, TOL));1360 ok(isequalRel(rets.shift(), 5.703940901115e+00, TOL));1361 rets = newtonnu(6.252060714442e-01, 2.531984598019e+00);1362 ok(isequalRel(rets.shift(), 1.981646449199e+00, TOL));1363 ok(isequalRel(rets.shift(), 1.408469011228e+00, TOL));1364 rets = newtonnu(6.249787437426e-01, 3.217306037618e+00);1365 ok(isequalRel(rets.shift(), -2.984238326928e+00, TOL));1366 ok(isequalRel(rets.shift(), 3.396884756261e+00, TOL));1367 rets = newtonnu(6.251022227779e-01, 4.076040856151e+00);1368 ok(isequalRel(rets.shift(), -1.521709521421e+00, TOL));1369 ok(isequalRel(rets.shift(), 5.385825063318e+00, TOL));1370 rets = newtonnu(6.250011839676e-01, 2.350737456572e+00);1371 ok(isequalRel(rets.shift(), 1.710842920648e+00, TOL));1372 ok(isequalRel(rets.shift(), 1.091960814968e+00, TOL));1373 rets = newtonnu(6.247306804556e-01, 3.123949627337e+00);1374 ok(isequalRel(rets.shift(), 3.104885159496e+00, TOL));1375 ok(isequalRel(rets.shift(), 3.081958011370e+00, TOL));1376 rets = newtonnu(6.248041257720e-01, 3.858943902046e+00);1377 ok(isequalRel(rets.shift(), -1.816555642639e+00, TOL));1378 ok(isequalRel(rets.shift(), 5.072660218557e+00, TOL));1379 rets = newtonnu(6.247830071695e-01, 2.100922125379e+00);1380 ok(isequalRel(rets.shift(), 1.395741968258e+00, TOL));1381 ok(isequalRel(rets.shift(), 7.805074740614e-01, TOL));1382 rets = newtonnu(6.244905477618e-01, 3.031490045493e+00);1383 ok(isequalRel(rets.shift(), 2.913351627055e+00, TOL));1384 ok(isequalRel(rets.shift(), 2.772051574029e+00, TOL));1385 rets = newtonnu(6.245071111651e-01, 3.699088170812e+00);1386 ok(isequalRel(rets.shift(), -2.067695498498e+00, TOL));1387 ok(isequalRel(rets.shift(), 4.764472125349e+00, TOL));1388 rets = newtonnu(6.245202261218e-01, 1.697545348109e+00);1389 ok(isequalRel(rets.shift(), 9.994031863580e-01, TOL));1390 ok(isequalRel(rets.shift(), 4.740890128887e-01, TOL));1391 rets = newtonnu(6.242578356432e-01, 2.937315397418e+00);1392 ok(isequalRel(rets.shift(), 2.721671031936e+00, TOL));1393 ok(isequalRel(rets.shift(), 2.467168050717e+00, TOL));1394 // 286261395 rets = newtonnu(5.248254601406e-05, 6.922562299435e-01);1396 ok(isequalRel(rets.shift(), 6.922227322880e-01, TOL));1397 ok(isequalRel(rets.shift(), 6.921892353092e-01, TOL));1398 rets = newtonnu(3.811314442850e-05, 9.132128511527e-01);1399 ok(isequalRel(rets.shift(), 9.131826860351e-01, TOL));1400 ok(isequalRel(rets.shift(), 9.131525212689e-01, TOL));1401 rets = newtonnu(2.128915564641e-05, 1.073151733387e+00);1402 ok(isequalRel(rets.shift(), 1.073133026501e+00, TOL));1403 ok(isequalRel(rets.shift(), 1.073114319711e+00, TOL));1404 rets = newtonnu(5.049959995073e-06, 4.527199825854e-01);1405 ok(isequalRel(rets.shift(), 4.527177736717e-01, TOL));1406 ok(isequalRel(rets.shift(), 4.527155647630e-01, TOL));1407 rets = newtonnu(1.687344340959e-05, 5.202684757930e+00);1408 ok(isequalRel(rets.shift(), -1.080485663665e+00, TOL));1409 ok(isequalRel(rets.shift(), 5.202714529040e+00, TOL));1410 rets = newtonnu(3.407549879677e-05, 5.320193939209e+00);1411 ok(isequalRel(rets.shift(), -9.629633955461e-01, TOL));1412 ok(isequalRel(rets.shift(), 5.320249883786e+00, TOL));1413 rets = newtonnu(4.918143532648e-05, 5.533109643824e+00);1414 ok(isequalRel(rets.shift(), -7.500421372633e-01, TOL));1415 ok(isequalRel(rets.shift(), 5.533176695405e+00, TOL));1416 rets = newtonnu(6.098391755986e-05, 5.767930670346e+00);1417 ok(isequalRel(rets.shift(), -5.152245874123e-01, TOL));1418 ok(isequalRel(rets.shift(), 5.767990768391e+00, TOL));1419 rets = newtonnu(6.864105801929e-05, 6.010623465194e+00);1420 ok(isequalRel(rets.shift(), -2.725433644520e-01, TOL));1421 ok(isequalRel(rets.shift(), 6.010660419651e+00, TOL));1422 rets = newtonnu(7.161768038708e-05, 6.256278308620e+00);1423 ok(isequalRel(rets.shift(), -2.690507184454e-02, TOL));1424 ok(isequalRel(rets.shift(), 6.256282161981e+00, TOL));1425 rets = newtonnu(6.970674633954e-05, 2.190182011693e-01);1426 ok(isequalRel(rets.shift(), 2.190030564033e-01, TOL));1427 ok(isequalRel(rets.shift(), 2.189879121526e-01, TOL));1428 rets = newtonnu(6.304075253192e-05, 4.626913229175e-01);1429 ok(isequalRel(rets.shift(), 4.626631849629e-01, TOL));1430 ok(isequalRel(rets.shift(), 4.626350478021e-01, TOL));1431 // 288721432 rets = newtonnu(2.889098117477e-02, 2.349904176644e+00);1433 ok(isequalRel(rets.shift(), 2.329132639724e+00, TOL));1434 ok(isequalRel(rets.shift(), 2.308158331790e+00, TOL));1435 rets = newtonnu(2.937401546552e-02, 2.713880114471e+00);1436 ok(isequalRel(rets.shift(), 2.701528475405e+00, TOL));1437 ok(isequalRel(rets.shift(), 2.689015217385e+00, TOL));1438 rets = newtonnu(3.032088778104e-02, 3.052341460815e+00);1439 ok(isequalRel(rets.shift(), 3.049596802890e+00, TOL));1440 ok(isequalRel(rets.shift(), 3.046811339913e+00, TOL));1441 rets = newtonnu(3.090121129435e-02, 3.365074515700e+00);1442 ok(isequalRel(rets.shift(), -2.911155853618e+00, TOL));1443 ok(isequalRel(rets.shift(), 3.379087376721e+00, TOL));1444 rets = newtonnu(3.056806871265e-02, 3.674123865722e+00);1445 ok(isequalRel(rets.shift(), -2.593331067741e+00, TOL));1446 ok(isequalRel(rets.shift(), 3.705786451326e+00, TOL));1447 rets = newtonnu(2.949282059374e-02, 4.007195184999e+00);1448 ok(isequalRel(rets.shift(), -2.253311008563e+00, TOL));1449 ok(isequalRel(rets.shift(), 4.052760404378e+00, TOL));1450 rets = newtonnu(2.848177036626e-02, 4.378339757688e+00);1451 ok(isequalRel(rets.shift(), -1.877808093262e+00, TOL));1452 ok(isequalRel(rets.shift(), 4.432527202422e+00, TOL));1453 rets = newtonnu(2.828803260517e-02, 4.770266516375e+00);1454 ok(isequalRel(rets.shift(), -1.484697441886e+00, TOL));1455 ok(isequalRel(rets.shift(), 4.826671112807e+00, TOL));1456 rets = newtonnu(2.874720882759e-02, 5.148257147930e+00);1457 ok(isequalRel(rets.shift(), -1.109022019444e+00, TOL));1458 ok(isequalRel(rets.shift(), 5.199899611280e+00, TOL));1459 rets = newtonnu(2.890618727506e-02, 5.502142827149e+00);1460 ok(isequalRel(rets.shift(), -7.608952181292e-01, TOL));1461 ok(isequalRel(rets.shift(), 5.542222930208e+00, TOL));1462 // 291411463 rets = newtonnu(2.790767404911e-03, 3.251142425279e+00);1464 ok(isequalRel(rets.shift(), -3.031737340732e+00, TOL));1465 ok(isequalRel(rets.shift(), 3.251753930800e+00, TOL));1466 rets = newtonnu(9.673528490398e-04, 4.561928014795e+00);1467 ok(isequalRel(rets.shift(), -1.720300799107e+00, TOL));1468 ok(isequalRel(rets.shift(), 4.563841070107e+00, TOL));1469 rets = newtonnu(1.730502113280e-03, 4.292054198164e+00);1470 ok(isequalRel(rets.shift(), -1.989550684125e+00, TOL));1471 ok(isequalRel(rets.shift(), 4.295215603132e+00, TOL));1472 rets = newtonnu(6.565785196579e-04, 1.174505520790e+00);1473 ok(isequalRel(rets.shift(), 1.173899904405e+00, TOL));1474 ok(isequalRel(rets.shift(), 1.173294364920e+00, TOL));1475 rets = newtonnu(9.422310831730e-04, 3.281054437973e+00);1476 ok(isequalRel(rets.shift(), -3.001999828363e+00, TOL));1477 ok(isequalRel(rets.shift(), 3.281316580767e+00, TOL));1478 rets = newtonnu(2.144810920918e-03, 3.350101125732e+00);1479 ok(isequalRel(rets.shift(), -2.932639736833e+00, TOL));1480 ok(isequalRel(rets.shift(), 3.350990480714e+00, TOL));1481 rets = newtonnu(1.665931398776e-03, 4.948578992540e+00);1482 ok(isequalRel(rets.shift(), -1.332986950083e+00, TOL));1483 ok(isequalRel(rets.shift(), 4.951817403123e+00, TOL));1484 rets = newtonnu(9.875766192070e-04, 3.497936105017e+00);1485 ok(isequalRel(rets.shift(), -2.784904526737e+00, TOL));1486 ok(isequalRel(rets.shift(), 3.498625615272e+00, TOL));1487 rets = newtonnu(7.652547772083e-04, 5.136350963792e-01);1488 ok(isequalRel(rets.shift(), 5.132592163169e-01, TOL));1489 ok(isequalRel(rets.shift(), 5.128834615956e-01, TOL));1490 rets = newtonnu(2.756546056247e-03, 3.277422958907e+00);1491 ok(isequalRel(rets.shift(), -3.005388564923e+00, TOL));1492 ok(isequalRel(rets.shift(), 3.278171035304e+00, TOL));1493 rets = newtonnu(9.564899889534e-04, 4.818615885002e+00);1494 ok(isequalRel(rets.shift(), -1.463618371786e+00, TOL));1495 ok(isequalRel(rets.shift(), 4.820517936984e+00, TOL));1496 rets = newtonnu(1.591625695760e-03, 4.204475559285e+00);1497 ok(isequalRel(rets.shift(), -2.077318507940e+00, TOL));1498 ok(isequalRel(rets.shift(), 4.207258575667e+00, TOL));1499 rets = newtonnu(7.411286038596e-04, 1.071156580722e+00);1500 ok(isequalRel(rets.shift(), 1.070506166630e+00, TOL));1501 ok(isequalRel(rets.shift(), 1.069855868217e+00, TOL));1502 rets = newtonnu(1.256333636802e-03, 3.375274995895e+00);1503 ok(isequalRel(rets.shift(), -2.907619214981e+00, TOL));1504 ok(isequalRel(rets.shift(), 3.375857366264e+00, TOL));1505 rets = newtonnu(1.617052197068e-03, 3.441373946322e+00);1506 ok(isequalRel(rets.shift(), -2.841333457667e+00, TOL));1507 ok(isequalRel(rets.shift(), 3.442330121509e+00, TOL));1508 rets = newtonnu(1.608021315605e-03, 4.932554834367e+00);1509 ok(isequalRel(rets.shift(), -1.349061541930e+00, TOL));1510 ok(isequalRel(rets.shift(), 4.935692418022e+00, TOL));1511 rets = newtonnu(6.936464890584e-04, 2.967513492439e+00);1512 ok(isequalRel(rets.shift(), 2.967393310906e+00, TOL));1513 ok(isequalRel(rets.shift(), 2.967273088337e+00, TOL));1514 rets = newtonnu(3.737073375169e-04, 1.528744208093e-01);1515 ok(isequalRel(rets.shift(), 1.528175232903e-01, TOL));1516 ok(isequalRel(rets.shift(), 1.527606362809e-01, TOL));1517 rets = newtonnu(2.600353921139e-03, 3.269362202321e+00);1518 ok(isequalRel(rets.shift(), -3.013491333661e+00, TOL));1519 ok(isequalRel(rets.shift(), 3.270026171986e+00, TOL));1520 rets = newtonnu(1.475769388942e-03, 5.364426811137e+00);1521 ok(isequalRel(rets.shift(), -9.175860068807e-01, TOL));1522 ok(isequalRel(rets.shift(), 5.366771263164e+00, TOL));1523 rets = newtonnu(1.228058368261e-03, 3.595052659694e+00);1524 ok(isequalRel(rets.shift(), -2.687594364238e+00, TOL));1525 ok(isequalRel(rets.shift(), 3.596129523039e+00, TOL));1526 // *** error: t:= 440.000000 *** code = 61527 // 292381528 rets = newtonnu(2.085614589579e-02, 3.856684162202e-01);1529 ok(isequalRel(rets.shift(), 3.778970636090e-01, TOL));1530 ok(isequalRel(rets.shift(), 3.702018396986e-01, TOL));1531 rets = newtonnu(2.083554807806e-02, 2.353467440563e+00);1532 ok(isequalRel(rets.shift(), 2.338583676235e+00, TOL));1533 ok(isequalRel(rets.shift(), 2.323593557526e+00, TOL));1534 rets = newtonnu(2.052397602446e-02, 4.258859852930e+00);1535 ok(isequalRel(rets.shift(), -2.005791564012e+00, TOL));1536 ok(isequalRel(rets.shift(), 4.296006363366e+00, TOL));1537 rets = newtonnu(2.032137735504e-02, 6.229835386726e+00);1538 ok(isequalRel(rets.shift(), -5.227706556589e-02, TOL));1539 ok(isequalRel(rets.shift(), 6.231970099779e+00, TOL));1540 rets = newtonnu(2.049475083034e-02, 1.928906360214e+00);1541 ok(isequalRel(rets.shift(), 1.909641151699e+00, TOL));1542 ok(isequalRel(rets.shift(), 1.890311747313e+00, TOL));1543 rets = newtonnu(2.054653257801e-02, 3.837856027087e+00);1544 ok(isequalRel(rets.shift(), -2.432045742682e+00, TOL));1545 ok(isequalRel(rets.shift(), 3.864525427033e+00, TOL));1546 rets = newtonnu(2.049969994571e-02, 5.795730699433e+00);1547 ok(isequalRel(rets.shift(), -4.779382424385e-01, TOL));1548 ok(isequalRel(rets.shift(), 5.814675889982e+00, TOL));1549 rets = newtonnu(2.075906782496e-02, 1.512897595518e+00);1550 ok(isequalRel(rets.shift(), 1.492184263057e+00, TOL));1551 ok(isequalRel(rets.shift(), 1.471489306236e+00, TOL));1552 rets = newtonnu(2.098690457849e-02, 3.446394713721e+00);1553 ok(isequalRel(rets.shift(), -2.830427963887e+00, TOL));1554 ok(isequalRel(rets.shift(), 3.459182853549e+00, TOL));1555 rets = newtonnu(2.095331036873e-02, 5.400295422210e+00);1556 ok(isequalRel(rets.shift(), -8.668074020880e-01, TOL));1557 ok(isequalRel(rets.shift(), 5.432349908996e+00, TOL));1558 rets = newtonnu(2.111864606986e-02, 1.128396722726e+00);1559 ok(isequalRel(rets.shift(), 1.109395583500e+00, TOL));1560 ok(isequalRel(rets.shift(), 1.090485319290e+00, TOL));1561 rets = newtonnu(2.122432630575e-02, 3.087220305974e+00);1562 ok(isequalRel(rets.shift(), 3.086054372070e+00, TOL));1563 ok(isequalRel(rets.shift(), 3.084876215350e+00, TOL));1564 // 888881565 rets = newtonnu(1.052092807260e-02, 3.847874084449e+00);1566 ok(isequalRel(rets.shift(), -2.428455442886e+00, TOL));1567 ok(isequalRel(rets.shift(), 3.861612757496e+00, TOL));1568 rets = newtonnu(9.052250412713e-03, 6.046148101654e+00);1569 ok(isequalRel(rets.shift(), -2.349207912162e-01, TOL));1570 ok(isequalRel(rets.shift(), 6.050371571658e+00, TOL));1571 rets = newtonnu(9.521189153082e-03, 1.914091192733e+00);1572 ok(isequalRel(rets.shift(), 1.905111024903e+00, TOL));1573 ok(isequalRel(rets.shift(), 1.896116972636e+00, TOL));1574 rets = newtonnu(1.028277032065e-02, 3.931537311526e+00);1575 ok(isequalRel(rets.shift(), -2.344317306241e+00, TOL));1576 ok(isequalRel(rets.shift(), 3.946224861887e+00, TOL));1577 rets = newtonnu(8.796150676142e-03, 6.142192224381e+00);1578 ok(isequalRel(rets.shift(), -1.397623268963e-01, TOL));1579 ok(isequalRel(rets.shift(), 6.144648352357e+00, TOL));1580 rets = newtonnu(9.370681122593e-03, 2.002708132273e+00);1581 ok(isequalRel(rets.shift(), 1.994181128036e+00, TOL));1582 ok(isequalRel(rets.shift(), 1.985637845032e+00, TOL));1583 rets = newtonnu(1.003138852591e-02, 4.020955344172e+00);1584 ok(isequalRel(rets.shift(), -2.254477506419e+00, TOL));1585 ok(isequalRel(rets.shift(), 4.036484662356e+00, TOL));1586 rets = newtonnu(8.547559047484e-03, 6.245283000327e+00);1587 ok(isequalRel(rets.shift(), -3.757978372458e-02, TOL));1588 ok(isequalRel(rets.shift(), 6.245926663275e+00, TOL));1589 rets = newtonnu(9.228920995253e-03, 2.096871623755e+00);1590 ok(isequalRel(rets.shift(), 2.088871932006e+00, TOL));1591 ok(isequalRel(rets.shift(), 2.080854087559e+00, TOL));1592 rets = newtonnu(9.779525182704e-03, 4.116685011800e+00);1593 ok(isequalRel(rets.shift(), -2.158382836358e+00, TOL));1594 ok(isequalRel(rets.shift(), 4.132941784111e+00, TOL));1595 rets = newtonnu(8.322461617424e-03, 7.247449604514e-02);1596 ok(isequalRel(rets.shift(), 7.187433818701e-02, TOL));1597 ok(isequalRel(rets.shift(), 7.127668165083e-02, TOL));1598 rets = newtonnu(9.108405326374e-03, 2.196448877477e+00);1599 ok(isequalRel(rets.shift(), 2.189045911904e+00, TOL));1600 ok(isequalRel(rets.shift(), 2.181623524669e+00, TOL));...

Full Screen

Full Screen

objects.js

Source:objects.js Github

copy

Full Screen

...21 });22 test("invert", function() {23 var obj = {first: 'Moe', second: 'Larry', third: 'Curly'};24 equal(_.keys(_.invert(obj)).join(' '), 'Moe Larry Curly', 'can invert an object');25 ok(_.isEqual(_.invert(_.invert(obj)), obj), 'two inverts gets you back where you started');26 var obj = {length: 3};27 ok(_.invert(obj)['3'] == 'length', 'can invert an object with "length"')28 });29 test("functions", function() {30 var obj = {a : 'dash', b : _.map, c : (/yo/), d : _.reduce};31 ok(_.isEqual(['b', 'd'], _.functions(obj)), 'can grab the function names of any passed-in object');32 var Animal = function(){};33 Animal.prototype.run = function(){};34 equal(_.functions(new Animal).join(''), 'run', 'also looks up functions on the prototype');35 });36 test("extend", function() {37 var result;38 equal(_.extend({}, {a:'b'}).a, 'b', 'can extend an object with the attributes of another');39 equal(_.extend({a:'x'}, {a:'b'}).a, 'b', 'properties in source override destination');40 equal(_.extend({x:'x'}, {a:'b'}).x, 'x', "properties not in source don't get overriden");41 result = _.extend({x:'x'}, {a:'a'}, {b:'b'});42 ok(_.isEqual(result, {x:'x', a:'a', b:'b'}), 'can extend from multiple source objects');43 result = _.extend({x:'x'}, {a:'a', x:2}, {a:'b'});44 ok(_.isEqual(result, {x:2, a:'b'}), 'extending from multiple source objects last property trumps');45 result = _.extend({}, {a: void 0, b: null});46 equal(_.keys(result).join(''), 'ab', 'extend copies undefined values');47 try {48 result = {};49 _.extend(result, null, undefined, {a:1});50 } catch(ex) {}51 equal(result.a, 1, 'should not error on `null` or `undefined` sources');52 });53 test("pick", function() {54 var result;55 result = _.pick({a:1, b:2, c:3}, 'a', 'c');56 ok(_.isEqual(result, {a:1, c:3}), 'can restrict properties to those named');57 result = _.pick({a:1, b:2, c:3}, ['b', 'c']);58 ok(_.isEqual(result, {b:2, c:3}), 'can restrict properties to those named in an array');59 result = _.pick({a:1, b:2, c:3}, ['a'], 'b');60 ok(_.isEqual(result, {a:1, b:2}), 'can restrict properties to those named in mixed args');61 var Obj = function(){};62 Obj.prototype = {a: 1, b: 2, c: 3};63 ok(_.isEqual(_.pick(new Obj, 'a', 'c'), {a:1, c: 3}), 'include prototype props');64 });65 test("omit", function() {66 var result;67 result = _.omit({a:1, b:2, c:3}, 'b');68 ok(_.isEqual(result, {a:1, c:3}), 'can omit a single named property');69 result = _.omit({a:1, b:2, c:3}, 'a', 'c');70 ok(_.isEqual(result, {b:2}), 'can omit several named properties');71 result = _.omit({a:1, b:2, c:3}, ['b', 'c']);72 ok(_.isEqual(result, {a:1}), 'can omit properties named in an array');73 var Obj = function(){};74 Obj.prototype = {a: 1, b: 2, c: 3};75 ok(_.isEqual(_.omit(new Obj, 'b'), {a:1, c: 3}), 'include prototype props');76 });77 test("defaults", function() {78 var result;79 var options = {zero: 0, one: 1, empty: "", nan: NaN, nothing: null};80 _.defaults(options, {zero: 1, one: 10, twenty: 20, nothing: 'str'});81 equal(options.zero, 0, 'value exists');82 equal(options.one, 1, 'value exists');83 equal(options.twenty, 20, 'default applied');84 equal(options.nothing, null, "null isn't overridden");85 _.defaults(options, {empty: "full"}, {nan: "nan"}, {word: "word"}, {word: "dog"});86 equal(options.empty, "", 'value exists');87 ok(_.isNaN(options.nan), "NaN isn't overridden");88 equal(options.word, "word", 'new value is added, first one wins');89 try {90 options = {};91 _.defaults(options, null, undefined, {a:1});92 } catch(ex) {}93 equal(options.a, 1, 'should not error on `null` or `undefined` sources');94 });95 test("clone", function() {96 var moe = {name : 'moe', lucky : [13, 27, 34]};97 var clone = _.clone(moe);98 equal(clone.name, 'moe', 'the clone as the attributes of the original');99 clone.name = 'curly';100 ok(clone.name == 'curly' && moe.name == 'moe', 'clones can change shallow attributes without affecting the original');101 clone.lucky.push(101);102 equal(_.last(moe.lucky), 101, 'changes to deep attributes are shared with the original');103 equal(_.clone(undefined), void 0, 'non objects should not be changed by clone');104 equal(_.clone(1), 1, 'non objects should not be changed by clone');105 equal(_.clone(null), null, 'non objects should not be changed by clone');106 });107 test("isEqual", function() {108 function First() {109 this.value = 1;110 }111 First.prototype.value = 1;112 function Second() {113 this.value = 1;114 }115 Second.prototype.value = 2;116 // Basic equality and identity comparisons.117 ok(_.isEqual(null, null), "`null` is equal to `null`");118 ok(_.isEqual(), "`undefined` is equal to `undefined`");119 ok(!_.isEqual(0, -0), "`0` is not equal to `-0`");120 ok(!_.isEqual(-0, 0), "Commutative equality is implemented for `0` and `-0`");121 ok(!_.isEqual(null, undefined), "`null` is not equal to `undefined`");122 ok(!_.isEqual(undefined, null), "Commutative equality is implemented for `null` and `undefined`");123 // String object and primitive comparisons.124 ok(_.isEqual("Curly", "Curly"), "Identical string primitives are equal");125 ok(_.isEqual(new String("Curly"), new String("Curly")), "String objects with identical primitive values are equal");126 ok(_.isEqual(new String("Curly"), "Curly"), "String primitives and their corresponding object wrappers are equal");127 ok(_.isEqual("Curly", new String("Curly")), "Commutative equality is implemented for string objects and primitives");128 ok(!_.isEqual("Curly", "Larry"), "String primitives with different values are not equal");129 ok(!_.isEqual(new String("Curly"), new String("Larry")), "String objects with different primitive values are not equal");130 ok(!_.isEqual(new String("Curly"), {toString: function(){ return "Curly"; }}), "String objects and objects with a custom `toString` method are not equal");131 // Number object and primitive comparisons.132 ok(_.isEqual(75, 75), "Identical number primitives are equal");133 ok(_.isEqual(new Number(75), new Number(75)), "Number objects with identical primitive values are equal");134 ok(_.isEqual(75, new Number(75)), "Number primitives and their corresponding object wrappers are equal");135 ok(_.isEqual(new Number(75), 75), "Commutative equality is implemented for number objects and primitives");136 ok(!_.isEqual(new Number(0), -0), "`new Number(0)` and `-0` are not equal");137 ok(!_.isEqual(0, new Number(-0)), "Commutative equality is implemented for `new Number(0)` and `-0`");138 ok(!_.isEqual(new Number(75), new Number(63)), "Number objects with different primitive values are not equal");139 ok(!_.isEqual(new Number(63), {valueOf: function(){ return 63; }}), "Number objects and objects with a `valueOf` method are not equal");140 // Comparisons involving `NaN`.141 ok(_.isEqual(NaN, NaN), "`NaN` is equal to `NaN`");142 ok(!_.isEqual(61, NaN), "A number primitive is not equal to `NaN`");143 ok(!_.isEqual(new Number(79), NaN), "A number object is not equal to `NaN`");144 ok(!_.isEqual(Infinity, NaN), "`Infinity` is not equal to `NaN`");145 // Boolean object and primitive comparisons.146 ok(_.isEqual(true, true), "Identical boolean primitives are equal");147 ok(_.isEqual(new Boolean, new Boolean), "Boolean objects with identical primitive values are equal");148 ok(_.isEqual(true, new Boolean(true)), "Boolean primitives and their corresponding object wrappers are equal");149 ok(_.isEqual(new Boolean(true), true), "Commutative equality is implemented for booleans");150 ok(!_.isEqual(new Boolean(true), new Boolean), "Boolean objects with different primitive values are not equal");151 // Common type coercions.152 ok(!_.isEqual(true, new Boolean(false)), "Boolean objects are not equal to the boolean primitive `true`");153 ok(!_.isEqual("75", 75), "String and number primitives with like values are not equal");154 ok(!_.isEqual(new Number(63), new String(63)), "String and number objects with like values are not equal");155 ok(!_.isEqual(75, "75"), "Commutative equality is implemented for like string and number values");156 ok(!_.isEqual(0, ""), "Number and string primitives with like values are not equal");157 ok(!_.isEqual(1, true), "Number and boolean primitives with like values are not equal");158 ok(!_.isEqual(new Boolean(false), new Number(0)), "Boolean and number objects with like values are not equal");159 ok(!_.isEqual(false, new String("")), "Boolean primitives and string objects with like values are not equal");160 ok(!_.isEqual(12564504e5, new Date(2009, 9, 25)), "Dates and their corresponding numeric primitive values are not equal");161 // Dates.162 ok(_.isEqual(new Date(2009, 9, 25), new Date(2009, 9, 25)), "Date objects referencing identical times are equal");163 ok(!_.isEqual(new Date(2009, 9, 25), new Date(2009, 11, 13)), "Date objects referencing different times are not equal");164 ok(!_.isEqual(new Date(2009, 11, 13), {165 getTime: function(){166 return 12606876e5;167 }168 }), "Date objects and objects with a `getTime` method are not equal");169 ok(!_.isEqual(new Date("Curly"), new Date("Curly")), "Invalid dates are not equal");170 // Functions.171 ok(!_.isEqual(First, Second), "Different functions with identical bodies and source code representations are not equal");172 // RegExps.173 ok(_.isEqual(/(?:)/gim, /(?:)/gim), "RegExps with equivalent patterns and flags are equal");174 ok(!_.isEqual(/(?:)/g, /(?:)/gi), "RegExps with equivalent patterns and different flags are not equal");175 ok(!_.isEqual(/Moe/gim, /Curly/gim), "RegExps with different patterns and equivalent flags are not equal");176 ok(!_.isEqual(/(?:)/gi, /(?:)/g), "Commutative equality is implemented for RegExps");177 ok(!_.isEqual(/Curly/g, {source: "Larry", global: true, ignoreCase: false, multiline: false}), "RegExps and RegExp-like objects are not equal");178 // Empty arrays, array-like objects, and object literals.179 ok(_.isEqual({}, {}), "Empty object literals are equal");180 ok(_.isEqual([], []), "Empty array literals are equal");181 ok(_.isEqual([{}], [{}]), "Empty nested arrays and objects are equal");182 ok(!_.isEqual({length: 0}, []), "Array-like objects and arrays are not equal.");183 ok(!_.isEqual([], {length: 0}), "Commutative equality is implemented for array-like objects");184 ok(!_.isEqual({}, []), "Object literals and array literals are not equal");185 ok(!_.isEqual([], {}), "Commutative equality is implemented for objects and arrays");186 // Arrays with primitive and object values.187 ok(_.isEqual([1, "Larry", true], [1, "Larry", true]), "Arrays containing identical primitives are equal");188 ok(_.isEqual([(/Moe/g), new Date(2009, 9, 25)], [(/Moe/g), new Date(2009, 9, 25)]), "Arrays containing equivalent elements are equal");189 // Multi-dimensional arrays.190 var a = [new Number(47), false, "Larry", /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];191 var b = [new Number(47), false, "Larry", /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];192 ok(_.isEqual(a, b), "Arrays containing nested arrays and objects are recursively compared");193 // Overwrite the methods defined in ES 5.1 section 15.4.4.194 a.forEach = a.map = a.filter = a.every = a.indexOf = a.lastIndexOf = a.some = a.reduce = a.reduceRight = null;195 b.join = b.pop = b.reverse = b.shift = b.slice = b.splice = b.concat = b.sort = b.unshift = null;196 // Array elements and properties.197 ok(_.isEqual(a, b), "Arrays containing equivalent elements and different non-numeric properties are equal");198 a.push("White Rocks");199 ok(!_.isEqual(a, b), "Arrays of different lengths are not equal");200 a.push("East Boulder");201 b.push("Gunbarrel Ranch", "Teller Farm");202 ok(!_.isEqual(a, b), "Arrays of identical lengths containing different elements are not equal");203 // Sparse arrays.204 ok(_.isEqual(Array(3), Array(3)), "Sparse arrays of identical lengths are equal");205 ok(!_.isEqual(Array(3), Array(6)), "Sparse arrays of different lengths are not equal when both are empty");206 // Simple objects.207 ok(_.isEqual({a: "Curly", b: 1, c: true}, {a: "Curly", b: 1, c: true}), "Objects containing identical primitives are equal");208 ok(_.isEqual({a: /Curly/g, b: new Date(2009, 11, 13)}, {a: /Curly/g, b: new Date(2009, 11, 13)}), "Objects containing equivalent members are equal");209 ok(!_.isEqual({a: 63, b: 75}, {a: 61, b: 55}), "Objects of identical sizes with different values are not equal");210 ok(!_.isEqual({a: 63, b: 75}, {a: 61, c: 55}), "Objects of identical sizes with different property names are not equal");211 ok(!_.isEqual({a: 1, b: 2}, {a: 1}), "Objects of different sizes are not equal");212 ok(!_.isEqual({a: 1}, {a: 1, b: 2}), "Commutative equality is implemented for objects");213 ok(!_.isEqual({x: 1, y: undefined}, {x: 1, z: 2}), "Objects with identical keys and different values are not equivalent");214 // `A` contains nested objects and arrays.215 a = {216 name: new String("Moe Howard"),217 age: new Number(77),218 stooge: true,219 hobbies: ["acting"],220 film: {221 name: "Sing a Song of Six Pants",222 release: new Date(1947, 9, 30),223 stars: [new String("Larry Fine"), "Shemp Howard"],224 minutes: new Number(16),225 seconds: 54226 }227 };228 // `B` contains equivalent nested objects and arrays.229 b = {230 name: new String("Moe Howard"),231 age: new Number(77),232 stooge: true,233 hobbies: ["acting"],234 film: {235 name: "Sing a Song of Six Pants",236 release: new Date(1947, 9, 30),237 stars: [new String("Larry Fine"), "Shemp Howard"],238 minutes: new Number(16),239 seconds: 54240 }241 };242 ok(_.isEqual(a, b), "Objects with nested equivalent members are recursively compared");243 // Instances.244 ok(_.isEqual(new First, new First), "Object instances are equal");245 ok(!_.isEqual(new First, new Second), "Objects with different constructors and identical own properties are not equal");246 ok(!_.isEqual({value: 1}, new First), "Object instances and objects sharing equivalent properties are not equal");247 ok(!_.isEqual({value: 2}, new Second), "The prototype chain of objects should not be examined");248 // Circular Arrays.249 (a = []).push(a);250 (b = []).push(b);251 ok(_.isEqual(a, b), "Arrays containing circular references are equal");252 a.push(new String("Larry"));253 b.push(new String("Larry"));254 ok(_.isEqual(a, b), "Arrays containing circular references and equivalent properties are equal");255 a.push("Shemp");256 b.push("Curly");257 ok(!_.isEqual(a, b), "Arrays containing circular references and different properties are not equal");258 // More circular arrays #767.259 a = ["everything is checked but", "this", "is not"];260 a[1] = a;261 b = ["everything is checked but", ["this", "array"], "is not"];262 ok(!_.isEqual(a, b), "Comparison of circular references with non-circular references are not equal");263 // Circular Objects.264 a = {abc: null};265 b = {abc: null};266 a.abc = a;267 b.abc = b;268 ok(_.isEqual(a, b), "Objects containing circular references are equal");269 a.def = 75;270 b.def = 75;271 ok(_.isEqual(a, b), "Objects containing circular references and equivalent properties are equal");272 a.def = new Number(75);273 b.def = new Number(63);274 ok(!_.isEqual(a, b), "Objects containing circular references and different properties are not equal");275 // More circular objects #767.276 a = {everything: "is checked", but: "this", is: "not"};277 a.but = a;278 b = {everything: "is checked", but: {that:"object"}, is: "not"};279 ok(!_.isEqual(a, b), "Comparison of circular references with non-circular object references are not equal");280 // Cyclic Structures.281 a = [{abc: null}];282 b = [{abc: null}];283 (a[0].abc = a).push(a);284 (b[0].abc = b).push(b);285 ok(_.isEqual(a, b), "Cyclic structures are equal");286 a[0].def = "Larry";287 b[0].def = "Larry";288 ok(_.isEqual(a, b), "Cyclic structures containing equivalent properties are equal");289 a[0].def = new String("Larry");290 b[0].def = new String("Curly");291 ok(!_.isEqual(a, b), "Cyclic structures containing different properties are not equal");292 // Complex Circular References.293 a = {foo: {b: {foo: {c: {foo: null}}}}};294 b = {foo: {b: {foo: {c: {foo: null}}}}};295 a.foo.b.foo.c.foo = a;296 b.foo.b.foo.c.foo = b;297 ok(_.isEqual(a, b), "Cyclic structures with nested and identically-named properties are equal");298 // Chaining.299 ok(!_.isEqual(_({x: 1, y: undefined}).chain(), _({x: 1, z: 2}).chain()), 'Chained objects containing different values are not equal');300 a = _({x: 1, y: 2}).chain();301 b = _({x: 1, y: 2}).chain();302 equal(_.isEqual(a.isEqual(b), _(true)), true, '`isEqual` can be chained');303 // Objects from another frame.304 ok(_.isEqual({}, iObject));305 });306 test("isEmpty", function() {307 ok(!_([1]).isEmpty(), '[1] is not empty');308 ok(_.isEmpty([]), '[] is empty');309 ok(!_.isEmpty({one : 1}), '{one : 1} is not empty');310 ok(_.isEmpty({}), '{} is empty');311 ok(_.isEmpty(new RegExp('')), 'objects with prototype properties are empty');312 ok(_.isEmpty(null), 'null is empty');313 ok(_.isEmpty(), 'undefined is empty');314 ok(_.isEmpty(''), 'the empty string is empty');315 ok(!_.isEmpty('moe'), 'but other strings are not');316 var obj = {one : 1};317 delete obj.one;318 ok(_.isEmpty(obj), 'deleting all the keys from an object empties it');...

Full Screen

Full Screen

isEqual.js

Source:isEqual.js Github

copy

Full Screen

...32 var expected = lodashStable.map(pairs, function(pair) {33 return pair[2];34 });35 var actual = lodashStable.map(pairs, function(pair) {36 return isEqual(pair[0], pair[1]);37 });38 assert.deepStrictEqual(actual, expected);39 });40 it('should compare arrays', function() {41 var array1 = [true, null, 1, 'a', undefined],42 array2 = [true, null, 1, 'a', undefined];43 assert.strictEqual(isEqual(array1, array2), true);44 array1 = [[1, 2, 3], new Date(2012, 4, 23), /x/, { 'e': 1 }];45 array2 = [[1, 2, 3], new Date(2012, 4, 23), /x/, { 'e': 1 }];46 assert.strictEqual(isEqual(array1, array2), true);47 array1 = [1];48 array1[2] = 3;49 array2 = [1];50 array2[1] = undefined;51 array2[2] = 3;52 assert.strictEqual(isEqual(array1, array2), true);53 array1 = [Object(1), false, Object('a'), /x/, new Date(2012, 4, 23), ['a', 'b', [Object('c')]], { 'a': 1 }];54 array2 = [1, Object(false), 'a', /x/, new Date(2012, 4, 23), ['a', Object('b'), ['c']], { 'a': 1 }];55 assert.strictEqual(isEqual(array1, array2), true);56 array1 = [1, 2, 3];57 array2 = [3, 2, 1];58 assert.strictEqual(isEqual(array1, array2), false);59 array1 = [1, 2];60 array2 = [1, 2, 3];61 assert.strictEqual(isEqual(array1, array2), false);62 });63 it('should treat arrays with identical values but different non-index properties as equal', function() {64 var array1 = [1, 2, 3],65 array2 = [1, 2, 3];66 array1.every = array1.filter = array1.forEach =67 array1.indexOf = array1.lastIndexOf = array1.map =68 array1.some = array1.reduce = array1.reduceRight = null;69 array2.concat = array2.join = array2.pop =70 array2.reverse = array2.shift = array2.slice =71 array2.sort = array2.splice = array2.unshift = null;72 assert.strictEqual(isEqual(array1, array2), true);73 array1 = [1, 2, 3];74 array1.a = 1;75 array2 = [1, 2, 3];76 array2.b = 1;77 assert.strictEqual(isEqual(array1, array2), true);78 array1 = /c/.exec('abcde');79 array2 = ['c'];80 assert.strictEqual(isEqual(array1, array2), true);81 });82 it('should compare sparse arrays', function() {83 var array = Array(1);84 assert.strictEqual(isEqual(array, Array(1)), true);85 assert.strictEqual(isEqual(array, [undefined]), true);86 assert.strictEqual(isEqual(array, Array(2)), false);87 });88 it('should compare plain objects', function() {89 var object1 = { 'a': true, 'b': null, 'c': 1, 'd': 'a', 'e': undefined },90 object2 = { 'a': true, 'b': null, 'c': 1, 'd': 'a', 'e': undefined };91 assert.strictEqual(isEqual(object1, object2), true);92 object1 = { 'a': [1, 2, 3], 'b': new Date(2012, 4, 23), 'c': /x/, 'd': { 'e': 1 } };93 object2 = { 'a': [1, 2, 3], 'b': new Date(2012, 4, 23), 'c': /x/, 'd': { 'e': 1 } };94 assert.strictEqual(isEqual(object1, object2), true);95 object1 = { 'a': 1, 'b': 2, 'c': 3 };96 object2 = { 'a': 3, 'b': 2, 'c': 1 };97 assert.strictEqual(isEqual(object1, object2), false);98 object1 = { 'a': 1, 'b': 2, 'c': 3 };99 object2 = { 'd': 1, 'e': 2, 'f': 3 };100 assert.strictEqual(isEqual(object1, object2), false);101 object1 = { 'a': 1, 'b': 2 };102 object2 = { 'a': 1, 'b': 2, 'c': 3 };103 assert.strictEqual(isEqual(object1, object2), false);104 });105 it('should compare objects regardless of key order', function() {106 var object1 = { 'a': 1, 'b': 2, 'c': 3 },107 object2 = { 'c': 3, 'a': 1, 'b': 2 };108 assert.strictEqual(isEqual(object1, object2), true);109 });110 it('should compare nested objects', function() {111 var object1 = {112 'a': [1, 2, 3],113 'b': true,114 'c': Object(1),115 'd': 'a',116 'e': {117 'f': ['a', Object('b'), 'c'],118 'g': Object(false),119 'h': new Date(2012, 4, 23),120 'i': noop,121 'j': 'a'122 }123 };124 var object2 = {125 'a': [1, Object(2), 3],126 'b': Object(true),127 'c': 1,128 'd': Object('a'),129 'e': {130 'f': ['a', 'b', 'c'],131 'g': false,132 'h': new Date(2012, 4, 23),133 'i': noop,134 'j': 'a'135 }136 };137 assert.strictEqual(isEqual(object1, object2), true);138 });139 it('should compare object instances', function() {140 function Foo() {141 this.a = 1;142 }143 Foo.prototype.a = 1;144 function Bar() {145 this.a = 1;146 }147 Bar.prototype.a = 2;148 assert.strictEqual(isEqual(new Foo, new Foo), true);149 assert.strictEqual(isEqual(new Foo, new Bar), false);150 assert.strictEqual(isEqual({ 'a': 1 }, new Foo), false);151 assert.strictEqual(isEqual({ 'a': 2 }, new Bar), false);152 });153 it('should compare objects with constructor properties', function() {154 assert.strictEqual(isEqual({ 'constructor': 1 }, { 'constructor': 1 }), true);155 assert.strictEqual(isEqual({ 'constructor': 1 }, { 'constructor': '1' }), false);156 assert.strictEqual(isEqual({ 'constructor': [1] }, { 'constructor': [1] }), true);157 assert.strictEqual(isEqual({ 'constructor': [1] }, { 'constructor': ['1'] }), false);158 assert.strictEqual(isEqual({ 'constructor': Object }, {}), false);159 });160 it('should compare arrays with circular references', function() {161 var array1 = [],162 array2 = [];163 array1.push(array1);164 array2.push(array2);165 assert.strictEqual(isEqual(array1, array2), true);166 array1.push('b');167 array2.push('b');168 assert.strictEqual(isEqual(array1, array2), true);169 array1.push('c');170 array2.push('d');171 assert.strictEqual(isEqual(array1, array2), false);172 array1 = ['a', 'b', 'c'];173 array1[1] = array1;174 array2 = ['a', ['a', 'b', 'c'], 'c'];175 assert.strictEqual(isEqual(array1, array2), false);176 });177 it('should have transitive equivalence for circular references of arrays', function() {178 var array1 = [],179 array2 = [array1],180 array3 = [array2];181 array1[0] = array1;182 assert.strictEqual(isEqual(array1, array2), true);183 assert.strictEqual(isEqual(array2, array3), true);184 assert.strictEqual(isEqual(array1, array3), true);185 });186 it('should compare objects with circular references', function() {187 var object1 = {},188 object2 = {};189 object1.a = object1;190 object2.a = object2;191 assert.strictEqual(isEqual(object1, object2), true);192 object1.b = 0;193 object2.b = Object(0);194 assert.strictEqual(isEqual(object1, object2), true);195 object1.c = Object(1);196 object2.c = Object(2);197 assert.strictEqual(isEqual(object1, object2), false);198 object1 = { 'a': 1, 'b': 2, 'c': 3 };199 object1.b = object1;200 object2 = { 'a': 1, 'b': { 'a': 1, 'b': 2, 'c': 3 }, 'c': 3 };201 assert.strictEqual(isEqual(object1, object2), false);202 });203 it('should have transitive equivalence for circular references of objects', function() {204 var object1 = {},205 object2 = { 'a': object1 },206 object3 = { 'a': object2 };207 object1.a = object1;208 assert.strictEqual(isEqual(object1, object2), true);209 assert.strictEqual(isEqual(object2, object3), true);210 assert.strictEqual(isEqual(object1, object3), true);211 });212 it('should compare objects with multiple circular references', function() {213 var array1 = [{}],214 array2 = [{}];215 (array1[0].a = array1).push(array1);216 (array2[0].a = array2).push(array2);217 assert.strictEqual(isEqual(array1, array2), true);218 array1[0].b = 0;219 array2[0].b = Object(0);220 assert.strictEqual(isEqual(array1, array2), true);221 array1[0].c = Object(1);222 array2[0].c = Object(2);223 assert.strictEqual(isEqual(array1, array2), false);224 });225 it('should compare objects with complex circular references', function() {226 var object1 = {227 'foo': { 'b': { 'c': { 'd': {} } } },228 'bar': { 'a': 2 }229 };230 var object2 = {231 'foo': { 'b': { 'c': { 'd': {} } } },232 'bar': { 'a': 2 }233 };234 object1.foo.b.c.d = object1;235 object1.bar.b = object1.foo.b;236 object2.foo.b.c.d = object2;237 object2.bar.b = object2.foo.b;238 assert.strictEqual(isEqual(object1, object2), true);239 });240 it('should compare objects with shared property values', function() {241 var object1 = {242 'a': [1, 2]243 };244 var object2 = {245 'a': [1, 2],246 'b': [1, 2]247 };248 object1.b = object1.a;249 assert.strictEqual(isEqual(object1, object2), true);250 });251 it('should treat objects created by `Object.create(null)` like plain objects', function() {252 function Foo() {253 this.a = 1;254 }255 Foo.prototype.constructor = null;256 var object1 = create(null);257 object1.a = 1;258 var object2 = { 'a': 1 };259 assert.strictEqual(isEqual(object1, object2), true);260 assert.strictEqual(isEqual(new Foo, object2), false);261 });262 it('should avoid common type coercions', function() {263 assert.strictEqual(isEqual(true, Object(false)), false);264 assert.strictEqual(isEqual(Object(false), Object(0)), false);265 assert.strictEqual(isEqual(false, Object('')), false);266 assert.strictEqual(isEqual(Object(36), Object('36')), false);267 assert.strictEqual(isEqual(0, ''), false);268 assert.strictEqual(isEqual(1, true), false);269 assert.strictEqual(isEqual(1337756400000, new Date(2012, 4, 23)), false);270 assert.strictEqual(isEqual('36', 36), false);271 assert.strictEqual(isEqual(36, '36'), false);272 });273 it('should compare `arguments` objects', function() {274 var args1 = (function() { return arguments; }()),275 args2 = (function() { return arguments; }()),276 args3 = (function() { return arguments; }(1, 2));277 assert.strictEqual(isEqual(args1, args2), true);278 assert.strictEqual(isEqual(args1, args3), false);279 });280 it('should treat `arguments` objects like `Object` objects', function() {281 var object = { '0': 1, '1': 2, '2': 3 };282 function Foo() {}283 Foo.prototype = object;284 assert.strictEqual(isEqual(args, object), true);285 assert.strictEqual(isEqual(object, args), true);286 assert.strictEqual(isEqual(args, new Foo), false);287 assert.strictEqual(isEqual(new Foo, args), false);288 });289 it('should compare array buffers', function() {290 if (ArrayBuffer) {291 var buffer = new Int8Array([-1]).buffer;292 assert.strictEqual(isEqual(buffer, new Uint8Array([255]).buffer), true);293 assert.strictEqual(isEqual(buffer, new ArrayBuffer(1)), false);294 }295 });296 it('should compare array views', function() {297 lodashStable.times(2, function(index) {298 var ns = index ? realm : root;299 var pairs = lodashStable.map(arrayViews, function(type, viewIndex) {300 var otherType = arrayViews[(viewIndex + 1) % arrayViews.length],301 CtorA = ns[type] || function(n) { this.n = n; },302 CtorB = ns[otherType] || function(n) { this.n = n; },303 bufferA = ns[type] ? new ns.ArrayBuffer(8) : 8,304 bufferB = ns[otherType] ? new ns.ArrayBuffer(8) : 8,305 bufferC = ns[otherType] ? new ns.ArrayBuffer(16) : 16;306 return [new CtorA(bufferA), new CtorA(bufferA), new CtorB(bufferB), new CtorB(bufferC)];307 });308 var expected = lodashStable.map(pairs, lodashStable.constant([true, false, false]));309 var actual = lodashStable.map(pairs, function(pair) {310 return [isEqual(pair[0], pair[1]), isEqual(pair[0], pair[2]), isEqual(pair[2], pair[3])];311 });312 assert.deepStrictEqual(actual, expected);313 });314 });315 it('should compare buffers', function() {316 if (Buffer) {317 var buffer = new Buffer([1]);318 assert.strictEqual(isEqual(buffer, new Buffer([1])), true);319 assert.strictEqual(isEqual(buffer, new Buffer([2])), false);320 assert.strictEqual(isEqual(buffer, new Uint8Array([1])), false);321 }322 });323 it('should compare date objects', function() {324 var date = new Date(2012, 4, 23);325 assert.strictEqual(isEqual(date, new Date(2012, 4, 23)), true);326 assert.strictEqual(isEqual(new Date('a'), new Date('b')), true);327 assert.strictEqual(isEqual(date, new Date(2013, 3, 25)), false);328 assert.strictEqual(isEqual(date, { 'getTime': lodashStable.constant(+date) }), false);329 });330 it('should compare error objects', function() {331 var pairs = lodashStable.map([332 'Error',333 'EvalError',334 'RangeError',335 'ReferenceError',336 'SyntaxError',337 'TypeError',338 'URIError'339 ], function(type, index, errorTypes) {340 var otherType = errorTypes[++index % errorTypes.length],341 CtorA = root[type],342 CtorB = root[otherType];343 return [new CtorA('a'), new CtorA('a'), new CtorB('a'), new CtorB('b')];344 });345 var expected = lodashStable.map(pairs, lodashStable.constant([true, false, false]));346 var actual = lodashStable.map(pairs, function(pair) {347 return [isEqual(pair[0], pair[1]), isEqual(pair[0], pair[2]), isEqual(pair[2], pair[3])];348 });349 assert.deepStrictEqual(actual, expected);350 });351 it('should compare functions', function() {352 function a() { return 1 + 2; }353 function b() { return 1 + 2; }354 assert.strictEqual(isEqual(a, a), true);355 assert.strictEqual(isEqual(a, b), false);356 });357 it('should compare maps', function() {358 if (Map) {359 lodashStable.each([[map, new Map], [map, realm.map]], function(maps) {360 var map1 = maps[0],361 map2 = maps[1];362 map1.set('a', 1);363 map2.set('b', 2);364 assert.strictEqual(isEqual(map1, map2), false);365 map1.set('b', 2);366 map2.set('a', 1);367 assert.strictEqual(isEqual(map1, map2), true);368 map1.delete('a');369 map1.set('a', 1);370 assert.strictEqual(isEqual(map1, map2), true);371 map2.delete('a');372 assert.strictEqual(isEqual(map1, map2), false);373 map1.clear();374 map2.clear();375 });376 }377 });378 it('should compare maps with circular references', function() {379 if (Map) {380 var map1 = new Map,381 map2 = new Map;382 map1.set('a', map1);383 map2.set('a', map2);384 assert.strictEqual(isEqual(map1, map2), true);385 map1.set('b', 1);386 map2.set('b', 2);387 assert.strictEqual(isEqual(map1, map2), false);388 }389 });390 it('should compare promises by reference', function() {391 if (promise) {392 lodashStable.each([[promise, Promise.resolve(1)], [promise, realm.promise]], function(promises) {393 var promise1 = promises[0],394 promise2 = promises[1];395 assert.strictEqual(isEqual(promise1, promise2), false);396 assert.strictEqual(isEqual(promise1, promise1), true);397 });398 }399 });400 it('should compare regexes', function() {401 assert.strictEqual(isEqual(/x/gim, /x/gim), true);402 assert.strictEqual(isEqual(/x/gim, /x/mgi), true);403 assert.strictEqual(isEqual(/x/gi, /x/g), false);404 assert.strictEqual(isEqual(/x/, /y/), false);405 assert.strictEqual(isEqual(/x/g, { 'global': true, 'ignoreCase': false, 'multiline': false, 'source': 'x' }), false);406 });407 it('should compare sets', function() {408 if (Set) {409 lodashStable.each([[set, new Set], [set, realm.set]], function(sets) {410 var set1 = sets[0],411 set2 = sets[1];412 set1.add(1);413 set2.add(2);414 assert.strictEqual(isEqual(set1, set2), false);415 set1.add(2);416 set2.add(1);417 assert.strictEqual(isEqual(set1, set2), true);418 set1.delete(1);419 set1.add(1);420 assert.strictEqual(isEqual(set1, set2), true);421 set2.delete(1);422 assert.strictEqual(isEqual(set1, set2), false);423 set1.clear();424 set2.clear();425 });426 }427 });428 it('should compare sets with circular references', function() {429 if (Set) {430 var set1 = new Set,431 set2 = new Set;432 set1.add(set1);433 set2.add(set2);434 assert.strictEqual(isEqual(set1, set2), true);435 set1.add(1);436 set2.add(2);437 assert.strictEqual(isEqual(set1, set2), false);438 }439 });440 it('should compare symbol properties', function() {441 if (Symbol) {442 var object1 = { 'a': 1 },443 object2 = { 'a': 1 };444 object1[symbol1] = { 'a': { 'b': 2 } };445 object2[symbol1] = { 'a': { 'b': 2 } };446 defineProperty(object2, symbol2, {447 'configurable': true,448 'enumerable': false,449 'writable': true,450 'value': 2451 });452 assert.strictEqual(isEqual(object1, object2), true);453 object2[symbol1] = { 'a': 1 };454 assert.strictEqual(isEqual(object1, object2), false);455 delete object2[symbol1];456 object2[Symbol('a')] = { 'a': { 'b': 2 } };457 assert.strictEqual(isEqual(object1, object2), false);458 }459 });460 it('should compare wrapped values', function() {461 var stamp = +new Date;462 var values = [463 [[1, 2], [1, 2], [1, 2, 3]],464 [true, true, false],465 [new Date(stamp), new Date(stamp), new Date(stamp - 100)],466 [{ 'a': 1, 'b': 2 }, { 'a': 1, 'b': 2 }, { 'a': 1, 'b': 1 }],467 [1, 1, 2],468 [NaN, NaN, Infinity],469 [/x/, /x/, /x/i],470 ['a', 'a', 'A']471 ];472 lodashStable.each(values, function(vals) {473 var wrapped1 = _(vals[0]),474 wrapped2 = _(vals[1]),475 actual = wrapped1.isEqual(wrapped2);476 assert.strictEqual(actual, true);477 assert.strictEqual(isEqual(_(actual), _(true)), true);478 wrapped1 = _(vals[0]);479 wrapped2 = _(vals[2]);480 actual = wrapped1.isEqual(wrapped2);481 assert.strictEqual(actual, false);482 assert.strictEqual(isEqual(_(actual), _(false)), true);483 });484 });485 it('should compare wrapped and non-wrapped values', function() {486 var object1 = _({ 'a': 1, 'b': 2 }),487 object2 = { 'a': 1, 'b': 2 };488 assert.strictEqual(object1.isEqual(object2), true);489 assert.strictEqual(isEqual(object1, object2), true);490 object1 = _({ 'a': 1, 'b': 2 });491 object2 = { 'a': 1, 'b': 1 };492 assert.strictEqual(object1.isEqual(object2), false);493 assert.strictEqual(isEqual(object1, object2), false);494 });495 it('should work as an iteratee for `_.every`', function() {496 var actual = lodashStable.every([1, 1, 1], lodashStable.partial(isEqual, 1));497 assert.ok(actual);498 });499 it('should not error on DOM elements', function() {500 if (document) {501 var element1 = document.createElement('div'),502 element2 = element1.cloneNode(true);503 try {504 assert.strictEqual(isEqual(element1, element2), false);505 } catch (e) {506 assert.ok(false, e.message);507 }508 }509 });510 it('should return `true` for like-objects from different documents', function() {511 if (realm.object) {512 assert.strictEqual(isEqual([1], realm.array), true);513 assert.strictEqual(isEqual([2], realm.array), false);514 assert.strictEqual(isEqual({ 'a': 1 }, realm.object), true);515 assert.strictEqual(isEqual({ 'a': 2 }, realm.object), false);516 }517 });518 it('should return `false` for objects with custom `toString` methods', function() {519 var primitive,520 object = { 'toString': function() { return primitive; } },521 values = [true, null, 1, 'a', undefined],522 expected = lodashStable.map(values, stubFalse);523 var actual = lodashStable.map(values, function(value) {524 primitive = value;525 return isEqual(object, value);526 });527 assert.deepStrictEqual(actual, expected);528 });529 it('should return an unwrapped value when implicitly chaining', function() {530 assert.strictEqual(_('a').isEqual('a'), true);531 });532 it('should return a wrapped value when explicitly chaining', function() {533 assert.ok(_('a').chain().isEqual('a') instanceof _);534 });...

Full Screen

Full Screen

bytearray-tests.js

Source:bytearray-tests.js Github

copy

Full Screen

...10 // New, empty ByteArray.11 b = new ByteArray();12 //assert.isTrue(b instanceof Binary, "not instanceof Binary");13 assert.isTrue(b instanceof ByteArray, "not instanceof ByteArray");14 assert.isEqual(0, b.length);15 b.length = 123;16 assert.isEqual(123, b.length);17 assert.isEqual(0, b.get(4));18 19 // ByteArray(length)20 // New ByteArray filled with length zero bytes.21 b = new ByteArray(10);22 assert.isEqual(10, b.length);23 for (var i = 0; i < 10; i++)24 assert.isEqual(0, b.get(i));25 assert.isNaN(b.get(10));26 b.length = 234;27 assert.isEqual(234, b.length);28 assert.isEqual(0, b.get(10));29 assert.isEqual(0, b.get(233));30 assert.isNaN(b.get(234));31 32 // ByteArray(byteString)33 // Copy contents of byteString.34 b = new ByteArray(new ByteString(testArray));35 assert.isEqual(testArray.length, b.length);36 b.length = 345;37 assert.isEqual(345, b.length);38 assert.isEqual(1, b.get(0));39 assert.isEqual(4, b.get(3));40 assert.isEqual(0, b.get(4));41 42 // ByteArray(byteArray)43 // Copy byteArray.44 b = new ByteArray(new ByteArray(testArray));45 assert.isEqual(testArray.length, b.length);46 b.length = 456;47 assert.isEqual(456, b.length);48 assert.isEqual(1, b.get(0));49 assert.isEqual(4, b.get(3));50 assert.isEqual(0, b.get(4));51 52 // ByteArray(arrayOfBytes)53 // Use numbers in arrayOfBytes as contents.54 // Throws an exception if any element is outside the range 0...255 (TODO).55 b = new ByteArray(testArray);56 assert.isEqual(testArray.length, b.length);57 b.length = 567;58 assert.isEqual(567, b.length);59 assert.isEqual(1, b.get(0));60 assert.isEqual(4, b.get(3));61 assert.isEqual(0, b.get(4));62};63exports.testByteArrayResizing = function() {64 var b1 = new ByteArray([0,1,2,3,4,5,6]);65 assert.isEqual(7, b1.length);66 assert.isNaN(b1.get(7));67 68 b1.length = 10;69 assert.isEqual(10, b1.length, "Length should change to 10");70 assert.isEqual(5, b1.get(5));71 assert.isEqual(0, b1.get(7));72 73 b1.length = 3;74 assert.isEqual(3, b1.length, "Length should change to 10");75 assert.isEqual(0, b1.get(0));76 assert.isNaN(b1.get(4));77 78 b1.length = 9;79 assert.isEqual(9, b1.length, "Length should change to 9");80 assert.isEqual(0, b1.get(0));81 assert.isEqual(0, b1.get(4));82};83exports.testToByteArray = function() {84 var b1 = new ByteArray([1,2,3]),85 b2 = b1.toByteArray();86 87 assert.isTrue(b2 instanceof ByteArray, "not instanceof ByteArray");88 assert.isEqual(b1.length, b2.length);89 assert.isEqual(b1.get(0), b2.get(0));90 assert.isEqual(b1.get(2), b2.get(2));91 92 assert.isEqual(1, b1.get(0));93 assert.isEqual(1, b2.get(0));94 95 b1.set(0, 10);96 97 assert.isEqual(10, b1.get(0));98 assert.isEqual(1, b2.get(0));99};100exports.testToByteString = function() {101 var b1 = new ByteArray([1,2,3]),102 b2 = b1.toByteString();103 104 assert.isEqual(b1.length, b2.length);105 assert.isEqual(b1.get(0), b2.get(0));106 assert.isEqual(b1.get(2), b2.get(2));107 108 assert.isEqual(1, b1.get(0));109 assert.isEqual(1, b2.get(0));110 111 b1.set(0, 10);112 113 assert.isEqual(10, b1.get(0));114 assert.isEqual(1, b2.get(0));115};116exports.testToArray = function() {117 var testArray = [0,1,254,255],118 b1 = new ByteArray(testArray),119 a1 = b1.toArray();120 121 assert.isEqual(testArray.length, a1.length);122 for (var i = 0; i < testArray.length; i++)123 assert.isEqual(testArray[i], a1[i]);124};125exports.testToString = function() {126 // the format of the resulting string isn't specified, but it shouldn't be the decoded string127 // TODO: is this an ok test?128 129 var testString = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+130 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",131 testArray = [];132 for (var i = 0; i < 128; i++) testArray.push(65);133 134 var resultString = new ByteArray(testArray).toString();135 136 assert.isTrue(resultString.length < 100);137 assert.isTrue(resultString !== testString);138};139exports.testIndexOf = function() {140 var b1 = new ByteArray([0,1,2,3,4,5,0,1,2,3,4,5]);141 142 assert.isEqual(-1, b1.indexOf(-1));143 144 assert.isEqual(0, b1.indexOf(0));145 assert.isEqual(5, b1.indexOf(5));146 assert.isEqual(-1, b1.indexOf(12));147 148 assert.isEqual(6, b1.indexOf(0, 6));149 assert.isEqual(11, b1.indexOf(5, 6));150 assert.isEqual(-1, b1.indexOf(12, 6));151 152 assert.isEqual(0, b1.indexOf(0, 0, 3));153 assert.isEqual(-1, b1.indexOf(5, 0, 3));154 assert.isEqual(-1, b1.indexOf(12, 0, 3));155};156exports.testLastIndexOf = function() {157 var b1 = new ByteArray([0,1,2,3,4,5,0,1,2,3,4,5]);158 assert.isEqual(-1, b1.lastIndexOf(-1));159 assert.isEqual(6, b1.lastIndexOf(0));160 assert.isEqual(11, b1.lastIndexOf(5));161 assert.isEqual(-1, b1.lastIndexOf(12));162 assert.isEqual(0, b1.lastIndexOf(0, 0, 6));163 assert.isEqual(5, b1.lastIndexOf(5, 0, 6));164 assert.isEqual(-1, b1.lastIndexOf(12, 0, 6));165 assert.isEqual(6, b1.lastIndexOf(0, 6, 9));166 assert.isEqual(-1, b1.lastIndexOf(5, 6, 9));167 assert.isEqual(-1, b1.lastIndexOf(12, 6, 9));168};169exports.testByteArrayReverse = function() {170 var testArray = [0,1,2,3,4,5,6];171 172 var b1 = new ByteArray(testArray),173 b2 = b1.reverse();174 175 assert.isEqual(b1, b2);176 assert.isEqual(b1.length, b2.length);177 for (var i = 0; i < testArray.length; i++)178 assert.isEqual(testArray[i], b2.get(testArray.length-i-1));179 testArray = [0,1,2,3,4,5,6,7];180 b1 = new ByteArray(testArray);181 b2 = b1.reverse();182 assert.isEqual(b1, b2);183 assert.isEqual(b1.length, b2.length);184 for (var i = 0; i < testArray.length; i++)185 assert.isEqual(testArray[i], b2.get(testArray.length-i-1));186};187exports.testByteArraySort = function() {188 var testArray = [];189 for (var i = 0; i < 1000; i++)190 testArray.push(Math.floor(Math.random()*256));191 var a = new ByteArray(testArray);192 a.sort();193 194 for (var i = 1; i < a.length; i++)195 assert.isTrue(a.get(i-1) <= a.get(i), "index="+i+"("+a.get(i-1)+","+a.get(i)+")"); 196};197exports.testByteArraySortCustom = function() {198 var testArray = [];199 for (var i = 0; i < 1000; i++)200 testArray.push(Math.floor(Math.random()*256));201 var a = new ByteArray(testArray);202 a.sort(function(o1, o2) { return o2-o1; });203 for (var i = 1; i < a.length; i++)204 assert.isTrue(a.get(i-1) >= a.get(i), "index="+i+"("+a.get(i-1)+","+a.get(i)+")");205};206exports.testSplit = function() {207 var b1 = new ByteArray([0,1,2,3,4,5]), a1;208 209 a1 = b1.split([]);210 assert.isEqual(1, a1.length);211 assert.isTrue(a1[0] instanceof ByteArray);212 assert.isEqual(6, a1[0].length);213 assert.isEqual(0, a1[0].get(0));214 assert.isEqual(5, a1[0].get(5));215 216 a1 = b1.split([2]);217 assert.isEqual(2, a1.length);218 assert.isTrue(a1[0] instanceof ByteArray);219 assert.isEqual(2, a1[0].length);220 assert.isEqual(0, a1[0].get(0));221 assert.isEqual(1, a1[0].get(1));222 assert.isEqual(3, a1[1].length);223 assert.isEqual(3, a1[1].get(0));224 assert.isEqual(5, a1[1].get(2));225 226 a1 = b1.split([2], { includeDelimiter : true });227 assert.isEqual(3, a1.length);228 assert.isTrue(a1[0] instanceof ByteArray);229 assert.isEqual(2, a1[0].length);230 assert.isEqual(0, a1[0].get(0));231 assert.isEqual(1, a1[0].get(1));232 assert.isEqual(1, a1[1].length);233 assert.isEqual(2, a1[1].get(0));234 assert.isEqual(3, a1[2].length);235 assert.isEqual(3, a1[2].get(0));236 assert.isEqual(5, a1[2].get(2));237 238 a1 = b1.split(new ByteString([2,3]));239 assert.isEqual(2, a1.length);240 assert.isTrue(a1[0] instanceof ByteArray);241 assert.isEqual(2, a1[0].length);242 assert.isEqual(0, a1[0].get(0));243 assert.isEqual(1, a1[0].get(1));244 assert.isEqual(2, a1[1].length);245 assert.isEqual(4, a1[1].get(0));246 assert.isEqual(5, a1[1].get(1));247};248exports.testByteArrayForEach = function() {249 250 var b = new ByteArray([2, 3, 4, 5]),251 log = [],252 item;253 254 var thisObj = {};255 256 b.forEach(function() {257 log.push({258 thisObj: this,259 args: arguments260 });261 }, thisObj);262 263 assert.isEqual(4, log.length, "block called for each item");264 item = log[0];265 assert.isTrue(thisObj === item.thisObj, "block called with correct thisObj");266 assert.isEqual(3, item.args.length, "block called with three args");267 assert.isEqual(b.get(0), item.args[0], "block called with correct item 0");268 269 item = log[3];270 assert.isEqual(b.get(3), item.args[0], "block called with correct item 3");271 272 273};274exports.testByteArrayConcat = function() {275 var b = new ByteArray();276 277 var b1 = b.concat(new ByteArray([1,2,3]));278 assert.isEqual(3, b1.length);279 assert.isEqual(1, b1.get(0));280 assert.isEqual(2, b1.get(1));281 assert.isEqual(3, b1.get(2));282 283 var b2 = b1.concat(new ByteString([4,5,6]));284 assert.isEqual(6, b2.length);285 assert.isEqual(1, b2.get(0));286 assert.isEqual(3, b2.get(2));287 assert.isEqual(4, b2.get(3));288 assert.isEqual(6, b2.get(5));289 290 var b3 = b2.concat([b, b1, b2, new ByteString(), new ByteArray()]);291 assert.isEqual(b.length + b1.length + b2.length + b2.length, b3.length);292 293};294exports.testByteArrayPush = function() {295 var b1 = new ByteArray();296 assert.isEqual(3, b1.push(1,2,3));297 assert.isEqual(3, b1.length);298 assert.isEqual(1, b1.get(0));299 assert.isEqual(2, b1.get(1));300 assert.isEqual(3, b1.get(2));301 302 var b2 = new ByteArray([7, 8, 9]);303 assert.isEqual(6, b1.push.apply(b1, b2.toArray()));304 assert.isEqual(6, b1.length);305 assert.isEqual(7, b1.get(3));306 assert.isEqual(8, b1.get(4));307 assert.isEqual(9, b1.get(5));308};309exports.testByteArrayUnshift = function() {310 var b1 = new ByteArray([10, 43]);311 assert.isEqual(5, b1.unshift(9, 112, 67));312 assert.isEqual(5, b1.length);313 assert.isEqual(9, b1.get(0));314 assert.isEqual(112, b1.get(1));315 assert.isEqual(67, b1.get(2));316 assert.isEqual(10, b1.get(3));317 assert.isEqual(43, b1.get(4));318 319 var b2 = new ByteArray();320 assert.isEqual(5, b2.unshift.apply(b2, b1.toArray()));321 assert.isEqual(5, b2.length);322 assert.isEqual(9, b2.get(0));323 assert.isEqual(112, b2.get(1));324 assert.isEqual(67, b2.get(2));325 assert.isEqual(10, b2.get(3));326 assert.isEqual(43, b2.get(4));327 assert.isEqual(6, b2.unshift.call(b2, 20));328 assert.isEqual(20, b2.get(0));329};330exports.testByteArraySplice = function() {331 var b1 = new ByteArray([1,2,3,4]);332 var br = b1.splice(2, 0, 5);333 assert.isEqual(0, br.length);334 assert.isEqual(5, b1.length);335 assert.isEqual(1, b1.get(0));336 assert.isEqual(2, b1.get(1));337 assert.isEqual(5, b1.get(2));338 assert.isEqual(3, b1.get(3));339 assert.isEqual(4, b1.get(4));340 341 br = b1.splice(3, 1);342 assert.isEqual(1, br.length);343 assert.isEqual(4, b1.length);344 assert.isEqual(3, br.get(0));345 assert.isEqual(1, b1.get(0));346 assert.isEqual(2, b1.get(1));347 assert.isEqual(5, b1.get(2));348 assert.isEqual(4, b1.get(3));349 350 br = b1.splice(2, 1, 6);351 assert.isEqual(1, br.length);352 assert.isEqual(4, b1.length);353 assert.isEqual(5, br.get(0));354 assert.isEqual(1, b1.get(0));355 assert.isEqual(2, b1.get(1));356 assert.isEqual(6, b1.get(2));357 assert.isEqual(4, b1.get(3));358 359 br = b1.splice(0, 2, 7, 8, 9);360 assert.isEqual(2, br.length);361 assert.isEqual(5, b1.length);362 assert.isEqual(1, br.get(0));363 assert.isEqual(2, br.get(1));364 assert.isEqual(7, b1.get(0));365 assert.isEqual(8, b1.get(1));366 assert.isEqual(9, b1.get(2));367 assert.isEqual(6, b1.get(3));368 assert.isEqual(4, b1.get(4));369 370 br = b1.splice(-3, 1);371 assert.isEqual(1, br.length);372 assert.isEqual(4, b1.length);373 assert.isEqual(9, br.get(0));374 assert.isEqual(7, b1.get(0));375 assert.isEqual(8, b1.get(1));376 assert.isEqual(6, b1.get(2));377 assert.isEqual(4, b1.get(3));378 379 br = b1.splice(-1,0,10,11);380 assert.isEqual(0, br.length);381 assert.isEqual(6, b1.length);382 assert.isEqual(7, b1.get(0));383 assert.isEqual(8, b1.get(1));384 assert.isEqual(6, b1.get(2));385 assert.isEqual(10, b1.get(3));386 assert.isEqual(11, b1.get(4));387 assert.isEqual(4, b1.get(5));388 389 br = b1.splice(-2);390 assert.isEqual(2, br.length);391 assert.isEqual(4, b1.length);392 assert.isEqual(11, br.get(0));393 assert.isEqual(4, br.get(1));394 assert.isEqual(7, b1.get(0));395 assert.isEqual(8, b1.get(1));396 assert.isEqual(6, b1.get(2));397 assert.isEqual(10, b1.get(3));398 399 br = b1.splice(3);400 assert.isEqual(1, br.length);401 assert.isEqual(3, b1.length);402 assert.isEqual(10, br.get(0));403 assert.isEqual(7, b1.get(0));404 assert.isEqual(8, b1.get(1));405 assert.isEqual(6, b1.get(2));406 407 br = b1.splice(-2, 2, 13, 14, 15);408 assert.isEqual(2, br.length);409 assert.isEqual(4, b1.length);410 assert.isEqual(8, br.get(0));411 assert.isEqual(6, br.get(1));412 assert.isEqual(7, b1.get(0));413 assert.isEqual(13, b1.get(1));414 assert.isEqual(14, b1.get(2));415 assert.isEqual(15, b1.get(3));416 417 br = b1.splice();418 assert.isEqual(undefined, br);419 assert.isEqual(4, b1.length);420 assert.isEqual(7, b1.get(0));421 assert.isEqual(13, b1.get(1));422 assert.isEqual(14, b1.get(2));423 assert.isEqual(15, b1.get(3));424 425 br = b1.splice(0);426 assert.isEqual(4, br.length);427 assert.isEqual(0, b1.length);428 assert.isEqual(7, br.get(0));429 assert.isEqual(13, br.get(1));430 assert.isEqual(14, br.get(2));431 assert.isEqual(15, br.get(3));432}433if (require.main == module.id)...

Full Screen

Full Screen

bytestring-tests.js

Source:bytestring-tests.js Github

copy

Full Screen

...9 // Construct an empty byte string.10 var b1 = new ByteString();11 //assert.isTrue(b1 instanceof Binary, "not instanceof Binary");12 assert.isTrue(b1 instanceof ByteString, "not instanceof ByteString");13 assert.isEqual(0, b1.length);14 b1.length = 123;15 assert.isEqual(0, b1.length);16 17 // ByteString(byteString)18 // Copies byteString.19 var b2 = new ByteString(new ByteString(testArray));20 assert.isEqual(testArray.length, b2.length);21 b2.length = 123;22 assert.isEqual(testArray.length, b2.length);23 assert.isEqual(1, b2.get(0));24 assert.isEqual(4, b2.get(3));25 26 // ByteString(byteArray)27 // Use the contents of byteArray.28 var b2 = new ByteString(new ByteArray(testArray));29 assert.isEqual(testArray.length, b2.length);30 b2.length = 123;31 assert.isEqual(testArray.length, b2.length);32 assert.isEqual(1, b2.get(0));33 assert.isEqual(4, b2.get(3));34 35 // ByteString(arrayOfNumbers)36 // Use the numbers in arrayOfNumbers as the bytes.37 // If any element is outside the range 0...255, an exception (TODO) is thrown.38 var b3 = new ByteString(testArray);39 assert.isEqual(testArray.length, b3.length);40 b3.length = 123;41 assert.isEqual(testArray.length, b3.length);42 assert.isEqual(1, b3.get(0));43 assert.isEqual(4, b3.get(3));44};45//exports.testByteStringJoin = function() {46//}47exports.testToByteArray = function() {48 var b1 = new ByteString([1,2,3]),49 b2 = b1.toByteArray();50 51 assert.isTrue(b2 instanceof ByteArray, "not instanceof ByteArray");52 assert.isEqual(b1.length, b2.length);53 assert.isEqual(b1.get(0), b2.get(0));54 assert.isEqual(b1.get(2), b2.get(2));55};56exports.testToByteString = function() {57 var b1 = new ByteString([1,2,3]),58 b2 = b1.toByteString();59 60 assert.isEqual(b1.length, b2.length);61 assert.isEqual(b1.get(0), b2.get(0));62 assert.isEqual(b1.get(2), b2.get(2));63};64exports.testToArray = function() {65 var testArray = [0,1,254,255],66 b1 = new ByteString(testArray),67 a1 = b1.toArray();68 69 assert.isEqual(testArray.length, a1.length);70 for (var i = 0; i < testArray.length; i++)71 assert.isEqual(testArray[i], a1[i]);72};73exports.testToString = function() {74 // the format of the resulting string isn't specified, but it shouldn't be the decoded string75 // TODO: is this an ok test?76 77 var testString = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+78 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",79 testArray = [];80 for (var i = 0; i < 128; i++) testArray.push(65);81 82 var resultString = new ByteString(testArray).toString();83 84 assert.isTrue(resultString.length < 100);85 assert.isTrue(resultString !== testString);86};87exports.testIndexOf = function() {88 var b1 = new ByteString([0,1,2,3,4,5,0,1,2,3,4,5]);89 90 assert.isEqual(-1, b1.indexOf(-1));91 92 assert.isEqual(0, b1.indexOf(0));93 assert.isEqual(5, b1.indexOf(5));94 assert.isEqual(-1, b1.indexOf(12));95 96 assert.isEqual(6, b1.indexOf(0, 6));97 assert.isEqual(11, b1.indexOf(5, 6));98 assert.isEqual(-1, b1.indexOf(12, 6));99 100 assert.isEqual(0, b1.indexOf(0, 0, 3));101 assert.isEqual(-1, b1.indexOf(5, 0, 3));102 assert.isEqual(-1, b1.indexOf(12, 0, 3));103};104exports.testLastIndexOf = function() {105 var b1 = new ByteString([0,1,2,3,4,5,0,1,2,3,4,5]);106 assert.isEqual(-1, b1.lastIndexOf(-1));107 assert.isEqual(6, b1.lastIndexOf(0));108 assert.isEqual(11, b1.lastIndexOf(5));109 assert.isEqual(-1, b1.lastIndexOf(12));110 assert.isEqual(0, b1.lastIndexOf(0, 0, 6));111 assert.isEqual(5, b1.lastIndexOf(5, 0, 6));112 assert.isEqual(-1, b1.lastIndexOf(12, 0, 6));113 assert.isEqual(6, b1.lastIndexOf(0, 6, 9));114 assert.isEqual(-1, b1.lastIndexOf(5, 6, 9));115 assert.isEqual(-1, b1.lastIndexOf(12, 6, 9));116};117exports.testCharCodeAt = function() {118 var b1 = new ByteString([0,1,2,3,4,255]);119 120 assert.isTrue(isNaN(b1.charCodeAt(-1)));121 assert.isEqual(0, b1.charCodeAt(0));122 assert.isEqual(255, b1.charCodeAt(5));123 assert.isTrue(isNaN(b1.charCodeAt(6)));124};125// identical to charCodeAt, test anyway?126exports.testGet = function() {127 var b1 = new ByteString([0,1,2,3,4,255]);128 assert.isTrue(isNaN(b1.get(-1)));129 assert.isEqual(0, b1.get(0));130 assert.isEqual(255, b1.get(5));131 assert.isTrue(isNaN(b1.get(6)));132};133exports.testByteAt = function() {134 var b1 = new ByteString([0,1,2,3,4,255]), b2;135 b2 = b1.byteAt(-1);136 assert.isEqual(0, b2.length);137 b2 = b1.byteAt(0);138 assert.isEqual(1, b2.length);139 assert.isEqual(0, b2.get(0));140 b2 = b1.byteAt(5);141 assert.isEqual(1, b2.length);142 assert.isEqual(255, b2.get(0));143 b2 = b1.byteAt(6);144 assert.isEqual(0, b2.length);145};146// identical to byteAt, test anyway?147exports.testCharAt = function() {148 var b1 = new ByteString([0,1,2,3,4,255]), b2;149 b2 = b1.charAt(-1);150 assert.isEqual(0, b2.length);151 b2 = b1.charAt(0);152 assert.isEqual(1, b2.length);153 assert.isEqual(0, b2.get(0));154 b2 = b1.charAt(5);155 assert.isEqual(1, b2.length);156 assert.isEqual(255, b2.get(0));157 b2 = b1.charAt(6);158 assert.isEqual(0, b2.length);159};160exports.testSplit = function() {161 var b1 = new ByteString([0,1,2,3,4,5]), a1;162 163 a1 = b1.split([]);164 assert.isEqual(1, a1.length);165 assert.isTrue(a1[0] instanceof ByteString);166 assert.isEqual(6, a1[0].length);167 assert.isEqual(0, a1[0].get(0));168 assert.isEqual(5, a1[0].get(5));169 170 a1 = b1.split([2]);171 assert.isEqual(2, a1.length);172 assert.isTrue(a1[0] instanceof ByteString);173 assert.isEqual(2, a1[0].length);174 assert.isEqual(0, a1[0].get(0));175 assert.isEqual(1, a1[0].get(1));176 assert.isEqual(3, a1[1].length);177 assert.isEqual(3, a1[1].get(0));178 assert.isEqual(5, a1[1].get(2));179 180 a1 = b1.split([2], { includeDelimiter : true });181 assert.isEqual(3, a1.length);182 assert.isTrue(a1[0] instanceof ByteString);183 assert.isEqual(2, a1[0].length);184 assert.isEqual(0, a1[0].get(0));185 assert.isEqual(1, a1[0].get(1));186 assert.isEqual(1, a1[1].length);187 assert.isEqual(2, a1[1].get(0));188 assert.isEqual(3, a1[2].length);189 assert.isEqual(3, a1[2].get(0));190 assert.isEqual(5, a1[2].get(2));191 192 a1 = b1.split(new ByteString([2,3]));193 assert.isEqual(2, a1.length);194 assert.isTrue(a1[0] instanceof ByteString);195 assert.isEqual(2, a1[0].length);196 assert.isEqual(0, a1[0].get(0));197 assert.isEqual(1, a1[0].get(1));198 assert.isEqual(2, a1[1].length);199 assert.isEqual(4, a1[1].get(0));200 assert.isEqual(5, a1[1].get(1));201};202exports.testSlice = function() {203 var b1 = new ByteString([0,1,2,3,4,5]), b2;204 205 b2 = b1.slice();206 assert.isEqual(6, b2.length);207 assert.isEqual(0, b2.get(0));208 assert.isEqual(5, b2.get(5));209 210 b2 = b1.slice(0);211 assert.isEqual(6, b2.length);212 assert.isEqual(0, b2.get(0));213 assert.isEqual(5, b2.get(5));214 215 b2 = b1.slice(1, 4);216 assert.isEqual(3, b2.length);217 assert.isEqual(1, b2.get(0));218 assert.isEqual(3, b2.get(2));219 220 b2 = b1.slice(0, -1);221 assert.isEqual(5, b2.length);222 assert.isEqual(0, b2.get(0));223 assert.isEqual(4, b2.get(4));224 225 b2 = b1.slice(-3, -1);226 assert.isEqual(2, b2.length);227 assert.isEqual(3, b2.get(0));228 assert.isEqual(4, b2.get(1));229 230 b2 = b1.slice(9, 10);231 assert.isEqual(0, b2.length);232};233exports.testByteStringNewless = function () {234 assert.isEqual(1, ByteString([0]).length);235 assert.isEqual(2, ByteString([0, 1], 0, 2).length);236};237if (require.main == module.id)...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isEqual } from 'storybook-root';2import { isEqual } from 'storybook-root';3import { isEqual } from 'storybook-root';4import { isEqual } from 'storybook-root';5import { isEqual } from 'storybook-root';6import { isEqual } from 'storybook-root';7import { isEqual } from 'storybook-root';8import { isEqual } from 'storybook-root';9import { isEqual } from 'storybook-root';10import { isEqual } from 'storybook-root';11import { isEqual } from 'storybook-root';12import { isEqual } from 'storybook-root';13import { isEqual } from 'storybook-root';14import { isEqual } from 'storybook-root';15import { isEqual } from 'storybook-root';16import { isEqual } from 'storybook-root';17import { isEqual } from 'storybook-root';18import { isEqual } from 'storybook-root';19import { isEqual } from 'storybook-root';20import { isEqual } from 'storybook-root';21import { isEqual } from 'storybook-root';22import { isEqual } from 'storybook-root';

Full Screen

Using AI Code Generation

copy

Full Screen

1import isEqual from 'storybook-root/src/utils/isEqual';2import isEqual from 'storybook-root/utils/isEqual';3import isEqual from 'storybook-root/lib/utils/isEqual';4import isEqual from 'storybook-root/dist/utils/isEqual';5import isEqual from 'storybook-root/es/utils/isEqual';6import isEqual from 'storybook-root/es/lib/utils/isEqual';7import isEqual from 'storybook-root/es/dist/utils/isEqual';8import isEqual from 'storybook-root/lib/dist/utils/isEqual';9import isEqual from 'storybook-root/dist/lib/utils/isEqual';10import isEqual from 'storybook-root/dist/es/utils/isEqual';11import isEqual from 'storybook-root/dist/es/lib/utils/isEqual';12import isEqual from 'storybook-root/dist/es/dist/utils/isEqual';13import isEqual from 'storybook-root/lib/dist/es/utils/isEqual';14import isEqual from 'storybook-root/lib/dist/es/lib/utils/isEqual';15import isEqual from 'storybook-root/lib/dist/es/dist/utils/isEqual';16import isEqual from 'storybook-root/dist/lib/es/utils/isEqual';17import isEqual from 'storybook-root/dist/lib/es/lib/utils/isEqual';18import isEqual from 'storybook-root/dist/lib/es/dist/utils/isEqual';19import isEqual from 'storybook-root/lib/dist/lib/es/utils/isEqual';20import isEqual from 'storybook-root/lib/dist/lib/es/lib/utils/isEqual';21import isEqual from 'storybook-root/lib/dist/lib/es/dist/utils/isEqual';22import isEqual

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isEqual } from 'storybook-root';2import isEqual from 'storybook-root/isEqual';3import isEqual from 'storybook-root/lib/isEqual';4import isEqual from 'storybook-root/lib/isEqual/index.js';5import isEqual from 'storybook-root/lib/isEqual/index.ts';6import isEqual from 'storybook-root/lib/isEqual/index.jsx';7import isEqual from 'storybook-root/lib/isEqual/index.tsx';8import isEqual from 'storybook-root/lib/isEqual/isEqual.js';9import isEqual from 'storybook-root/lib/isEqual/isEqual.ts';10import isEqual from 'storybook-root/lib/isEqual/isEqual.jsx';11import isEqual from 'storybook-root/lib/isEqual/isEqual.tsx';12import isEqual from 'storybook-root/lib/isEqual/isEqual';13import isEqual from 'storybook-root/lib/isEqual/isEqual/index.js';14import isEqual from 'storybook-root/lib/isEqual/isEqual/index.ts';15import isEqual from 'storybook-root/lib/isEqual/isEqual/index.jsx';16import isEqual from 'storybook-root/lib/isEqual/isEqual/index.tsx';17import isEqual from 'storybook-root/lib/isEqual/isEqual/isEqual.js';18import isEqual from 'storybook-root/lib/isEqual/isEqual/isEqual.ts';19import isEqual from 'storybook-root/lib/isEqual/isEqual/isEqual.jsx';20import isEqual from 'storybook-root/lib/isEqual/isEqual/isEqual.tsx';21import isEqual from 'storybook-root/lib/isEqual/isEqual/isEqual';

Full Screen

Using AI Code Generation

copy

Full Screen

1import isEqual from 'storybook-root/lib/isEqual';2import isEqual from 'storybook-root/lib/isEqual';3import isEqual from 'storybook-root/lib/isEqual';4import isEqual from 'storybook-root/lib/isEqual';5import isEqual from 'storybook-root/lib/isEqual';6import isEqual from 'storybook-root/lib/isEqual';7import isEqual from 'storybook-root/lib/isEqual';8import isEqual from 'storybook-root/lib/isEqual';9import isEqual from 'storybook-root/lib/isEqual';10import isEqual from 'storybook-root/lib/isEqual';11import isEqual from 'storybook-root/lib/isEqual';12import isEqual from 'storybook-root/lib/isEqual';13import isEqual from 'storybook-root/lib/isEqual';14import isEqual from 'storybook

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isEqual } from 'storybook-root';2import { isEqual } from 'storybook-root';3import isEqual from 'storybook-root';4import isEqual from 'storybook-root/isEqual';5import isEqual from 'storybook-root/src/isEqual';6import isEqual from 'storybook-root/src/utils/isEqual';7import isEqual from 'storybook-root/src/utils/isEqual/index';8import isEqual from 'storybook-root/src/utils/isEqual/isEqual';9import

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isEqual } from 'storybook-root'2export const test = () => {3 console.log(isEqual(1, 1))4}5export const isEqual = (a, b) => a === b6{7 "dependencies": {8 }9}10module.exports = {11 webpackFinal: async (config) => {12 config.resolve.alias['storybook-root'] = path.resolve(__dirname, '../')13 }14}15import { addDecorator } from '@storybook/react'16import { withTests } from '@storybook/addon-jest'17import results from '../.jest-test-results.json'18addDecorator(19 withTests({20 filesExt: '((\\.specs?)|(\\.tests?))?(\\.ts|\\.tsx)?$'21 })22import 'storybook-root'23import '../test'24{25}26{27 "parserOptions": {28 },29 "rules": {

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful