[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 18:42:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
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.
Mark