Skip to content

rgamma gives zeros. (PR#9184)

1 message · Brian Ripley

#
I think you fail to understand the floating point arithmetic involved. The 
smallest floating point number that can be represented to full precision 
is
[1] 2.225074e-308

and
[1] 0.4904533

Your distribution is so extreme that in computer representation it is 
largely discrete.

Now, on your platform there are denormalized doubles, so
FALSE   TRUE
509073 490927
FALSE   TRUE
525187 474813
[1] 4.940656e-322 4.940656e-322 4.940656e-322 4.940656e-322 4.940656e-322
 [6] 4.940656e-322 4.940656e-322 4.940656e-322 4.940656e-322 4.940656e-322

is pretty much what I expected.
On Tue, 29 Aug 2006, pxi at stat.cmu.edu wrote:

            
You are specifically asked NOT to report on obselete versions of R.