[R] Is there a bisection method in R?

Greg Snow Greg.Snow at imail.org
Fri Sep 17 22:11:09 CEST 2010


Why does it matter what method is used?  The uniroot function used a quicker method than bisection, but solves the same problem, so why do you need bisection?  The only reason I can think is this is a homework problem, in which case we don't do homework.

In fact I have assigned this as homework before (to write a function to find roots using bisection) so I know it has been done, and is not that hard for you to do yourself.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Gregory Gentlemen
> Sent: Friday, September 17, 2010 1:29 PM
> To: huang min; David Winsemius
> Cc: r-help at r-project.org
> Subject: Re: [R] Is there a bisection method in R?
> 
> If uniroot is not a bisection method, then what function in R does use
> bisection?
> 
> Thanks.
> 
> --- On Fri, 9/10/10, David Winsemius <dwinsemius at comcast.net> wrote:
> 
> From: David Winsemius <dwinsemius at comcast.net>
> Subject: Re: [R] Is there a bisection method in R?
> To: "huang min" <minhuangr at gmail.com>
> Cc: "Gregory Gentlemen" <gregory_gentlemen at yahoo.ca>, r-help at r-
> project.org
> Received: Friday, September 10, 2010, 9:56 PM
> 
> 
> On Sep 10, 2010, at 8:35 PM, huang min wrote:
> 
> > uniroot
> 
>  ... is not a bisection method.
> 
> >
> > On Sat, Sep 11, 2010 at 6:10 AM, Gregory Gentlemen <
> > gregory_gentlemen at yahoo.ca> wrote:
> >
> >> Dear fellow R-users,
> >>
> >> Is there a function that does the bisection method? I was unable to
> find
> >> one.
> >>
> >> Thanks in advance.
> >> Gregory
> 
> --David Winsemius, MD
> West Hartford, CT
> 
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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