On Nov 16, 2012, at 9:30 AM, Simon Bolivar wrote:
> I'm having trouble to do an infinite sum in R
>
> I want to do the infinite sum of 1/(1+n)
>
> how would I do this in R?
You could try submitting this job:
sum(1/(1+1:(2^31-1) ) ) # 2^31-1 being the highest integer in R at the moment
After
Do you (OP) mean the partial sum of an infinite series? As your
question stands you don't need R.
On 16-Nov-12, at 12:39 PM, Rolf Turner wrote:
On 17/11/12 08:35, Albyn Jones wrote:
Perhaps it would help to think before you compute.
Fortune nomination!
cheers,
Rolf Turner
On 17/11/12 08:35, Albyn Jones wrote:
Perhaps it would help to think before you compute.
Fortune nomination!
cheers,
Rolf Turner
albyn
On Fri, Nov 16, 2012 at 09:30:32AM -0800, Simon Bolivar wrote:
I'm having trouble to do an infinite sum in R
I want to do the infinite sum of
You would need an infinite amount of time and an infinite amount of numerical
precision, all to arrive at the conclusion that the answer is infinite. Or you
could take a short cut:
ans <- Inf
---
Jeff Newmiller
Perhaps it would help to think before you compute.
albyn
On Fri, Nov 16, 2012 at 09:30:32AM -0800, Simon Bolivar wrote:
> I'm having trouble to do an infinite sum in R
>
> I want to do the infinite sum of 1/(1+n)
>
> how would I do this in R?
>
> Thank You
>
>
>
> --
> View this message in
I'm having trouble to do an infinite sum in R
I want to do the infinite sum of 1/(1+n)
how would I do this in R?
Thank You
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-do-an-infinite-sum-in-R-tp4649770.html
Sent from the R help mailing list archive at Nabble.com.
__
6 matches
Mail list logo