[R] Fortran and long integers

Berend Hasselman bhh at xs4all.nl
Mon Feb 7 08:55:34 CET 2011



Tsjerk Wassenaar wrote:
> 
> Yes, thnx... Typo :$
> 
> On Mon, Feb 7, 2011 at 8:23 AM, Berend Hasselman <bhh at xs4all.nl> wrote:
>>
>>
>> Tsjerk Wassenaar wrote:
>>>
>>> Hi,
>>>
>>> Does it alleviate things if you rewrite the sums to avoid large
>>> products?
>>>
>>> For I even:
>>> J+I*(N-I/2)-(N-I/2)
>>>
>>
>> Shouldn't that be
>>
>> J+I*(N-I/2)-(N+I/2)  ?
>>
> 

This only helps to some extent.

If you set I=N and J=N then with N somewhere between 113000 and 114000
ioffset will turn negative.

Berend
-- 
View this message in context: http://r.789695.n4.nabble.com/Fortran-and-long-integers-tp3263054p3263668.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list