guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there something wrong with complex atan in guile?


From: Tommi Höynälänmaa
Subject: Is there something wrong with complex atan in guile?
Date: Wed, 22 Jul 2015 14:07:31 +0300

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.

     - Tommi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]