41 for (mjd=58135.4; mjd<58135.5; mjd+=1./86400.)
47 mediff =
rv_sub(mpos[0].s,epos[0].s);
54 printf(
"%.15g %.15g %.15g %.15g\n",mjd,pos.
col[0],pos.
col[1],pos.
col[2]);
3 element generic row vector
Definition: vector.h:53
int count
Definition: rw_test.cpp:36
#define JPL_SUN_BARY
Definition: convertdef.h:121
Cartesian full position structure.
Definition: convertdef.h:158
#define JPL_MOON
Definition: convertdef.h:119
double mjd
Definition: udp_send.cpp:41
#define JPL_EARTH
Definition: convertdef.h:112
double col[3]
Definition: vector.h:55
int32_t jplpos(long from, long to, double utc, cartpos *pos)
Position from JPL Ephemeris.
Definition: ephemlib.cpp:128
rvector rv_sub(rvector a, rvector b)
Subtract two vectors.
Definition: vector.cpp:315
double utc2tt(double mjd)
Convert UTC to TT.
Definition: timelib.cpp:884