File: xfunct.h

package info (click to toggle)
fitsh 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,768 kB
  • ctags: 4,050
  • sloc: ansic: 53,352; makefile: 1,120; sh: 25
file content (39 lines) | stat: -rw-r--r-- 1,600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*****************************************************************************/
/* xfunct.h								     */
/*****************************************************************************/

#ifndef	__XFUNCT_H_INCLUDED
#define	__XFUNCT_H_INCLUDED	1

/*****************************************************************************/

/* eccentric_offset_q(), eccentric_offset_p():
   These functions calculate the components of the eccentric offset
   vector. The eccentric offset vector (q,p) is e*(cos E,sin E) where
   e^2 = k^2 + h^2 and E is the solution of E - e*sin E = lambda-arg(k,h).   */
double	eccentric_offset_q(double lambda,double k,double h);
double	eccentric_offset_p(double lambda,double k,double h);

double	eccentric_trigonometric_c(double lambda,double k,double h);
double	eccentric_trigonometric_s(double lambda,double k,double h);

/*****************************************************************************/

double	elliptic_complete_first(double k);
double	elliptic_complete_second(double k);
double	elliptic_complete_third(double n,double k);

/*****************************************************************************/

/* wrapper to get_heiocentric_julian_date(): */
double	get_hjd(double jd,double ra,double dec);
/* wrapper to get_barycentric_julian_date(): */
double	get_bjd(double jd,double ra,double dec);

/*****************************************************************************/

#endif

/*****************************************************************************/