测试灌水版 #516891 层

大家来帮忙下

楼主 · 1 楼
\!\(<< Statistics'NonlinearFit'\[IndentingNewLine]
\(a = {
496, 10617, 2442, 8067, 8337, 4693, 819, 102};\)\[IndentingNewLine]
\(b = {
496,
496 + 10617,
496 + 10617 + 2442,
496 + 10617 + 2442 + 8067,
96 + 10617 + 2442 + 8067 + 8337,

496 + 10617 + 2442 + 8067 + 8337 + 4693,

496 + 10617 + 2442 + 8067 + 8337 + 4693 + 819,

496 + 10617 + 2442 + 8067 + 8337 + 4693 + 819 +
102};\)\[IndentingNewLine]
gg1 = ListPlot[b, PlotJoined -> True]\[IndentingNewLine]
\(yy = NonlinearFit[b, \(s + m*x + r*x\^2\)\/\(1 + f*x + l*x\^2\),
x, {s, r, m, f, l}];\)\[IndentingNewLine]
Print["\<yy=\>", yy]\[IndentingNewLine]
gg2 = Plot[yy, {x, 0, 8},
PlotStyle -> RGBColor[0, 0, 1]]\[IndentingNewLine]
Show[gg1, gg2]\[IndentingNewLine]
uu = yy /. x -> 9\[IndentingNewLine]
v = uu - 35573\)