Mostrar comentarios más antiguos
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 comentarios
Andrew Newell
el 17 de Jun. de 2011
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
el 17 de Jun. de 2011
Unless F is dependent on persistent variables.
Liber-T
el 20 de Jun. de 2011
Sean de Wolski
el 20 de Jun. de 2011
Why don't you show us some of the code in F to see if that can be further optimized.
Liber-T
el 20 de Jun. de 2011
Liber-T
el 20 de Jun. de 2011
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 17 de Jun. de 2011
0 votos
fsolve() can be much faster if you can constrain the range to search in.
2 comentarios
Liber-T
el 17 de Jun. de 2011
Walter Roberson
el 20 de Jun. de 2011
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.
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!