Re: [R] NEWTON ALGORITHM

2011-12-22 Thread Berend Hasselman
Berend Hasselman wrote > > . > > g <- function(x){ > out <- (2/(3))*exp(x^2)-(20)*log(x) > return(out) > } > > gp <- function(x) { > out <- (4/3)*exp(x) - 20/x > return(out) > } > function gp is incorrect. It should be gp <- function(x) { out <- (4/3)*x*ex

Re: [R] NEWTON ALGORITHM

2011-12-22 Thread Berend Hasselman
delongman wrote > > Hi, > > My name is Curtis and I'm a 1st year student in Biochemistry at the > University of Geneva. I need some help completing the code for my NEWTON > ALGORITHM. It is a bonus exercice to our autumn semester maths exam and we > can hand it in or not. Usually people copy and

Re: [R] NEWTON ALGORITHM

2011-12-22 Thread Uwe Ligges
On 21.12.2011 22:43, Curtis Moyo wrote: Hi, My name is Curtis and I'm a 1st year student in Biochemistry at the University of Geneva. I need some help completing the code for my NEWTON ALGORITHM. It is a bonus exercice to our autumn semester maths exam and we can hand it in or not. Usually peo

[R] NEWTON ALGORITHM

2011-12-22 Thread Curtis Moyo
Hi, My name is Curtis and I'm a 1st year student in Biochemistry at the University of Geneva. I need some help completing the code for my NEWTON ALGORITHM. It is a bonus exercice to our autumn semester maths exam and we can hand it in or not. Usually people copy and paste but I decided to sit down