Révision 247 Pi/C/Simple/Pi_Simple.c
Pi_Simple.c (revision 247) | ||
---|---|---|
159 | 159 |
|
160 | 160 |
double itops=(double)(iterations)/elapsed; |
161 | 161 |
|
162 |
printf("Inside/Total %lld %lld\nElapsed Time %.2f\nItops %.0f\nPi estimation %f\n\n",inside,iterations,elapsed,itops,(4.*(float)inside/(float)(iterations)));
|
|
162 |
printf("Inside/Total %lld %lld\nElapsed Time %.2f\nItops %.0f\nLogItops %.2f\nPi estimation %f\n\n",inside,iterations,elapsed,itops,log10(itops),(4.*(float)inside/(float)(iterations)));
|
|
163 | 163 |
|
164 |
printf("\n\n"); |
|
165 |
|
|
166 | 164 |
return 0; |
167 | 165 |
|
168 | 166 |
} |
Formats disponibles : Unified diff