Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: is a loop going to be the best method?
Date: Tue, 10 Feb 2009 00:17:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <gmqh1u$nd8$1@fred.mathworks.com>
References: <gmpbg1$doh$1@fred.mathworks.com> <gmpd89$7np$1@fred.mathworks.com> <gmq1u5$3jv$1@fred.mathworks.com> <gmqf7q$hkj$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1234225022 23976 172.30.248.35 (10 Feb 2009 00:17:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 10 Feb 2009 00:17:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:517186

"John D'Errico" <woodchips@rochester.rr.com> wrote in message <gmqf7q$hkj$1@fred.mathworks.com>...
> ......
> According to the help for fzero:
> 
> "FUN accepts real scalar input X and returns a real
> scalar function value F, evaluated at X."
> 
> This suggests that fzero presumes its objective
> function is not vectorized.
> ......

  Yes, I think you must be right, John.  The documentation which I consulted (and didn't read thoroughly enough) says: "fun is the function whose zero is to be computed. It accepts a vector x and returns a scalar f, ...", the vector property presumably allowing for multiple-variable functions.

Roger Stafford