【急】如何用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.`}\)."
用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被抠掉了,所以...
我来回答
类似推荐
猜你喜欢
- 1I can think of many cases ______students obviously
- 2y=tanx-cotx的周期?
- 3写一句话:用上比喻和拟人两种修辞手法
- 4巧填礼貌语.例:像人祝贺说:“恭喜”,),中途先走说( )
- 5如何修改病句我校两个六年级的同学正在进行激烈的拔河比赛
- 6一个数比39与24的和少0,7,这个数是? 方程解答
- 7数学高手们帮帮忙解答复数问题哈 谢了!
- 8__ you __ (have) your breakfast,Linda?Yes,I had it just now.
- 9用顶真的修辞方法完成下列词的转换
- 10张明期末考试语文,英语,常识三科平均分是74分,数学成绩公布后,他的平均成绩提高了3分,张明数学考了多少分?