R-alpha: Re: Re(1i) = 2.4976e-307
Ross Ihaka
ihaka@stat.auckland.ac.nz
Mon, 26 May 1997 10:01:12 +1200 (NZST)
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-