Re: [R] sum over extremely small numbers

2012-08-16 Thread Petr Savicky
On Thu, Aug 16, 2012 at 01:41:17PM -0400, Jie wrote: > Dear All, > > I am evaluating the value of loglikelihood and it ends up with the sum of > tiny numbers. > Below is an example: suppose I would like to calculate sum_i (log (sum_j x > [i, j] )), the index of log (x) is in the range, say (-2000,

[R] sum over extremely small numbers

2012-08-16 Thread Jie
Dear All, I am evaluating the value of loglikelihood and it ends up with the sum of tiny numbers. Below is an example: suppose I would like to calculate sum_i (log (sum_j x [i, j] )), the index of log (x) is in the range, say (-2000, 0). I am aware that exp(-744.5) will be expressed as 0 in 32 bit