Skip to content
Prev 33749 / 398513 Next

R-1.7.1 regression test failure on alphaev68-dec-osf5.1

I just tried this with both R 1.6.2 and S-Plus 6.1 under Windows 2000: 
I got the same .Machine$double.eps as reported below, but I did NOT get 
the problem:

pi - log(exp(pi*1i)) / 1i

# reported below:  [1] 4.440892e-16+0i
# R1.6.2 and S-Plus 6.1 both gave 0+oi

Mod(pi - log(exp(pi*1i)) / 1i)

# reported below: 4.440892e-16
# R1.6.2 and S-Plus 6.1 both gave 0

.Machine$double.eps

# Same as reported: 2.220446e-16

Mod(pi - log(exp(pi*1i)) / 1i) < .Machine$double.eps

# reported below:  [1] FALSE
# R1.6.2 and S-Plus 6.1 both gave T

hth.  spencer graves
Jeff Lewis wrote: