From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?VG9tbWkgSMO2eW7DpGzDpG5tYWE=?= Newsgroups: gmane.lisp.guile.devel Subject: Is there something wrong with complex atan in guile? Date: Wed, 22 Jul 2015 14:07:31 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113eb9c8efa5e2051b74c6bb X-Trace: ger.gmane.org 1437597060 24238 80.91.229.3 (22 Jul 2015 20:31:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jul 2015 20:31:00 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jul 22 22:30:45 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZI0f3-0002mg-VL for guile-devel@m.gmane.org; Wed, 22 Jul 2015 22:30:42 +0200 Original-Received: from localhost ([::1]:38082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI0f3-0005qf-G8 for guile-devel@m.gmane.org; Wed, 22 Jul 2015 16:30:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHrs5-0007Pg-Lf for guile-devel@gnu.org; Wed, 22 Jul 2015 07:07:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHrs5-0004Pd-00 for guile-devel@gnu.org; Wed, 22 Jul 2015 07:07:33 -0400 Original-Received: from mail-ig0-x22b.google.com ([2607:f8b0:4001:c05::22b]:35849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHrs4-0004Ot-Si for guile-devel@gnu.org; Wed, 22 Jul 2015 07:07:32 -0400 Original-Received: by igbij6 with SMTP id ij6so133461740igb.1 for ; Wed, 22 Jul 2015 04:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kxvfBOK5LbUAMg9p+1lx5Nu4ovEUojV92LJvzoXbcuQ=; b=eIBYYporabEZSkwGAcK6Ls85qbeOMJEfICdjM6DWA51gs+u8fub0K7YUOyy+6XtbnX k/4fXhARLI0K+5sCqlq4ywyjmQSQ2XgCF4E8LP1dRLLXbRlECUpJOvo+yo0CyfC32lEc Ia1F3v4PwNzge4sDynKcDSkB7KHaPA5DsIV+nrZTKzfe1bZVzRAeUdg6hse8bDdfyR+z cRPeDPMU3WoWZeQEEicGg74bPDdVXFXsXm4FgPTCxXd77ToJSjs6SbVEBhay4JkKi5ZC oDAw8s50PNHx8mWvVdYKB75Y0zDKWFIfZwHt/vGMhP4SKSp40kKnv9EqLkaLjtr3RBw5 8vpg== X-Received: by 10.107.130.166 with SMTP id m38mr3256600ioi.77.1437563251302; Wed, 22 Jul 2015 04:07:31 -0700 (PDT) Original-Received: by 10.107.62.134 with HTTP; Wed, 22 Jul 2015 04:07:31 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::22b X-Mailman-Approved-At: Wed, 22 Jul 2015 16:30:40 -0400 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17772 Archived-At: --001a113eb9c8efa5e2051b74c6bb Content-Type: text/plain; charset=UTF-8 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 --001a113eb9c8efa5e2051b74c6bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I get the following results with guile 2.0.9:

=
---cut here---
scheme@(guile-user)> (atan (tan -0.5+2.0i))=
$1 =3D 1.070796326794897+1.9999999999999996i
scheme@(guile-user)>= (tan (atan -0.5+2.0i))
$2 =3D 0.1176470588235294+0.4705882352941177i
---cut here---

Although there are multiple br= anches in the complex atan function the previous results do not seem correc= t. Is there something wrong here.

=C2=A0=C2=A0= =C2=A0=C2=A0 - Tommi

--001a113eb9c8efa5e2051b74c6bb--