[R] strange differences in vector operation versus manual calculation
Rui Barradas
ruipbarradas at sapo.pt
Wed May 2 18:22:09 CEST 2012
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.
More information about the R-help
mailing list