[R] prod and F90 product

Bert Gunter gunter.berton at gene.com
Fri Nov 8 01:10:00 CET 2013


Fortune !

Bert

Sent from my iPhone -- please excuse typos.

> On Nov 7, 2013, at 3:48 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
> 
>> 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
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list