RE: [Rd] bug in modulus operator %% (PR#7852)

2005-05-12 Thread Prof Brian Ripley
Dalgaard [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:14 PM To: McGehee, Robert Cc: [EMAIL PROTECTED]; Peter Dalgaard; [EMAIL PROTECTED]; [EMAIL PROTECTED]; r-devel@stat.math.ethz.ch Subject: Re: [Rd] bug in modulus operator %% (PR#7852) McGehee, Robert [EMAIL PROTECTED] writes: Yes

RE: [Rd] bug in modulus operator %% (PR#7852)

2005-05-12 Thread McGehee, Robert
PROTECTED] Sent: Thursday, May 12, 2005 3:39 AM To: r-devel@stat.math.ethz.ch Subject: RE: [Rd] bug in modulus operator %% (PR#7852) I've now found a Windows system that does this. This is also Windows XP, fully patched, and with the same rw2010. So it may be chip-specific: the one that works

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-12 Thread Kjetil Brinchmann Halvorsen
=20 -Original Message- From: Peter Dalgaard [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:14 PM To: McGehee, Robert Cc: [EMAIL PROTECTED]; Peter Dalgaard; [EMAIL PROTECTED]; [EMAIL PROTECTED]; r-devel@stat.math.ethz.ch Subject: Re: [Rd] bug in modulus operator %% (PR

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Kjetil Brinchmann Halvorsen wrote: Prof Brian Ripley wrote: I've now found a Windows system that does this. This is also Windows XP, fully patched, and with the same rw2010. So it may be chip-specific: the one that works is a P4 and the one that does not is a latest

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: The following can't be right, first rw2010: 1 %% 0.001 [1] 0.001 Then rw2001: 1 %% 0.001 [1] -2.081668e-17 and the last seems about right. A negative remainder? I don't think so. Presumably the result comes from o %% now warns if its

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread Ted Harding
On 11-May-05 Peter Dalgaard wrote: [EMAIL PROTECTED] writes: The following can't be right, first rw2010: 1 %% 0.001 [1] 0.001 Then rw2001: 1 %% 0.001 [1] -2.081668e-17 and the last seems about right. A negative remainder? I don't think so. Presumably the result comes

RE: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread Robert . McGehee
to not be effected by rounding errors or lack of precision. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 3:25 PM To: Peter Dalgaard Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; r-devel@stat.math.ethz.ch Subject: Re: [Rd] bug in modulus operator

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread Peter Dalgaard
McGehee, Robert [EMAIL PROTECTED] writes: Yes, but from ?%%: It is guaranteed that 'x == (x %% y) + y * (x %/% y)' (up to rounding error) ... (R 2.1.0) x - 1 y - 0.2 x %% y [1] 0.2 (x %% y) + y * (x %/% y) [1] 1.2 Certainly 1 does not equal 1.2 as the documentation would

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread p . dalgaard
McGehee, Robert [EMAIL PROTECTED] writes: Yes, but from ?%%: It is guaranteed that 'x == (x %% y) + y * (x %/% y)' (up to rounding error) ... (R 2.1.0) x - 1 y - 0.2 x %% y [1] 0.2 (x %% y) + y * (x %/% y) [1] 1.2 Certainly 1 does not equal 1.2 as the documentation would

RE: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread Robert . McGehee
11, 2005 4:14 PM To: McGehee, Robert Cc: [EMAIL PROTECTED]; Peter Dalgaard; [EMAIL PROTECTED]; [EMAIL PROTECTED]; r-devel@stat.math.ethz.ch Subject: Re: [Rd] bug in modulus operator %% (PR#7852) McGehee, Robert [EMAIL PROTECTED] writes: Yes, but from ?%%: It is guaranteed that 'x =3D=3D (x

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread Duncan Murdoch
@stat.math.ethz.ch Subject: Re: [Rd] bug in modulus operator %% (PR#7852) McGehee, Robert [EMAIL PROTECTED] writes: Yes, but from ?%%: It is guaranteed that 'x =3D=3D (x %% y) + y * (x %/% y)' (up to = rounding error) ... =20 (R 2.1.0) x - 1 y - 0.2 x %% y [1] 0.2 (x %% y) + y * (x %/% y) [1] 1.2 =20

RE: [Rd] bug in modulus operator %% (PR#7852)

2005-05-11 Thread ripley
-devel@stat.math.ethz.ch Subject: Re: [Rd] bug in modulus operator %% (PR#7852) McGehee, Robert [EMAIL PROTECTED] writes: Yes, but from ?%%: It is guaranteed that 'x =3D=3D (x %% y) + y * (x %/% y)' (up to = rounding error) ... =20 (R 2.1.0) x - 1 y - 0.2 x %% y [1] 0.2 (x %% y) + y