- fzero: It finds the root of a function (of one variable) in an interval [a,b]. It REQUIRES that f(a)*f(b)<0. fzeros uses a combination of bisection, secant, and inverse quadratic interpolation methods. Not every polynomial can be rooted by fzero: for instance x^2 doesn't work, because it has no sign change.
- fsolve: solves a SYSTEM of non-linear equations F(x) where x is multivariate. It use three different methods 'trust-region-dogleg' (default), 'trust-region', and 'levenberg-marquardt', depending on user needs.
What is the logic behind fzero and fsolve which make fsolve's speed faster than fzero?
50 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yong Siew Kuan
am 12 Okt. 2016
Kommentiert: Dariusz Skibicki
am 23 Mär. 2021
What is the logic behind fzero and fsolve which make fsolve's speed faster than fzero? Suppose that there is a polynomial equation, it can be solved by root function in shortest time, following by fsolve and fzero. Why is it so?
0 Kommentare
Akzeptierte Antwort
Massimo Zanetti
am 12 Okt. 2016
Bearbeitet: Massimo Zanetti
am 12 Okt. 2016
The functions fsolve and fzero are not meant to solve the same problem. Specifically:
1 Kommentar
Dariusz Skibicki
am 23 Mär. 2021
Thank you very much. The only sensible and simple answer. The only thing missing is the fact that fsolve is a Newtonian method.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Optimization Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!