From ihaka@stat.auckland.ac.nz  Sun May 25 23:01:12 1997
From: ihaka@stat.auckland.ac.nz (Ross Ihaka)
Date: Mon, 26 May 1997 10:01:12 +1200 (NZST)
Subject: R-alpha: Re:  Re(1i) = 2.4976e-307
In-Reply-To: <9705221445.AA01404@>
References: <9705221441.AA01396@>
 <9705221445.AA01404@>
Message-ID: <199705252201.KAA00938@stat1.stat.auckland.ac.nz>

Martin Maechler writes:
 > It is really not 'Re',
 > but the parser for complex constants which is at fault:
 > 
 > > 1i - complex(imag=1)
 > [1] 2.497599e-307+0i

This is an error in the function mkComplex.  It sets the imaginary
part, but leaves the real part uninitialized.
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: Re: Re(1i) = 2.4976e-307
Ross Ihaka