fsolve函数解非线性方程。

3 ビュー (過去 30 日間)
pavepin
pavepin 2022 年 11 月 25 日
回答済み: satey 2022 年 11 月 25 日
用fsolve函数求解非线性方程,可以求得结果,但在Command Window里出现Optimization terminated: first-order optimality is less than options.TolFun.的提示。这个提示是什么意思?求解有错误吗?

採用された回答

satey
satey 2022 年 11 月 25 日
这是 fsolve 结束的一种条件,意思是,每次迭代得到的方程左边数值已经小于 TolFun了(我们期待方程的左边为0),数值计算里通常选择TolFun是一个很小的数,如果你没有修改过,那么默认是10的-6次方
fsolve 里还有很多类似的参数,都可能决定结束迭代过程,你不妨好好看看那些参数的含义,help里讲得很清楚:http://www.mathworks.com/help/optim/ug/fsolve.html

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange非线性方程组 についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!