이전 댓글 표시
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!