Re: (real? (* +i +i)) -> #f

2012-08-03 Thread JihemD
Ian Price wrote: > > I believe guile only considers numbers with an _exact_ 0 imaginary part > to be real. However, since all guile complex numbers are inexact, this > means that (* +i +i) is not considered real. > > scheme@(guile−user)> (* +i +i) > $19 = −1.0+0.0i > scheme@(guile−user)> (exact

Re: (real? (* +i +i)) -> #f

2012-08-03 Thread Ian Price
JihemD writes: > Hi > I am playing around with Guile 2.05 on Kubuntu 12.04, > why : > scheme@(guile-user)> (real? (* +i +i)) > $13 = #f > but : > scheme@(guile-user)> (zero? (imag-part (* +i +i))) > $14 = #t > > thxs I believe guile only considers numbers with an _exact_ 0 imaginary part to be

(real? (* +i +i)) -> #f

2012-08-03 Thread JihemD
Hi I am playing around with Guile 2.05 on Kubuntu 12.04, why : scheme@(guile-user)> (real? (* +i +i)) $13 = #f but : scheme@(guile-user)> (zero? (imag-part (* +i +i))) $14 = #t thxs -- View this message in context: http://old.nabble.com/%28real--%28*-%2Bi-%2Bi%29%29--%3E--f-tp34250234p34250234