News for hackers. Stuff that matters.
Re:Implementing the Exponential Function by fractionalhare on Monday June 29, 2020 @09:09AM (#23677211)
This is a good explanation of range reduction with respect to floating point. I use a similar (but not quite identical) techniue in the article; I may expand it with more information about what's happening with the exponent and mantissa bits like you did here.

That reminds me, I'm using the domain [-1, 1] for range reduction. But by symmetry of e^x, I can actually use [0, 1]. Thank you!

Re:Implementing the Exponential Function by dietrichepp on Monday June 29, 2020 @11:07PM (#23686074)
Depending on the particular architecture you may prefer [-0.5, +0.5].