search for: inputsingle

Displaying 2 results from an estimated 2 matches for "inputsingle".

2010 Jan 26
1
newton method for single nonlinear equation
...like to solve for z values using newton iteration method.  I 'm not sure which part of the code is wrong since I'm not very good at programming but would like to learn.  There seem to be some output but what I expected is a vector of z values.  Thank you so much for any help given.   newton.inputsingle <- function(pars,n) {  runi    <- runif(974, min=0, max=1)    lendt   <- length(runi)    ## Parameter to estimate    z <- vector(length=lendt, mode= "numeric")    z  <- pars[1]       ## Constant value        alp  <- 2.0165 ; rho <- 0.868;    c    <- sqrt(pi)/(g...
2010 Jan 26
1
Newton method
...like to solve for z values using newton iteration method.  I 'm not sure which part of the code is wrong since I'm not very good at programming but would like to learn.  There seem to be some output but what I expected is a vector of z values.  Thank you so much for any help given.   newton.inputsingle <- function(pars,n) {  runi    <- runif(974, min=0, max=1)    lendt   <- length(runi)    ## Parameter to estimate    z <- vector(length=lendt, mode= "numeric")    z  <- pars[1]       ## Constant value        alp  <- 2.0165 ; rho <- 0.868;    c    <- sqrt(pi)/(g...