mviljamaa
2015-Nov-28 00:08 UTC
[R] Using uniroot on c(0, 1) when the function does not change sign in this interval?
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?
Bert Gunter
2015-Nov-28 16:12 UTC
[R] Using uniroot on c(0, 1) when the function does not change sign in this interval?
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.