News for hackers. Stuff that matters.
Re:Exploiting the Math.expm1 typing bug in V8 by dbaupp on Thursday January 03, 2019 @01:54AM (#18813386)
expm1 avoids catastrophic cancellation (due to finite precision floating point), and so is more accurate for x close to zero than naive(x) = exp(x) - 1, e.g. expm1(1e-100) != 0, but naive(1e-100) = 0.

There are no comments on this comment yet.