Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #define EPS 0.000000001 // epsilon
- void e_putere() {
- int col = 0;
- for (double x = 0.0; ; x += 0.5) {
- printf("%.6lf ", exp(x));
- if (++col % 1 == 0) printf("\n");
- if (fabs(x - 40.0) < EPS) break;
- }
- }
- int main() {
- e_putere();
- return 0;
- }
- 1.000000
- 1.648721
- 2.718282
- 4.481689
- 7.389056
- 12.182494
- 20.085537
- 33.115452
- 54.598150
- 90.017131
- 148.413159
- 244.691932
- 403.428793
- 665.141633
- 1096.633158
- 1808.042414
- 2980.957987
- 4914.768840
- 8103.083928
- 13359.726830
- 22026.465795
- 36315.502674
- 59874.141715
- 98715.771011
- 162754.791419
- 268337.286521
- 442413.392009
- 729416.369848
- 1202604.284165
- 1982759.263538
- 3269017.372472
- 5389698.476283
- 8886110.520508
- 14650719.428954
- 24154952.753575
- 39824784.397576
- 65659969.137331
- 108254987.750231
- 178482300.963187
- 294267566.041509
- 485165195.409790
- 799902177.475505
- 1318815734.483215
- 2174359553.576488
- 3584912846.131592
- 5910522063.023291
- 9744803446.248903
- 16066464720.622478
- 26489122129.843472
- 43673179097.646416
- 72004899337.385880
- 118716009132.169647
- 195729609428.838776
- 322703570371.154846
- 532048240601.798645
- 877199251318.764893
- 1446257064291.475098
- 2384474784797.677734
- 3931334297144.041992
- 6481674477934.320312
- 10686474581524.462891
- 17619017951355.632812
- 29048849665247.425781
- 47893456332463.726562
- 78962960182680.687500
- 130187912050632.937500
- 214643579785916.062500
- 353887435612259.875000
- 583461742527454.875000
- 961965785544776.375000
- 1586013452313430.750000
- 2614894114445696.500000
- 4311231547115195.000000
- 7108019154642244.000000
- 11719142372802612.000000
- 19321599304402836.000000
- 31855931757113756.000000
- 52521552285925160.000000
- 86593400423993744.000000
- 142768381181291984.000000
- 235385266837020000.000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement