<div dir="ltr"><div>Hello Mat<br><br></div>Just curious, why the preferred solution isn't to call the system math library? As it says in the README you reference below, <br><ul><li>One good solution would be to always call the system
math library for these functions.</li></ul><p>Hope this is isn't a stupid question.</p><p>Thanks</p><p>George</p><p><br></p><br><br><div><div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jun 2, 2018 at 2:23 AM Matt Peddie <<a href="mailto:mpeddie@gmail.com">mpeddie@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi devs,<br>
<br>
I tried to use asinh :: Double -> Double and discovered that it's<br>
inaccurate compared to my system library (GNU libm), even returning<br>
-Infinity in place of finite values in the neighborhood of -22 for<br>
large negative arguments. `atanh` is also inaccurate compared to the<br>
system library. I wrote up a more detailed description of the problem<br>
including plots in the README file at<br>
<a href="https://github.com/peddie/ghc-inverse-hyperbolic" rel="noreferrer" target="_blank">https://github.com/peddie/ghc-inverse-hyperbolic</a> -- this repository is<br>
package that can help you examine the error for yourself or generate<br>
the plots, and it also contains accurate pure-Haskell translations of<br>
the system library's implementation for these functions. What's the<br>
next step to fixing this in GHC?<br>
<br>
Cheers<br>
<br>
Matt Peddie<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div></div></div></div>