/* irrational.c e^(Pi*sqrt(163)) is an integer? */ /* to prove, converge from above and below */ /* check that convergence is uniform */ #include #include #define e 2.7182818284590452353602874713526624977572 #define Pi 3.1415926535897932384626433832795028841971 int main(int argc, char * argv[]) { printf("e^(Pi*sqrt(163)) is an integer? \n"); printf(" 262537412640768744.0000000 check \n"); printf("%28.7f using 15 digit arithmetic \n",pow(e,Pi*sqrt(163.0))); return 0; }