fsolve
显示 更早的评论
Is there a way to accelerate the fsolve function, with the least lost of precision possible. In:
beta(n+1)=fsolve(F,beta(n))
6 个评论
Andrew Newell
2011-6-17
Why are you re-solving the same problem? If beta(1) is your initial guess, beta(2) should already be accurate to the default tolerance. Perhaps you really want to reduce the tolerance?
Sean de Wolski
2011-6-17
Unless F is dependent on persistent variables.
Liber-T
2011-6-20
Sean de Wolski
2011-6-20
Why don't you show us some of the code in F to see if that can be further optimized.
Liber-T
2011-6-20
Liber-T
2011-6-20
采纳的回答
更多回答(1 个)
Walter Roberson
2011-6-17
0 个投票
fsolve() can be much faster if you can constrain the range to search in.
2 个评论
Liber-T
2011-6-17
Walter Roberson
2011-6-20
Sorry it turns out that fsolve() has no way of constraining ranges. fzero() can operate over an interval, if your function has only one independent variable.
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!