I had a weird problem using JAGS for Bayesian data analysis. Say in a loop, I have
for (i in 1:10) {
A[i] <- B[i]*exp(-C[i])
}
whenever C[i] is large and results in exp(-C[i]) smaller than 10^-16, A[i] takes the value of A[i-1]. It looks like JAGS cannot handle the small exponential value, but 10^-16 isn't a small number.