How to use isEqual method in fast-check-monorepo

Best JavaScript code snippet using fast-check-monorepo

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.