Astro-SLA
view release on metacpan or search on metacpan
lib/Astro/SLA.pm view on Meta::CPAN
# Could implement these directly via the include file in the XS layer.
# Since these cant change - implement them explicitly.
# Pi
use constant DPI => 3.1415926535897932384626433832795028841971693993751;
# 2pi
use constant D2PI => 6.2831853071795864769252867665590057683943387987502;
# 1/(2pi)
use constant D1B2PI => 0.15915494309189533576888376337251436203445964574046;
# 4pi
use constant D4PI => 12.566370614359172953850573533118011536788677597500;
# 1/(4pi)
use constant D1B4PI => 0.079577471545947667884441881686257181017229822870228;
# pi^2
use constant DPISQ => 9.8696044010893586188344909998761511353136994072408;
# Now switch to 3200 Phaethon. This caused real problems with some
# slalib versions and architectures
print "# Testing 3200 Phaethon. Will not pass in older SLA versions (<2.5.3)\n";
my %elem = (
'AORQ' => '0.139854192733765',
'E' => '0.889994084835052',
'EPOCHPERIH' => '53431.54296875',
'PERIH' => '5.61957263946533',
'ORBINC' => '0.386924684047699',
'ANODE' => '4.63256978988647',
'EPOCH' => '53200',
'AORL' => 0,
);
my $now = 53613.09;
Astro::SLA::slaPertel( 3, $elem{EPOCH}, $now,
$elem{EPOCHPERIH},
$elem{ORBINC},
( run in 1.142 second using v1.01-cache-2.11-cpan-39bf76dae61 )