FACT++  1.0
void eraAb ( double  pnat[3],
double  v[3],
double  s,
double  bm1,
double  ppr[3] 
)

Definition at line 3 of file ab.c.

References eraPdp(), ERFA_SRS, and i.

Referenced by eraAtciq(), eraAtciqn(), eraAtciqz(), eraAticq(), eraAticqn(), and t_ab().

54 {
55  int i;
56  double pdv, w1, w2, r2, w, p[3], r;
57 
58  pdv = eraPdp(pnat, v);
59  w1 = 1.0 + pdv/(1.0 + bm1);
60  w2 = ERFA_SRS/s;
61  r2 = 0.0;
62  for (i = 0; i < 3; i++) {
63  w = pnat[i]*bm1 + w1*v[i] + w2*(v[i] - pdv*pnat[i]);
64  p[i] = w;
65  r2 = r2 + w*w;
66  }
67  r = sqrt(r2);
68  for (i = 0; i < 3; i++) {
69  ppr[i] = p[i]/r;
70  }
71 
72 /* Finished. */
73 
74 }
double eraPdp(double a[3], double b[3])
Definition: pdp.c:3
#define ERFA_SRS
Definition: erfam.h:122
int i
Definition: db_dim_client.c:21

+ Here is the call graph for this function:

+ Here is the caller graph for this function: