unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Is there something wrong with complex atan in guile?
@ 2015-07-22 11:07 Tommi Höynälänmaa
  2015-07-22 22:42 ` Mark H Weaver
  0 siblings, 1 reply; 3+ messages in thread
From: Tommi Höynälänmaa @ 2015-07-22 11:07 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 545 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-23  1:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2015-07-23  1:04   ` Mark H Weaver

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).