FACT++  1.0
void palEtrms ( double  ep,
double  ev[3] 
)

Definition at line 78 of file palEtrms.c.

References PAL__DAS2R, and t.

Referenced by palAddet(), palSubet(), and t_etrms().

78  {
79 
80  /* Use the J2000 aberration constant */
81  const double ABCONST = 20.49552;
82 
83  double t, e, e0, p, ek, cp;
84 
85  /* Julian centuries since B1950 */
86  t = (ep - 1950.) * .0100002135903;
87 
88  /* Eccentricity */
89  e = .01673011 - (t * 1.26e-7 + 4.193e-5) * t;
90 
91  /* Mean obliquity */
92  e0 = (84404.836 - ((t * .00181 + .00319) * t + 46.8495) * t) *
93  PAL__DAS2R;
94 
95  /* Mean longitude of perihelion */
96  p = (((t * .012 + 1.65) * t + 6190.67) * t + 1015489.951) *
97  PAL__DAS2R;
98 
99  /* E-terms */
100  ek = e * ABCONST * PAL__DAS2R;
101  cp = cos(p);
102  ev[0] = ek * sin(p);
103  ev[1] = -ek * cp * cos(e0);
104  ev[2] = -ek * cp * sin(e0);
105 
106 }
static const double PAL__DAS2R
Definition: palmac.h:78
double p
Definition: palObs.c:169
TT t
Definition: test_client.c:26

+ Here is the caller graph for this function: