- 积分
- 0
- 注册时间
- 2011-2-26
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2011-4-17 12:41:07
|
显示全部楼层
来自 美国
本帖最后由 zsmiup 于 2011-4-17 23:36 编辑
wow 谢谢 高手
不过,我将您的代码 打进去了 却得到不同的结果
如下
sol = FindRoot[{(3 - \[Rho]g) (3 - \[Rho]l) (\[Rho]g + \[Rho]l) == T,
(\[Rho]l - \[Rho]g) (6 - \[Rho]g - \[Rho]l) ==
1/3*T*Log[(\[Rho]l (3 - \[Rho]g))/(\[Rho]g (3 - \[Rho]l))]}, {{\
\[Rho]l, Random[]}, {\[Rho]g, Random[]}}, MaxIterations -> 100]]
Table[ff[x], {x, 0, 1, 0.1}][/code][/code]
During evaluation of In[35]:= FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the merit function. You may need more than MachinePrecision digits of working precision to meet these tolerances. >>
During evaluation of In[35]:= FindRoot::cvmit: Failed to converge to the requested accuracy or precision within 100 iterations. >>
During evaluation of In[35]:= FindRoot::cvmit: Failed to converge to the requested accuracy or precision within 100 iterations. >>
During evaluation of In[35]:= FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the merit function. You may need more than MachinePrecision digits of working precision to meet these tolerances. >>
During evaluation of In[35]:= FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the merit function. You may need more than MachinePrecision digits of working precision to meet these tolerances. >>
During evaluation of In[35]:= General::stop: Further output of FindRoot::lstol will be suppressed during this calculation. >>
During evaluation of In[35]:= FindRoot::cvmit: Failed to converge to the requested accuracy or precision within 100 iterations. >>
During evaluation of In[35]:= General::stop: Further output of FindRoot::cvmit will be suppressed during this calculation. >>
Out[36]= {{\[Rho]l -> 0.285354, \[Rho]g -> -0.285354}, {\[Rho]l ->
0.00681528 + 2.04605*10^-15 I, \[Rho]g -> -0.00715281 -
1.79037*10^-15 I}, {\[Rho]l -> -2.5948*10^-8 +
1.20629*10^-8 I, \[Rho]g -> -2.59477*10^-8 +
1.20634*10^-8 I}, {\[Rho]l -> -9.05927*10^-9, \[Rho]g -> \
-9.05932*10^-9}, {\[Rho]l ->
0.0187468 - 0.0257193 I, \[Rho]g -> -0.0109141 +
0.0154141 I}, {\[Rho]l ->
0.0317468 - 0.000638149 I, \[Rho]g -> -0.0165133 +
0.000337336 I}, {\[Rho]l -> -7.67425*10^-8 +
1.23146*10^-10 I, \[Rho]g -> -7.67422*10^-8 +
1.24441*10^-10 I}, {\[Rho]l -> -1.18052*10^-8, \[Rho]g -> \
-1.18052*10^-8}, {\[Rho]l -> -4.96428*10^-7, \[Rho]g -> \
-4.96425*10^-7}, {\[Rho]l -> -3.93091*10^-8, \[Rho]g -> \
-3.93093*10^-8}, {\[Rho]l ->
0.11282 + 2.14641*10^-15 I, \[Rho]g -> -0.0525342 -
4.15596*10^-16 I}} |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|