From dw|n@em|u@ @end|ng |rom comc@@t@net  Thu Feb 21 17:57:15 2019
From: dw|n@em|u@ @end|ng |rom comc@@t@net (David Winsemius)
Date: Thu, 21 Feb 2019 08:57:15 -0800
Subject: [Rd] code for sum function
In-Reply-To: <CAOuLjjRV4cDb73re6JVsMsnVSgBNRdLEPrP=Z6cxSHtnUakUzw@mail.gmail.com>
References: <c1495700-e265-4ff8-1f36-e149bd4d1961@gmail.com>
 <13de2483-4cb0-38eb-4bcc-138844a3c0a8@gmail.com>
 <CAOuLjjRV4cDb73re6JVsMsnVSgBNRdLEPrP=Z6cxSHtnUakUzw@mail.gmail.com>
Message-ID: <e98672c8-ca55-ac34-5f2c-b55befc52077@comcast.net>


On 2/20/19 2:55 PM, Rampal Etienne wrote:
> Dear Tomas,
>
> Where do I find these files? Do they contain the code for the sum function?

Yes.

https://svn.r-project.org/R/trunk/


David

>
> What do you mean exactly with your point on long doubles? Where can I find
> documentation on this?
>
> Cheers, Rampal
>
> On Mon, Feb 18, 2019, 15:38 Tomas Kalibera <tomas.kalibera at gmail.com wrote:
>
>> See do_summary() in summary.c, rsum() for doubles. R uses long double
>> type as accumulator on systems where available.
>>
>> Best,
>> Tomas
>>
>> On 2/14/19 2:08 PM, Rampal Etienne wrote:
>>> Hello,
>>>
>>> I am trying to write FORTRAN code to do the same as some R code I
>>> have. I get (small) differences when using the sum function in R. I
>>> know there are numerical routines to improve precision, but I have not
>>> been able to figure out what algorithm R is using. Does anyone know
>>> this? Or where can I find the code for the sum function?
>>>
>>> Regards,
>>>
>>> Rampal Etienne
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] code for sum function
David Winsemius