【急】如何用mathematica求方程 cotx=1/x-x/2 最接近于0的两个正根?

【急】如何用mathematica求方程 cotx=1/x-x/2 最接近于0的两个正根?
用FindRoot[Cot[x]-1/x+x/2==0,{x,0}]求会报错,而且还要求两个
\(Power::"infy" \(\(:\)\(\ \)\)
"Infinite expression \(1\/0.`\) encountered."\)
\[Infinity]::"indet":"Indeterminate expression \(\(\(0.` \[InvisibleSpace]\
\)\) + \*InterpretationBox[\"ComplexInfinity\",DirectedInfinity[]] + \
\*InterpretationBox[\"ComplexInfinity\",DirectedInfinity[]]\) encountered."
FindRoot::"frnum":"Function \({Indeterminate}\) is not a length \(1\) \
list of numbers at \({x}\) = \({0.`}\)."
数学人气:930 ℃时间:2020-02-03 23:00:39
优质解答
Cot[x] - 1/x + x/2在0处是奇点,所以FindRoot[Cot[x]-1/x+x/2==0,{x,0}]当然不行.你应该FindRoot[Cot[x]-1/x+x/2==0,{x,0.1}]或FindRoot[Cot[x]-1/x+x/2==0,{x,-0.1}]不过注意到该函数唯一的“根”:0被抠掉了,所以...
我来回答
类似推荐
请使用1024x768 IE6.0或更高版本浏览器浏览本站点,以保证最佳阅读效果。本页提供作业小助手,一起搜作业以及作业好帮手最新版!
版权所有 CopyRight © 2012-2024 作业小助手 All Rights Reserved. 手机版