[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there something wrong with complex atan in guile?
From: |
Mark H Weaver |
Subject: |
Re: Is there something wrong with complex atan in guile? |
Date: |
Wed, 22 Jul 2015 21:04:47 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Mark H Weaver <address@hidden> writes:
> Tommi Höynälänmaa <address@hidden> writes:
>
>> I get the following results with guile 2.0.9:
>>
>> ---cut here---
>> scheme@(guile-user)> (atan (tan -0.5+2.0i))
>> $1 = 1.070796326794897+1.9999999999999996i
>> scheme@(guile-user)> (tan (atan -0.5+2.0i))
>> $2 = 0.1176470588235294+0.4705882352941177i
>> ---cut here---
>>
>> Although there are multiple branches in the complex atan function the
>> previous results do not seem correct. Is there something wrong here.
>
> You're right, our atan procedure was broken in commit
> ad79736c68a803a59814fbfc0cb4b092c2b4cddf. I will fix it before the
> 2.0.12 release, and review the other changes made in that commit.
Fixed in commit e3c59bfb8d822526d8cff3993ff653ac0d2b2961 on the
stable-2.0 branch.
Thanks,
Mark