FACT++  1.0
void palPertel ( int  jform,
double  date0,
double  date1,
double  epoch0,
double  orbi0,
double  anode0,
double  perih0,
double  aorq0,
double  e0,
double  am0,
double *  epoch1,
double *  orbi1,
double *  anode1,
double *  perih1,
double *  aorq1,
double *  e1,
double *  am1,
int *  jstat 
)

Definition at line 171 of file palPertel.c.

References palEl2ue(), palPertue(), and palUe2el().

Referenced by t_planet().

176  {
177 
178  double u[13], dm;
179  int j, jf;
180 
181  /* Check that the elements are either minor-planet or comet format. */
182  if (jform < 2 || jform > 3) {
183  *jstat = -1;
184  return;
185  } else {
186 
187  /* Provisionally set the status to OK. */
188  *jstat = 0;
189  }
190 
191  /* Transform the elements from conventional to universal form. */
192  palEl2ue(date0,jform,epoch0,orbi0,anode0,perih0,
193  aorq0,e0,am0,0.0,u,&j);
194  if (j != 0) {
195  *jstat = j;
196  return;
197  }
198 
199  /* Update the universal elements. */
200  palPertue(date1,u,&j);
201  if (j > 0) {
202  *jstat = j;
203  } else if (j < 0) {
204  *jstat = -5;
205  return;
206  }
207 
208  /* Transform from universal to conventional elements. */
209  palUe2el(u, jform, &jf, epoch1, orbi1, anode1, perih1,
210  aorq1, e1, am1, &dm, &j);
211  if (jf != jform || j != 0) *jstat = -5;
212 }
var date0
Definition: index.js:127
void palPertue(double date, double u[13], int *jstat)
Definition: palPertue.c:212
void palUe2el(const double u[13], int jformr, int *jform, double *epoch, double *orbinc, double *anode, double *perih, double *aorq, double *e, double *aorl, double *dm, int *jstat)
void palEl2ue(double date, int jform, double epoch, double orbinc, double anode, double perih, double aorq, double e, double aorl, double dm, double u[13], int *jstat)
Definition: palEl2ue.c:178

+ Here is the call graph for this function:

+ Here is the caller graph for this function: