[Haskell-cafe] Default implementation of Floating (**)

Fabrício Olivetti de França fabricio.olivetti at gmail.com
Wed May 19 17:08:06 UTC 2021


>
> I guess he expects (-2)**(-2) = 1/4.
>
> But defined this way, (**) would be rather discontinuous

indeed, that's what I was expecting. For Float and Double (-2)**(-2) =
1/4, but for the interval arithmetic library that uses the default
implementation, it doesn't.


More information about the Haskell-Cafe mailing list