[R] Difference between R for the Mac and for Windows

Berend Hasselman bhh at xs4all.nl
Fri Mar 31 19:15:55 CEST 2017


I have noted a difference between R on macOS en on Kubuntu Trusty (64bits) with complex division.
I don't know what would happen R on Windows.

R.3.3.3:

macOS (10.11.6)
-----------------
> (1+2i)/0
[1] NaN+NaNi
> (-1+2i)/0
[1] NaN+NaNi
> 
> 1i/0
[1] NaN+NaNi
> 1i/(0+0i)
[1] NaN+NaNi


KubuntuTrusty
-----------------
> (1+2i)/0
[1] Inf+Infi
> (-1+2i)/0
[1] -Inf+Infi
> 
> 1i/0
[1] NaN+Infi
> 1i/(0+0i)
[1] NaN+Infi

Interesting to see what R on Windows delivers.

Berend Hasselman



More information about the R-help mailing list