
17 Apr
2014
17 Apr
'14
5:29 p.m.
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.Functorcontaining (<$), but it not currently coming into scope from the Prelude.
+1 to this proposal as a whole. Jacques