Proposal: Add log1p and expm1 to GHC.Float.Floating

Aleksey Khudyakov alexey.skladnoy at gmail.com
Mon Apr 21 09:24:15 UTC 2014


On 21 April 2014 09:38, John Lato <jwlato at gmail.com> wrote:
> I was just wondering, why not simply numerically robust algorithms as
> defaults for these functions?  No crashes, no errors, no loss of precision,
> everything would just work.  They aren't particularly complicated, so the
> performance should even be reasonable.
>
I think it's best option. log1p and exp1m come with guarantees
about precision. log(1+p) default makes it impossible to depend in such
guarantees. They will silenly give wrong answer


More information about the Libraries mailing list