weening@polya.Stanford.EDU (Joe Weening) (02/25/89)
The program "Paranoia" is designed to test correctness of floating- point arithmetic. It is freely distributable, but rather than post it, because it is fairly large (57K bytes), I've made it available for anonymous ftp on labrea.stanford.edu in the file pub/paranoia.c. Compile it with "gcc -O -o paranoia paranoia.c -lm" and then run the program; it is self-explanatory. On a VAX 8700 running Ultrix 2.2, it indicates serious errors when compiled with either GCC 1.34 or the standard C compiler. Some of these may be in the math library, therefore. However, it gets more errors with GCC than with cc, so perhaps there is a bug.