Skip to content
Prev 206849 / 398503 Next

problem with the precision of numbers

On Tue, Jan 19, 2010 at 1:41 PM, Ted Harding
<Ted.Harding at manchester.ac.uk> wrote:
There is an R interface to bc here at http://r-bc.googlecode.com .

Trying it for k up to 10:
+  s=0
+  for (i = 0; i <= k; i = i + 1) {
+  s=s+((-1)^i)*3456*(1+i*1/2000)^3000
+  }
+ }
+ s
+ ")
[1] "8886117368.3070119572856212990071196502030186189331701144530548672570992204603757660023189324468582740298425344"