mathematica 线性数据拟合怎么拟合出来的斜率相差这么大的?望指教rr = {{0.34506,0},{0.35466,0.005},{0.36366,0.01},{0.37344,0.015},{0.38256,0.02},{0.392,0.025}{0.4015,0.03},{0.41124,0.035},{0.42044,0.04},{0.43014,0.045}}k = Fit[rr,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 16:56:17
mathematica 线性数据拟合怎么拟合出来的斜率相差这么大的?望指教rr = {{0.34506,0},{0.35466,0.005},{0.36366,0.01},{0.37344,0.015},{0.38256,0.02},{0.392,0.025}{0.4015,0.03},{0.41124,0.035},{0.42044,0.04},{0.43014,0.045}}k = Fit[rr,
mathematica 线性数据拟合
怎么拟合出来的斜率相差这么大的?望指教
rr = {{0.34506,0},{0.35466,0.005},{0.36366,0.01},{0.37344,0.015},{
0.38256,0.02},{0.392,0.025}{0.4015,0.03},{0.41124,
0.035},{0.42044,0.04},{0.43014,0.045}}
k = Fit[rr,{1,x},x]
f = Plot[k,{x,0.34,0.45}]
g = ListPlot[rr]
Show[f,g]
mathematica 线性数据拟合怎么拟合出来的斜率相差这么大的?望指教rr = {{0.34506,0},{0.35466,0.005},{0.36366,0.01},{0.37344,0.015},{0.38256,0.02},{0.392,0.025}{0.4015,0.03},{0.41124,0.035},{0.42044,0.04},{0.43014,0.045}}k = Fit[rr,
是你在{0.392,0.025}{0.4015,0.03}这两项之间缺少了一个逗号,所以mathematica把它们乘起来作为一项了,所以作出来的散点图会看到有一个点的横坐标特别小,在0.1左右的地方
写错了吧?估计是手误。
x=g
L SEE
试试用FindFit的函数...这个问题还真有点莫名其妙...
X=G
X=G