[R] Using uniroot on c(0, 1) when the function does not change sign in this interval?

Bert Gunter bgunter.4567 at gmail.com
Sat Nov 28 17:12:27 CET 2015


Is this a homework problem? This list has a no homework policy.

Cheers,
Bert


Bert Gunter

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
   -- Clifford Stoll


On Fri, Nov 27, 2015 at 4:08 PM, mviljamaa <mviljamaa at kapsi.fi> wrote:
> How can I use uniroot to find a root in the interval (0,1) when my function
> does not change sign in this interval.
>
> I've tried plugging in some values and seems like e.g. f(50) < 0 and then I
> can pick c(0,50). But this sounds really weird, given that I need to find a
> root in (0,1).
>
> So what are my options? Perhaps another function?
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list