Re: (atan 0 x) with gauche 0.9.14

Shiro Kawai <[email protected]> Wed, 17 Apr 2024 10:26:08 -1000
Newsgroups gmane.lisp.scheme.gauche
Message-ID <CALN0JNFapHR5wNCVbOrJO-EHUQLjU1Y-1fU3pVVxHD+wDUV8Yg@mail.gmail.com>
Fix pushed.  Also realized that (atan 0.0 0) and (atan -0.0 0) need a
special treatment (the second arg is exact).


On Wed, Apr 17, 2024 at 9:04 AM Shiro Kawai <[email protected]> wrote:

> 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