+1 to this proposal as a whole.On 14-04-17 01:15 PM, Edward Kmett wrote:
log1p and expm1 are C standard library functions that are important for work with exponentials and logarithms.
I propose adding them to the Floating class where it is defined in GHC.Float.
We do not have to export these from Prelude. My knee-jerk reaction is that we probably shouldn't. The names are kind of awful, but are standard across the rest of the industry. We already have a precedent of not exporting clutter in the classes in the existing Data.Functor containing (<$), but it not currently coming into scope from the Prelude.
Jacques
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://www.haskell.org/mailman/listinfo/libraries