FACT++  1.0
void eraPrec76 ( double  date01,
double  date02,
double  date11,
double  date12,
double *  zeta,
double *  z,
double *  theta 
)

Definition at line 3 of file prec76.c.

References ERFA_DAS2R, ERFA_DJ00, ERFA_DJC, and t.

Referenced by eraPmat76(), and t_prec76().

72 {
73  double t0, t, tas2r, w;
74 
75 /* Interval between fundamental epoch J2000.0 and start date (JC). */
76  t0 = ((date01 - ERFA_DJ00) + date02) / ERFA_DJC;
77 
78 /* Interval over which precession required (JC). */
79  t = ((date11 - date01) + (date12 - date02)) / ERFA_DJC;
80 
81 /* Euler angles. */
82  tas2r = t * ERFA_DAS2R;
83  w = 2306.2181 + (1.39656 - 0.000139 * t0) * t0;
84 
85  *zeta = (w + ((0.30188 - 0.000344 * t0) + 0.017998 * t) * t) * tas2r;
86 
87  *z = (w + ((1.09468 + 0.000066 * t0) + 0.018203 * t) * t) * tas2r;
88 
89  *theta = ((2004.3109 + (-0.85330 - 0.000217 * t0) * t0)
90  + ((-0.42665 - 0.000217 * t0) - 0.041833 * t) * t) * tas2r;
91 
92  return;
93 
94 }
#define ERFA_DJ00
Definition: erfam.h:87
#define ERFA_DAS2R
Definition: erfam.h:60
#define ERFA_DJC
Definition: erfam.h:81
TT t
Definition: test_client.c:26

+ Here is the caller graph for this function: