<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 2014-04-17 15:08, Edward Kmett
wrote:<br>
</div>
<blockquote
cite="mid:CAJumaK_KpHyX7i+uw6zj8QBO=ETrD6fAoP1AvzJC=PfW8ytDag@mail.gmail.com"
type="cite">
<div>
<div>On Thu, Apr 17, 2014 at 2:48 PM, Henning Thielemann <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:schlepptop@henning-thielemann.de"
target="_blank">schlepptop@henning-thielemann.de</a>></span>
wrote:<br>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I
think one should add default implementations. They don't
have an numerical advantage but they save programmers from
code breakage.</blockquote>
<div> </div>
<div>
<div>I included the default definitions in code snippet in
the proposal, so user code that remains unaware of them
would be unaffected, while packages like compensated, or a
wrapper around libqd could implement them as needed.
<div>
<br>
</div>
<div>
<div
style="font-size:12.727272033691406px;font-family:arial,sans-serif"><font
face="courier new, monospace">expm1 :: Floating a
=> a -> a<br>
expm1 x = exp x - 1</font></div>
<div
style="font-size:12.727272033691406px;font-family:arial,sans-serif">
<font face="courier new, monospace"><br>
</font></div>
<div
style="font-size:12.727272033691406px;font-family:arial,sans-serif"><font
face="courier new, monospace">log1p :: Floating a
=> a -> a<br>
log1p x = log (1 + x)</font></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
On the contrary, code that explicitly uses these functions is likely
to need the precision. Defaults would cause subtle breakage.<br>
<br>
-- Scott<br>
</body>
</html>