help-octave
[Top][All Lists]
Advanced

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

Re: fzero tolerance issue ... and a related bug


From: Joza
Subject: Re: fzero tolerance issue ... and a related bug
Date: Thu, 18 Oct 2012 10:46:32 -0700 (PDT)

So related to all that above, how does one find the root of a function that
is always positive, or zero, but never negative? For instance, an absolute
value:  f(x) = abs(x - 2)

This has root 2, but I can't give it an initial bracket [x1,x2] since
f(x2)*f(x2) >= 0.
Indeed, how could fzero even find an initial bracket?

So how can one solve such a simple equation with fzero?



--
View this message in context: 
http://octave.1599824.n4.nabble.com/fzero-tolerance-issue-and-a-related-bug-tp4645391p4645433.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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