Skip to content
Prev 316896 / 398503 Next

Exponentiate very large numbers

I stayed out of this one thinking it was probably a homework exercise.
After others have responded, I'll go ahead with my gloss on
Bill's function...

The specific problem is really of the form

      exp(a) - exp(a+eps) = exp(a)*(1-exp(eps))

So even though we can't compute exp(1347), we can
compute 1-exp(eps) for eps of the desired size.
The given eps was
[1] 1.697415

So the answer is exp(1347)*(1-exp(1.697415)),
and as Bill noted, you can compute the log
of the absolute value of that quantity...
[1] 1348.495

albyn
On 2013-02-05 10:01, William Dunlap wrote: