5
#define def_func(name, op) \
6
bool name(double left, double right) { \
7
return left op right; \
19
bool (*func)(double left, double right);
38
double compare[] = { 2.0,
47
for (i = 0; i < 4; i++) {
48
for (j = 0; j < 5; j++) {
49
for (k = 0; functions[k].name != NULL; k++) {
50
printf("%g %s %g -> %s\n", values[i],
53
functions[k].func(values[i], compare[j]) ? "True" : "False");