unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: "Tommi Höynälänmaa" <tommi.hoynalanmaa@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: Is there something wrong with complex atan in guile?
Date: Wed, 22 Jul 2015 18:42:15 -0400	[thread overview]
Message-ID: <87a8unzuew.fsf@netris.org> (raw)
In-Reply-To: <CAAkPRiwAzQHHU79hM8p9LtRj=6orQs682coj28NNOuwtAgC=wg@mail.gmail.com> ("Tommi \=\?utf-8\?B\?SMO2eW7DpGzDpG5tYWEiJ3M\=\?\= message of "Wed, 22 Jul 2015 14:07:31 +0300")

Tommi Höynälänmaa <tommi.hoynalanmaa@gmail.com> 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



  reply	other threads:[~2015-07-22 22:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 11:07 Is there something wrong with complex atan in guile? Tommi Höynälänmaa
2015-07-22 22:42 ` Mark H Weaver [this message]
2015-07-23  1:04   ` Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a8unzuew.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guile-devel@gnu.org \
    --cc=tommi.hoynalanmaa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).