LY_PER_PARSEC
Posted: 18.05.2008, 00:23
Is it just me, or is the value of the constant LY_PER_PARSEC (defined in astro.h) incorrect?
from astro.h:
Using the other constants in astro.h
And [tex]\mathrm{1 parsec} = \frac{\mathrm{1 AU}}{\tan 1^{\prime\prime}}[/tex] gives
LY_PER_PARSEC = 3.26156378
(which is inconsistent with the value of LY_PER_PARSEC)
According to the IAU,
This would then give LY_PER_PARSEC = 3.26156378
from astro.h:
Code: Select all
#define LY_PER_PARSEC 3.26167
Using the other constants in astro.h
Code: Select all
#define KM_PER_LY 9460730472580.8
#define KM_PER_AU 149597870.7
And [tex]\mathrm{1 parsec} = \frac{\mathrm{1 AU}}{\tan 1^{\prime\prime}}[/tex] gives
LY_PER_PARSEC = 3.26156378
(which is inconsistent with the value of LY_PER_PARSEC)
According to the IAU,
So KM_PER_AU has used a less precise value. Using the IAU value, the parsec is 30856775812815.5 km.IAU wrote:One AU is exactly 149,597,870.691 kilometres
Which would make the year equal to 365.25 * 86400 seconds = 31557600 s, and since c is defined as 299792458 m/s, this gives 1 light year = 9460730472580.8 km, so KM_PER_LY is correct.IAU wrote:Although there are several different kinds of year, the IAU regards a year as a Julian year of 365.25 days (31.5576 million seconds) unless otherwise specified.
This would then give LY_PER_PARSEC = 3.26156378