Changeset 989 for trunk/test/math/pi.cpp
- Timestamp:
- Sep 27, 2011, 7:09:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/math/pi.cpp
r984 r989 33 33 sum.print(); 34 34 35 /* Bonus: compute e for fun. */ 36 sum = 0.0; 37 x0 = 1.0; 38 39 for (int i = 1; i < 100; i++) 40 { 41 sum += fres(x0); 42 x0 *= (real)i; 43 } 44 45 sum.print(); 46 35 47 return EXIT_SUCCESS; 36 48 }
Note: See TracChangeset
for help on using the changeset viewer.