| MATLAB Central > MATLAB Newsreader > fzero f(x) vs. fminbnd f(x)^2 |
|
|
|
Subject: fzero f(x) vs. fminbnd f(x)^2 From: Ivan Werning Date: 17 Mar, 2010 15:06:25 Message: 1 of 10 |
|
I need to find the zero of a function, many times, actually, within a loop, in my code. I am looking to improve the performance. |
|
"Ivan Werning" <iwerningl@yahoo.com> wrote in message <hnqr5h$gl7$1@fred.mathworks.com>... |
|
Subject: fzero f(x) vs. fminbnd f(x)^2 From: John D'Errico Date: 17 Mar, 2010 15:48:10 Message: 3 of 10 |
|
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hnqrtd$sth$1@fred.mathworks.com>... |
|
"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hnqtjq$s0v$1@fred.mathworks.com>... |
|
Subject: fzero f(x) vs. fminbnd f(x)^2 From: John D'Errico Date: 17 Mar, 2010 16:41:22 Message: 5 of 10 |
|
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hnqufr$dvv$1@fred.mathworks.com>... |
|
"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hnr0ni$md2$1@fred.mathworks.com>... |
|
Subject: fzero f(x) vs. fminbnd f(x)^2 From: Ivan Werning Date: 17 Mar, 2010 22:32:23 Message: 7 of 10 |
|
Thanks to both of you for all the replies. |
|
"Ivan Werning" <iwerningl@yahoo.com> wrote in message <hnrl9n$jp8$1@fred.mathworks.com>... |
|
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hnrok2$bel$1@fred.mathworks.com>... |
|
Subject: fzero f(x) vs. fminbnd f(x)^2 From: Ivan Werning Date: 19 Mar, 2010 00:54:05 Message: 10 of 10 |
|
I guess from your example both had the potential to get their in one iteration. However, the fminbnd has to estimate a 2nd derivative, so it has to do more function evaluations. It might have done that with some error, so it had more iterations until it converged. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
