[R] newton raphson

Ben Bolker bbolker at gmail.com
Fri Jun 3 16:25:24 CEST 2011


Uwe Ligges <ligges <at> statistik.tu-dortmund.de> writes:

> 
> Dear Jesper,
> 
> since you want to write this yourself it is obvious this is a homework 
> problem. Please ask your supervisor for support on homeworks.
> 
> Uwe Ligges
> 
> On 02.06.2011 22:28, Jesper Hörnblad wrote:
> > Hi
> >
> > I would like to use the newton raphson method to find the root if the
> > equation x^3-0.165*x+0.0003993 without using any readliy available program
> > in r but instead by writing my own code and loop. the  problem is that i
> > really cant understand how to write the loop so that it keeps using the last
> > calcualted values. if anyone could help me or give me some tips i would
> > deeply appriciate it
> >

  Alternatively, give us a plausible reason for needing to do this in
some applied context (i.e. supporting evidence that this isn't homework),
*and* (perhaps more importantly) show us how far you've gotten on your
own.



More information about the R-help mailing list