Thanks Earl
Thats exactly what I was looking for - an extension that uses libgmp and
provides a bignum type that can be combined with standard operators and
numeric variables. Somehow my original search on CRAN missed this one.
Cheers
Rory
Earl F. Glynn wrote:
>
> "Rory Winston" <[EMAIL PROTEC
"Rory Winston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> (If you're wondering, this is a Project Euler question :))
>
> If I wanted to calculate the sum of the digits in the decimal
> representation
> of 2^1000, what would be a good way to go about that?
Try this:
> library(
Probably not helpful for your particular problem, but the package rcdd
also has a fairly limited interface to the GNU MP Bignum library.
It does arithmetic on arbitrary precision rationals. Also exact linear
programming and computational geometry using arbitrary precision rationals.
library(r
Here is the link:
http://ryacas.googlecode.om
On Fri, Apr 4, 2008 at 9:55 PM, Gabor Grothendieck
<[EMAIL PROTECTED]> wrote:
> Have a look at the Ryacas package which interfaces R to yacas.
> yacas can do exact arithmetic.
>
>
> On Fri, Apr 4, 2008 at 11:43 AM, Rory Winston <[EMAIL PROTECTED]> wrot
Have a look at the Ryacas package which interfaces R to yacas.
yacas can do exact arithmetic.
On Fri, Apr 4, 2008 at 11:43 AM, Rory Winston <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> (If you're wondering, this is a Project Euler question :))
>
> If I wanted to calculate the sum of the digits in the dec
One way of "doing it in R" is to use the 'bc' command that is on most
UNIX/LINUX systems and is also on cygwin for Windows. Here are
decimal digits for 2^1000
/cygdrive/c/jph/consulting/2008-03-30: bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free softwa
Hi
(If you're wondering, this is a Project Euler question :))
If I wanted to calculate the sum of the digits in the decimal representation
of 2^1000, what would be a good way to go about that? I've tried the
following methods:
# Calculate the sum of digits in the decimal representation of 2^n
7 matches
Mail list logo