FACT++  1.0
static void t_tp ( int *  status)
static

Definition at line 963 of file palTest.c.

References palDs2tp(), palDtp2s(), palDtps2c(), viv(), and vvd().

Referenced by main().

963  {
964 
965  int j;
966  double dr0, dd0, dr1, dd1, dx, dy, dr2, dd2, dr01,
967  dd01, dr02, dd02;
968 
969  dr0 = 3.1;
970  dd0 = -0.9;
971  dr1 = dr0 + 0.2;
972  dd1 = dd0 - 0.1;
973  palDs2tp( dr1, dd1, dr0, dd0, &dx, &dy, &j );
974  vvd( dx, 0.1086112301590404, 1e-12, "palDs2tp",
975  "x", status );
976  vvd( dy, -0.1095506200711452, 1e-12, "palDs2tp",
977  "y", status );
978  viv( j, 0, "palDs2tp", "j", status );
979 
980  palDtp2s( dx, dy, dr0, dd0, &dr2, &dd2 );
981  vvd( dr2 - dr1, 0., 1e-12, "palDtp2s", "r", status );
982  vvd( dd2 - dd1, 0., 1e-12, "palDtp2s", "d", status );
983 
984  palDtps2c( dx, dy, dr2, dd2, &dr01, &dd01, &dr02, &dd02, &j );
985  vvd( dr01, 3.1, 1e-12, "palDtps2c", "r1", status);
986  vvd( dd01, -0.9, 1e-12, "palDtps2c", "d1", status);
987  vvd( dr02, 0.3584073464102072, 1e-12, "palDtps2c",
988  "r2", status);
989  vvd( dd02, -2.023361658234722, 1e-12, "palDtps2c",
990  "d2", status );
991  viv( j, 1, "palDtps2c", "n", status );
992 
993 }
void palDtps2c(double xi, double eta, double ra, double dec, double *raz1, double *decz1, double *raz2, double *decz2, int *n)
Definition: palDtps2c.c:107
static void viv(int ival, int ivalok, const char *func, const char *test, int *status)
Definition: palTest.c:65
static void vvd(double val, double valok, double dval, const char *func, const char *test, int *status)
Definition: palTest.c:99
void palDs2tp(double ra, double dec, double raz, double decz, double *xi, double *eta, int *j)
Definition: palDs2tp.c:83
void palDtp2s(double xi, double eta, double raz, double decz, double *ra, double *dec)
Definition: palDtp2s.c:79

+ Here is the call graph for this function:

+ Here is the caller graph for this function: