[R] problem with the precision of numbers

kayj kjaja27 at yahoo.com
Tue Jan 19 17:43:33 CET 2010


Hi All,

I was wodering if it is possible to increase the precision using R. I ran
the script below in R and MAPLE and I got different results when k is large.
Any idea how to fix this problem? thanks for your help


for (k in 0:2000){
 s=0
 for(i in 0:k){
 s=s+((-1)^i)*3456*(1+i*1/2000)^3000
 }
}
-- 
View this message in context: http://n4.nabble.com/problem-with-the-precision-of-numbers-tp1017727p1017727.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list