I know this is a PureBasic forum, but I need to try this, as PureBasic uses C functions. Maybe you can help me understanding this situation through executing this C code on your machine:
Code: Select all
#include <stdio.h>
#include <math.h>
int main(int argc, char** argv)
{
double zero = 0.0;
double infinity = 1.0 / zero;
printf("%f\n", pow(-1.0, infinity));
printf("%f\n", pow(-2.0, infinity));
printf("%f\n", pow(-1.0, -infinity));
printf("%f\n", pow(-2.0, -infinity));
printf("%f\n", pow(infinity, infinity));
printf("%f\n", pow(-infinity, infinity));
printf("%f\n", pow(infinity, -infinity));
printf("%f\n", pow(-infinity, -infinity));
return 0;
}Thanks for any responses.Intel Q6600 - Windows 7 (amd64, compiled with mingw-64):
1.000000
1.#INF00
1.000000
0.000000
1.#INF00
1.#INF00
0.000000
0.000000
AMD Phenom II X4 955 - Windows 7 (amd64, compiled with mingw-64):
1.000000
1.#INF00
1.000000
0.000000
1.#INF00
1.#INF00
0.000000
0.000000
Intel Core 2 Duo - Windows Vista (x86, compiled with mingw-32):
1.000000
1.#INF00
1.000000
0.000000
1.#INF00
1.#INF00
0.000000
0.000000
Intel Atom CPU 230 - Debian (x86, compiled with gcc):
1.000000
inf
1.000000
0.000000
inf
inf
0.000000
0.000000
[EDIT]
Here you can get the binaries: http://www.bradan.eu/files/test_binaries.zip.



