36 for(j=0;j<
NS;++j)
for(i=0;i<
NR;++
i)
42 for(j=0;j<
NS;++j)
for(i=0;i<
NR;++
i) {
44 p->
x[0] = zr[
i]*2, p->
x[1] = zs[j]*2;
45 p->
r[0] = 0, p->
r[1] = 0;
51 for(j=0;j<
NS;++j)
for(i=0;i<
NR;++
i) {
54 printf(
"x = (%g,%g), r = (%g,%g), flags = %x, dist2 = %g\n",
55 p->
x[0],p->
x[1], p->
r[0],p->
r[1],
58 do { double temp=r; x = temp<-1?-1:(temp>1?1:temp); } while(0)
61 if( fabs(r-p->
r[0])+fabs(s-p->
r[1]) > 1024*DBL_EPSILON )
62 { printf(
"off by %g\n", fabs(r-p->
r[0])+fabs(s-p->
r[1]));
70 printf(
"Tests %s\n", pass?
"passed":
"failed");
static void findpts_el_start_2(struct findpts_el_data_2 *const fd, const double *const x[2])
static const double *const elx2[2]
static struct findpts_el_pt_2 * findpts_el_points_2(struct findpts_el_data_2 *const fd)
#define findpts_el_setup_2
#define findpts_el_free_2
static double elx[NR *NS]
static const unsigned nr[3]
establishes some macros to establish naming conventions
static double ely[NR *NS]