MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   Mathematica论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=34)
-   -   [求助]12.4037+1065/T-lnT+x1+0.6159/(x2*(x3+T))=0 (https://www.labfans.com/bbs/showthread.php?t=5075)

ni 2008-10-30 19:22

[求助]12.4037+1065/T-lnT+x1+0.6159/(x2*(x3+T))=0
 
12.4037+1065/T-lnT+x1+0.6159/(x2*(x3+T))=0
其中,T是[318 388]区间内的任意温度,如何回归得出x1 x2 x3:lovely:

lifereader 2008-11-09 09:52

回复: [求助]12.4037+1065/T-lnT+x1+0.6159/(x2*(x3+T))=0
 
用FindFit命令可以办到。。。。。
:smile:

jAc 2009-01-10 19:41

回复: [求助]12.4037+1065/T-lnT+x1+0.6159/(x2*(x3+T))=0
 
利用下面的代码,取500组数据{x1,x2,x3},然后去平均值
t = 1; p = {}; While[t < 500, s = {}; n = 1;
While[n <= 3, T = RandomReal[{318, 388}];
s = Insert[s,
12.4037 + 1065/T - Log[T] + x1 + 0.6159/(x2*(x3 + T)) == 0, -1];
n++]; p =
Insert[p, {x1, x2, x3} /. Flatten[Solve[s, {x1, x2, x3}]], -1];
t++]
Mean[p]
这样就得到了平均值{-4.96599, -0.000332984, 50.2058}
做回归要知道拟合类型,你没有给,我就求不出了


所有时间均为北京时间。现在的时间是 11:34

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.