Astro-satpass
view release on metacpan or search on metacpan
lib/Astro/Coord/ECI/TLE.pm view on Meta::CPAN
my $zsingl = sin ($zx);
my $zmos = mod2pi (6.2565837 + .017201977 * $day);
#>>> Here endeth the optimization - only it isn't one any more
#>>> since I removed it. - TRW
#>>> The following loop replaces some spaghetti involving an
#>>> assigned goto which essentially executes the same big chunk
#>>> of obscure code twice: once for the Sun, and once for the Moon.
#>>> The comments "Do Solar terms" and "Do Lunar terms" in the
#>>> original apply to the first and second iterations of the loop,
#>>> respectively. The "my" variables declared just before the "for"
#>>> are those values computed inside the loop that are used outside
#>>> the loop. Accumulators are set to zero. -- TRW
#>>>trw my $savtsn = 1.0E20;
my $xnoi = 1 / $xnq;
my ($sse, $ssi, $ssl, $ssh, $ssg) = (0, 0, 0, 0, 0);
my ($se2, $ee2, $si2, $xi2, $sl2, $xl2, $sgh2, $xgh2, $sh2, $xh2, $se3,
$e3, $si3, $xi3, $sl3, $xl3, $sgh3, $xgh3, $sh3, $xh3, $sl4, $xl4,
$sgh4, $xgh4);
( run in 1.176 second using v1.01-cache-2.11-cpan-96521ef73a4 )