s********1 发帖数: 54 | 1 I would like to calculate exp(-f(x))/exp(-g(x)) in R. While f(x) and g(x)
both are vary large, say around 1000, R shows the answer as NaN. How could I
get the exact answer using R? | Y****a 发帖数: 243 | 2 exp(-f(x))/exp(-g(x))
= exp(-f(x)-(-g(x)))
= exp(-f(x)+g(x))
= exp(g(x)-f(x)) |
|