- #if 0
- a= 9008425914092448.000 ,
- b= 9008425914092448.000
- 53.000196
- 請按任意鍵繼續 . . .
- #endif
- // ----------------------------------------------
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main(int argc, char *argv[])
- {
- double a, b, c;
- a= 4.0*atan(1.0);
- b= a + 1;
- // b > a
-
- while (b > a) {
- a*= 1.0001;
- b= a + 1;
- }
-
- printf("\n a= %.3lf , \n b= %.3lf \n", a, b);
- printf("%.6lf \n", ((log(a))/(log(2.0))));
- system("PAUSE");
-
- return 0;
- }
複製代碼 |