278 double dna, dt1, temp, tc, vfac, temp1;
288 l = (int)(temp - dt1);
292 tc = 2.0 * (modf( temp, &temp1) + dt1) - 1.0;
299 if(tc != iinfo->
pc[1])
312 double *pc_ptr = iinfo->
pc + iinfo->
np;
314 for(i=ncf - iinfo->
np; i; i--, pc_ptr++)
321 *pc_ptr = iinfo->
twot * pc_ptr[-1] - pc_ptr[-2];
328 for( i = 0; i < ncm; ++
i)
330 const double *coeff_ptr =
coef + ncf * (i + l * ncm + 1);
331 const double *pc_ptr = iinfo->
pc + ncf;
334 for( j = ncf; j; j--)
335 posvel[i] += (*--pc_ptr) * (*--coeff_ptr);
347 double *vc_ptr = iinfo->
vc + iinfo->
nv;
348 const double *pc_ptr = iinfo->
pc + iinfo->
nv - 1;
350 for( i = ncf - iinfo->
nv; i; i--, vc_ptr++, pc_ptr++)
357 *vc_ptr = iinfo->
twot * vc_ptr[-1] + *pc_ptr + *pc_ptr - vc_ptr[-2];
364 for( i = 0; i < ncm; ++
i)
367 const double *coeff_ptr =
coef + ncf * (i + l * ncm + 1);
368 const double *vc_ptr = iinfo->
vc + ncf;
370 for( j = ncf; j; j--)
371 tval += (*--vc_ptr) * (*--coeff_ptr);
372 posvel[ i + ncm] = tval * vfac;
int np
Definition: jpleph.h:149
int i
Definition: rw_test.cpp:37
double pc[18]
Definition: jpleph.h:148
static double coef[360+1][360+1][2]
Definition: physicslib.cpp:39
int nv
Definition: jpleph.h:149
double twot
Definition: jpleph.h:148
double vc[18]
Definition: jpleph.h:148