Re: [R] runif limited precision

2009-01-02 Thread Duncan Murdoch
On 02/01/2009 7:33 PM, Stavros Macrakis wrote: On Fri, Jan 2, 2009 at 5:56 PM, Duncan Murdoch wrote: I don't agree. If you add too much technical detail to a topic, then people don't "work through it". I'd say the r pages generally give enough detail now, but not too much. If you add every d

Re: [R] runif limited precision

2009-01-02 Thread Stavros Macrakis
On Fri, Jan 2, 2009 at 5:56 PM, Duncan Murdoch wrote: > I don't agree. If you add too much technical detail to a topic, then people > don't "work through it". I'd say the r pages generally give enough > detail now, but not too much. If you add every detail that might interest > someone somewher

Re: [R] runif limited precision

2009-01-02 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch > Sent: Friday, January 02, 2009 2:57 PM > To: Stavros Macrakis > Cc: r-help@r-project.org > Subject: Re: [R] runif limited precision >

Re: [R] runif limited precision

2009-01-02 Thread Duncan Murdoch
On 02/01/2009 4:16 PM, Stavros Macrakis wrote: On Fri, Jan 2, 2009 at 4:03 PM, Duncan Murdoch wrote: On 02/01/2009 2:45 PM, Stavros Macrakis wrote: ...So I'd think that either runif should give full precision or its documentation should mention this limitation. It refers to the .Random.seed p

Re: [R] runif limited precision

2009-01-02 Thread Stavros Macrakis
On Fri, Jan 2, 2009 at 4:03 PM, Duncan Murdoch wrote: > On 02/01/2009 2:45 PM, Stavros Macrakis wrote: >> ...So I'd think that either runif should give full precision or >> its documentation should mention this limitation. > > It refers to the .Random.seed page for details, and that page mentions

Re: [R] runif limited precision

2009-01-02 Thread Duncan Murdoch
On 02/01/2009 2:45 PM, Stavros Macrakis wrote: runif appears to give 31 bits of precision, but this isn't mentioned in the documentation page. The R numeric type supports 53 digits of precision, and other numeric functions (sin, etc.) give full-precision results. So I'd think that either runif s

[R] runif limited precision

2009-01-02 Thread Stavros Macrakis
runif appears to give 31 bits of precision, but this isn't mentioned in the documentation page. The R numeric type supports 53 digits of precision, and other numeric functions (sin, etc.) give full-precision results. So I'd think that either runif should give full precision or its documentation sh