[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[fpu] Re: status
On Thu, Apr 27, 2000 at 10:29:14AM -0700, Larry Doolittle wrote:
> Near zero, ln(x-1) = x - 0.5*x^2 + ...
> If you implement this function by first subtracting one,
> you lose all your precision for small numbers.
Doh! Pressed the "s" key too soon.
Of course, that should read:
Near zero, ln(x+1) = x - 0.5*x^2 + ...
If you implement this function by first adding one,
you lose all your precision for small numbers.
> Same for exp(x-1).
And that, in turn, should be:
Same for exp(x)-1.
- Larry