Wolfram mathematica 为什么mathematica不能解我的方程?
我无法理解为什么mathematica不能解这个方程:Wolfram mathematica 为什么mathematica不能解我的方程?,wolfram-mathematica,equation,Wolfram Mathematica,Equation,我无法理解为什么mathematica不能解这个方程: In[22]:= Solve[1/x^12 - 2/x^6 + 1/2 (-2 + x)^2 HeavisideTheta[-2 + x] == 0] During evaluation of In[22]:= Solve::nsmet: This system cannot be solved with the methods available to Solve. >> Out[22]= Solve[1/x^12 - 2/x
In[22]:= Solve[1/x^12 - 2/x^6 + 1/2 (-2 + x)^2 HeavisideTheta[-2 + x] == 0]
During evaluation of In[22]:= Solve::nsmet: This system cannot be solved with the methods available to Solve. >>
Out[22]= Solve[1/x^12 - 2/x^6 + 1/2 (-2 + x)^2 HeavisideTheta[-2 + x] == 0]
使用mathematica 9.0.1.0
编辑:
FindRoot通常更具攻击性
FindRoot[1/x^12-2/x^6+1/2(-2+x)^2 HeavisideTheta[-2+x]==0, {x, 3}]
这几乎会立即返回解决方案。FindRoot通常更具攻击性
FindRoot[1/x^12-2/x^6+1/2(-2+x)^2 HeavisideTheta[-2+x]==0, {x, 3}]
这几乎会立即返回解。如果你想寻找解析解,而这正是Solve所做的, 假设阶跃函数的值为0或1,使用“求解”并根据结果检查阶跃函数假设:
Select[ Solve[1/x^12 - 2/x^6 + 1/2 (-2 + x)^2 (0) == 0] ,
HeavisideTheta[-2 + x /. #] == 0 & ]
{x->-1/2^1/6},{x->1/2^1/6}
{{x->Root[2-41^6+41^12-41^13+1^14&,2]}
在这三个解中,我想你想要的是最后一个,14阶多项式的根,你需要数值计算:
N[Root[2 - 4 #1^6 + 4 #1^12 - 4 #1^13 + #1^14 &, 2] ]
2.18999
如果你想寻找解析解,Solve就是这么做的, 假设阶跃函数的值为0或1,使用“求解”并根据结果检查阶跃函数假设:
Select[ Solve[1/x^12 - 2/x^6 + 1/2 (-2 + x)^2 (0) == 0] ,
HeavisideTheta[-2 + x /. #] == 0 & ]
{x->-1/2^1/6},{x->1/2^1/6}
{{x->Root[2-41^6+41^12-41^13+1^14&,2]}
在这三个解中,我想你想要的是最后一个,14阶多项式的根,你需要数值计算:
N[Root[2 - 4 #1^6 + 4 #1^12 - 4 #1^13 + #1^14 &, 2] ]
2.18999
好的,谢谢你的提示。好的,谢谢你的提示。