From: "Chris King" <colanderman@gmail.com>
To: "OCaml Mailing List" <caml-list@inria.fr>
Subject: Complex NaN / infinity?
Date: Thu, 16 Nov 2006 13:02:20 -0500 [thread overview]
Message-ID: <875c7e070611161002p52e95c24qaa0d7872f82363b4@mail.gmail.com> (raw)
Hi,
It's been reported before as a bug [1] that Caml's Complex module
doesn't properly support complex NaN and infinities: the current
behavior is that expressions such as "div one zero" return a complex
number with real and imaginary parts both set to NaN. The proper
behavior would be to return a value representing directed or complex
infinity, depending on whether "zero" is directed or not. Avoiding
infinite results doesn't help either, since expressions such as "pow
zero one" rely on infinity internally.
Has anyone made a replacement module fixing these problems? I've
started work on a replacement which uses both polar and Cartesian
representations internally but I figure I'd ask before duplicating
work.
- Chris King
[1] http://caml.inria.fr/mantis/view.php?id=1817
reply other threads:[~2006-11-16 18:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875c7e070611161002p52e95c24qaa0d7872f82363b4@mail.gmail.com \
--to=colanderman@gmail.com \
--cc=caml-list@inria.fr \
/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