Re: (atan 0 x) with gauche 0.9.14
Shiro Kawai <[email protected]> Wed, 17 Apr 2024 09:04:36 -1000
| Newsgroups | gmane.lisp.scheme.gauche |
|---|---|
| Message-ID | <CALN0JNEz7zP=TF0EdYk7TvDR03DLwiVy88or=6HLFY77XhkJbQ@mail.gmail.com> |
Good catch. It looks like I thought exact zero needed to be returned for exact zero. I don't remember why. On Wed, Apr 17, 2024 at 4:13 AM Jens Thiele <[email protected]> wrote: > Hi, > > gosh> (gauche-version) > "0.9.14" > gosh> (radians->degrees (real-atan 0 -1)) > 180.0 > gosh> (radians->degrees (angle (make-rectangular -1 0))) > 180.0 > gosh> (radians->degrees (atan 0.0 -1)) > 180.0 > ;; oops > gosh> (radians->degrees (atan 0 -1)) > 0.0 > > Greetings, > Jens > > > _______________________________________________ > Gauche-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gauche-devel > _______________________________________________ Gauche-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gauche-devel