[Rd] 0 ^ NaN == Inf, why?

From: Stephen Milborrow <milbo_at_sonic.net>
Date: Sat, 25 Oct 2008 15:59:53 +0100

In R, 0 ^ NaN yields Inf. I would have expected NaN or perhaps 0. Is this behaviour intended?


R version 2.8.0 (2008-10-20)

LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

Steve Milborrow

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 25 Oct 2008 - 15:02:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 25 Oct 2008 - 20:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive