按照下面的步骤求出两个相邻的斐波那契数的比值.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 14:05:06
按照下面的步骤求出两个相邻的斐波那契数的比值.按照下面的步骤求出两个相邻的斐波那契数的比值.按照下面的步骤求出两个相邻的斐波那契数的比值.依次填:5/3;1.667.8/5;11.600.21/13;

按照下面的步骤求出两个相邻的斐波那契数的比值.
按照下面的步骤求出两个相邻的斐波那契数的比值.

按照下面的步骤求出两个相邻的斐波那契数的比值.
依次填:
5/3;1.667.
8/5;11.600.
21/13;1.615;
34/21;1.619.
55/34;1.618.
随着项数不断的增大,后项比前项的比值会越来越接近1.618.就是黄金分割点.

f1:f0 0
f2:f1 1.0
f3:f2 2.0
f4:f3 1.5
f5:f4 1.6666666666666667
f6:f5 1.6
f7:f6 1.625
f8:f7 1.6153846153846154
f9:f8 1.619047619047619
f10:f9 1.6176470588235294
...

全部展开

f1:f0 0
f2:f1 1.0
f3:f2 2.0
f4:f3 1.5
f5:f4 1.6666666666666667
f6:f5 1.6
f7:f6 1.625
f8:f7 1.6153846153846154
f9:f8 1.619047619047619
f10:f9 1.6176470588235294
f11:f10 1.6181818181818182
f12:f11 1.6179775280898876
f13:f12 1.6180555555555556
f14:f13 1.6180257510729614
f15:f14 1.6180371352785146
f16:f15 1.618032786885246
f17:f16 1.618034447821682
f18:f17 1.6180338134001253
f19:f18 1.618034055727554
f20:f19 1.6180339631667064
f21:f20 1.6180339985218033
f22:f21 1.618033985017358
f23:f22 1.6180339901755971
f24:f23 1.618033988205325
f25:f24 1.618033988957902
f26:f25 1.6180339886704431
f27:f26 1.6180339887802426
f28:f27 1.618033988738303
f29:f28 1.6180339887543225
f30:f29 1.6180339887482036
f31:f30 1.6180339887505408
f32:f31 1.6180339887496482
f33:f32 1.618033988749989
f34:f33 1.618033988749859
f35:f34 1.6180339887499087
f36:f35 1.6180339887498896
f37:f36 1.618033988749897
f38:f37 1.618033988749894
f39:f38 1.6180339887498951
f40:f39 1.6180339887498947
f41:f40 1.618033988749895
f42:f41 1.618033988749895
f43:f42 1.618033988749895
f44:f43 1.618033988749895
f45:f44 1.618033988749895
f46:f45 1.618033988749895
f47:f46 -0.7208754791805104
f48:f47 -0.38720212974478985
f49:f48 -1.582630422666098
f50:f49 0.36814054268247876
f51:f50 3.716353903086681
f52:f51 1.2690809395653715
f53:f52 -1.2614385957359167
f54:f53 0.2072543179031198
f55:f54 5.824989945287634
f56:f55 -0.8307266151755709
f57:f56 -0.2037654527159381
f58:f57 -3.9076032598816597
f59:f58 0.7440886565259226
f60:f59 -1.724507135118218
f61:f60 0.4201241736634228
f62:f61 -2.23520054254726
f63:f62 0.5526128501828348
f64:f63 -1.7365990705496421
f65:f64 0.4241618477410015
f66:f65 -2.8142664699951703
f67:f66 0.6446676209727517
f68:f67 -0.8506601376515669
f69:f68 -0.1755576119514879
f70:f69 -4.69613580911736
f71:f70 0.7870589691936635
f72:f71 2.270552829128538
f73:f72 -1.2738890198087545
f74:f73 0.21500226122513622
f75:f74 -4.2591424674111895
f76:f75 0.7652109532255622
f77:f76 -0.7339266171768837
f78:f77 -0.3625340416819765
f79:f78 -1.7583616571853518
f80:f79 0.4312887818534885
f81:f80 3.318632067596199
f82:f81 1.3013289752016213
f83:f82 -1.7210093013064378
f84:f83 0.41894561566814975
f85:f84 -1.452735621093351
f86:f85 0.31164350520476347
f87:f86 4.208794610826098
f88:f87 1.237597719173025
f89:f88 -0.24425430365704845
f90:f89 -3.094093676253401
f91:f90 0.6768035797769099
f92:f91 -1.5347945808696792
f93:f92 0.3484470088281405
f94:f93 -3.632682612560831
f95:f94 0.7247213404930364
f96:f95 -0.4699367177058832
f97:f96 -1.1279460878940402
f98:f97 0.11343280433989981
f99:f98 9.815791920329449


是我的计算错误了吗.
额,知道了,忘记了Java中的Integer类型数据容量.

收起