Hello,

>
> I must be missing something very obvious, but I just cannot see it.
> 
The hardest to find errors.
Wrong manual calculation in t1, powers have precedence right to left and
before additions.
t1b <- 10^(params[1]-xx)^params[2]
t3b <- 1 + t1b
t4b <- t2/t3b
t5b <- params[4] + t4b
all.equal(yy, t5b)
TRUE

Hope this helps,

Rui Barradas


--
View this message in context: 
http://r.789695.n4.nabble.com/strange-differences-in-vector-operation-versus-manual-calculation-tp4603600p4603707.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to