[R] prod and F90 product

Rolf Turner r.turner at auckland.ac.nz
Fri Nov 8 00:48:57 CET 2013


On 11/08/13 12:39, Filippo wrote:
> Hi,
> I'm having strange differences between the R function prod ad the F90 
> function product.
> Processing the same vector C (see attachment). I get 2 different results:
> prod(C) = 1.069678e-307
> testProduct(C) = 0

<SNIP>

If you are worried about the difference between 0 and 1.069678e-307 then 
you probably
shouldn't be using computers.

     cheers,

     Rolf Turner



More information about the R-help mailing list