Changeset 2551 in Sophya for trunk/SophyaExt/XephemAstroLib/comet.c
- Timestamp:
- Jun 15, 2004, 6:54:12 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/XephemAstroLib/comet.c
r1719 r2551 1 1 #include <math.h> 2 2 3 #include "P_.h"4 3 #include "astro.h" 5 4 6 /* given a modified Julian date, mj d, and a set of heliocentric parabolic7 * orbital elements referred to the epoch of date (mj d):5 /* given a modified Julian date, mj, and a set of heliocentric parabolic 6 * orbital elements referred to the epoch of date (mj): 8 7 * ep: epoch of perihelion, 9 8 * inc: inclination, … … 30 29 */ 31 30 void 32 comet (mjd, ep, inc, ap, qp, om, lpd, psi, rp, rho, lam, bet) 33 double mjd; 34 double ep, inc, ap, qp, om; 35 double *lpd, *psi, *rp, *rho, *lam, *bet; 31 comet (double mj, double ep, double inc, double ap, double qp, double om, 32 double *lpd, double *psi, double *rp, double *rho, double *lam, double *bet) 36 33 { 37 34 double w, s, s2; … … 44 41 45 42 #define ERRLMT 0.0001 46 w = ((mj d-ep)*3.649116e-02)/(qp*sqrt(qp));43 w = ((mj-ep)*3.649116e-02)/(qp*sqrt(qp)); 47 44 s = w/3; 48 45 for (;;) { … … 68 65 range (lpd, 2*PI); 69 66 rd = *rp * cpsi; 70 sunpos (mj d, &lsn, &rsn, 0);67 sunpos (mj, &lsn, &rsn, 0); 71 68 lg = lsn+PI; 72 69 re = rsn; … … 84 81 85 82 /* For RCS Only -- Do Not Edit */ 86 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: comet.c,v $ $Date: 200 1-10-22 12:08:26 $ $Revision: 1.2$ $Name: not supported by cvs2svn $"};83 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: comet.c,v $ $Date: 2004-06-15 16:52:38 $ $Revision: 1.3 $ $Name: not supported by cvs2svn $"};
Note:
See TracChangeset
for help on using the changeset viewer.