From: Mike Gran <spk121@yahoo.com>
To: guile-devel <guile-devel@gnu.org>
Subject: Complex, exact numbers
Date: Sun, 26 Sep 2010 15:00:47 -0700 (PDT) [thread overview]
Message-ID: <827574.39182.qm@web37903.mail.mud.yahoo.com> (raw)
Hi all-
Should a number be able to be both complex and exact?
The R6RS isn't helpful in answering this question. It says
"A number object is exact if it is the value of an exact
numerical literal or was derived from exact number objects
using only exact operations. Exact number objects correspond
to mathematical numbers in the obvious way."
$ meta/guile -c "(write 0+i) (newline)"
> 0.0+1.0i
$ meta/guile -c "(write #e0+i) (newline)"
> ERROR: In procedure inexact->exact:
> ERROR: Wrong type argument in position 1: 0.0+1.0i
Thanks,
Mike
next reply other threads:[~2010-09-26 22:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-26 22:00 Mike Gran [this message]
2010-09-27 20:27 ` Complex, exact numbers Andy Wingo
2010-09-27 20:47 ` Mike Gran
2010-09-27 21:02 ` Neil Jerram
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=827574.39182.qm@web37903.mail.mud.yahoo.com \
--to=spk121@yahoo.com \
--cc=guile-devel@gnu.org \
/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).