From Kurt.Hornik@ci.tuwien.ac.at  Tue Jul 13 17:36:57 1999
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Tue, 13 Jul 1999 18:36:57 +0200 (CEST)
Subject: 0.65/AIX
In-Reply-To: <x2vhbozfg7.fsf@blueberry.kubism.ku.dk>
References: <199907131307.JAA29236@infiniti.ece.cmu.edu>
 <199907131333.PAA14854@sophie.ethz.ch>
 <14219.25377.308702.802943@aragorn.ci.tuwien.ac.at>
 <x2vhbozfg7.fsf@blueberry.kubism.ku.dk>
Message-ID: <14219.27433.90420.114884@aragorn.ci.tuwien.ac.at>

>>>>> Peter Dalgaard BSA writes:

> Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:
>> Hmm ... Compilation-wise it seems that -D_ALL_SOURCE works o.k. for me.
>> Now, this gives
>> 
>> > 1/0 + 1/0# Inf
>> [1]INF
>> > 1/0 - 1/0# NaN
>> [1]NaNQ
>> 
>> which is only sort of o.k.???

> No! ...which is patently WRONG. When this kind of printout, it shows
> that the print routines in R are not able to recognize Inf and NaN
> (using R_FINITE) which implies that they aren't properly recognized
> anywhere else.

>> For the time being, I'll commit this version ...

> Not for long, I hope...

Hmm.

On the system I have access to, I can compile only with

	-D_XOPEN_SOURCE_EXTENDED=2 (VERY noisy)
or
	-D_ALL_SOURCE

In either case, we get the above.

I will hence use ALL_SOURCE for the time being.

Note that

> 1/0 - 1/0# NaN
[1]NaNQ
> is.nan(1/0 - 1/0)
[1] TRUE

so what is really going on here???

-k


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


0.65/AIX
Kurt Hornik