[R] demo(nlm) error under R 0.99.0
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Feb 9 00:38:18 CET 2000
brian.o'gorman at noaa.gov writes:
> --simple boundary
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> Content-Description: "cc:Mail Note Part"
>
> I can't seem to get the demo(nlm) to run under R version 0.99.0
> Anyone know a solution?
>
>
> > fgh <- function(x) {
> gr <- function(x1, x2) {
> c(-400 * x1 * (x2 - x1 * x1) - 2 * (1 - x1), 200 * (x2 -
> x1 * x1))
> }
> h <- function(x1, x2) {
> a11 <- 2 - 400 * (x2 - x1 * x1) + 800 * x1 * x1
> a21 <- -400 * .... [TRUNCATED]
>
> > nlm(fgh, c(-1.2, 1), hessian = TRUE)
> Segmentation fault (core dumped)
A nasty little bug in uncmin.c: in line 1820, change i++ to j++ !
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list