[Haskell-cafe] Numerics (was: Re: Trouble with asinh)

Jerzy Karczmarczuk jerzy.karczmarczuk at unicaen.fr
Fri Sep 17 18:31:24 UTC 2021


Le 17/09/2021 à 19:16, Carter Schonwald a écrit :

> Hey Barak, is Common Lisp the only extant language to take those 
> issues seriously or are there other examples or better ones?

// tan / atan troubles cited by Barak.

Common Lisp??

But even the ugly Python reacts better to such examples:

*>>> from numpy import *
 >>> rr, ii = 1.0e-20+0j, 1.0e-20j
*

*>>> tan(rr),arctan(rr)
((1e-20+0j), (1e-20+0j))
 >>> tan(ii),arctan(ii)
(1e-20j, 1e-20j)*

*==*

This works also with cmath (with arctan as atan).
**

Jerzy Karczmarczuk




-- 
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210917/d32aa3d2/attachment.html>


More information about the Haskell-Cafe mailing list