help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom tolerance tests


From: Ed Meyer
Subject: Re: Custom tolerance tests
Date: Tue, 23 Oct 2012 09:54:10 -0700



On Tue, Oct 23, 2012 at 6:06 AM, Joza <address@hidden> wrote:
Normally, when I write a zero finding algorithm, at stage k, my convergence
test tests whether or not the obtained value is less than machine epsilon
times the the previous value.

IF   x_k < mach_eps x_(k-1)   then STOP

But if you use say fzero or fsolve, the built-in functions, oen can only set
an absolute tolerance. That is, one can only set a value such that the
algorithm will stop when it obtains a value less than the specified
tolerance. You cannot use the kind of test above, where you test consecutive
values.

Is there a way around this that I am not aware of? What would be the best
way to specify the tolerance for say, fzero, in line with the tolerance test
above?



--
View this message in context: http://octave.1599824.n4.nabble.com/Custom-tolerance-tests-tp4645655.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave

I believe you want to use the TolX option (see fsolve documentation)

--
Ed Meyer


reply via email to

[Prev in Thread] Current Thread [Next in Thread]