From: Yu Li on
Dear Alan,

I did what you suggested and it seems that things work out nicely. Thanks a million!
Best
Yu

Alan Weiss <aweiss(a)mathworks.com> wrote in message <i02brb$do2$1(a)fred.mathworks.com>...
> fzero looks for a change of sign. You cannot always find a true zero
> because of various issues involved in floating-point arithmetic.
>
> If your initial solution x = fzero(yourFunction,x0) is not sufficiently
> accurate, you can
> 1. Create an option structure with a smaller value of TolX:
> opts = optimset('TolX',2*eps(x));
> 2. Solve the problem again using the options structure
> x2 = fzero(yourFunction,x,opts);
>
> I think you would do better to scale your problem so the parameters are
> not so small, but the procedure I just described might work. You might
> be running into issues of round-off error or other numerical problems
> with your unscaled problem.
>
> Alan Weiss
> MATLAB mathematical toolbox documentation
>
> On 6/24/2010 12:52 PM, Yu Li wrote:
> > Hi,
> >
> > I checked. I got the same answer for x, x+eps(x) and x-eps(x). what does
> > it mean then? Thanks a lot.
> >
> > Best
> > Yu