level 7
真心不卡
楼主
Code:
Table[Sum[i,{i,10^o}]^2-Sum[i^2,{i,10^o}]; //AbsoluteTiming,{o,0,50}][[;;,1]]
Output:
{0.0000264831, 0.0000222458, 0.000120763, 0.000380298, 0.000731287, \
0.0063164, 1.18686, 0.000592869, 0.000395481, 0.000340749, \
0.000342162, 0.000651485, 0.000367939, 0.000655369, 0.000357699, \
0.000460806, 0.000349224, 0.000569917, 0.000426202, 0.000367939, \
0.000353461, 0.000349224, 0.000503179, 0.000358052, 0.000420199, \
0.000384182, 0.000354874, 0.000419493, 0.000352402, 0.000412077, \
0.000421611, 0.000358052, 0.00046469, 0.000354521, 0.000455156, \
0.000469281, 0.000352402, 0.000548024, 0.000355933, 0.000495058, \
0.000356992, 0.000444563, 0.000374295, 0.000356639, 0.000450919, \
0.000352755, 0.000357699, 0.000350283, 0.000501767, 0.000419846, \
0.000353461}
画了个图ListLogPlot[(上面Output), Joined -> True, Filling -> Bottom]

和编译有没有关系?
2018年11月02日 13点11分
1
Table[Sum[i,{i,10^o}]^2-Sum[i^2,{i,10^o}]; //AbsoluteTiming,{o,0,50}][[;;,1]]
Output:
{0.0000264831, 0.0000222458, 0.000120763, 0.000380298, 0.000731287, \
0.0063164, 1.18686, 0.000592869, 0.000395481, 0.000340749, \
0.000342162, 0.000651485, 0.000367939, 0.000655369, 0.000357699, \
0.000460806, 0.000349224, 0.000569917, 0.000426202, 0.000367939, \
0.000353461, 0.000349224, 0.000503179, 0.000358052, 0.000420199, \
0.000384182, 0.000354874, 0.000419493, 0.000352402, 0.000412077, \
0.000421611, 0.000358052, 0.00046469, 0.000354521, 0.000455156, \
0.000469281, 0.000352402, 0.000548024, 0.000355933, 0.000495058, \
0.000356992, 0.000444563, 0.000374295, 0.000356639, 0.000450919, \
0.000352755, 0.000357699, 0.000350283, 0.000501767, 0.000419846, \
0.000353461}
画了个图ListLogPlot[(上面Output), Joined -> True, Filling -> Bottom]

和编译有没有关系?