[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Complex, exact numbers

From: Mike Gran
Subject: Complex, exact numbers
Date: Sun, 26 Sep 2010 15:00:47 -0700 (PDT)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]