[R] How do you do this in R?
arun
smartpink111 at yahoo.com
Mon Sep 16 20:56:07 CEST 2013
Hi,
Try:
sum(sapply(1:100,function(i) i^3+ 4*(i^2)))
#[1] 26855900
169551560477066118158651749177/79632685831739040000
#[1] 2129170437
sum(sapply(1:25,function(i) ((2^i)/i)+ ((3^i)/(i^2))))
#[1] 2129170437
A.K.
I have done this on myself using paper and I know the answer for A is 26,855,900
B I got 169,551,560,477,066,118,158,651,749,177/79,632,685,831,739,040,000
So sorry for the constant questions here.
More information about the R-help
mailing list