Go to the documentation of this file.00001 #include "csm_all.h"
00002 #include <time.h>
00003
00004 #include "math_utils.h"
00005
00006 int main() {
00007
00008 int errors = 0;
00009 double should_be_nan[2] = { 0.0 / 0.0, GSL_NAN };
00010
00011 int i;
00012 for(i=0;i<2;i++) {
00013 if(!isnan(should_be_nan[i])) {
00014 printf("#%d: isnan(%f) failed \n", i, should_be_nan[i]);
00015 errors++;
00016 }
00017 if(!is_nan(should_be_nan[i])) {
00018 printf("#%d: is_nan(%f) failed \n", i, should_be_nan[i]);
00019 errors++;
00020 }
00021 }
00022
00023 return errors;
00024 }