[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arbitrary Precision Arithmetic Package for Common Lisp



> 
> The other day, I was trying to do some arithmetic with very large
> numbers and to my surprise, kcl ran out of bignum stack. I found
> that in kcl you cannot calculate (expt 2 40000). I need a package
> for common lisp in which I can do arbitrary presicion arithmetic.
> If anyone is aware of any such package, I would be very grateful
> if he/she could tell me how to get it.

But KCL _can_ do this one.  Here is akcl 1-505:

   > (setq aa (expt 2 40000) b 10)
   10

   > (integer-length aa)
   40001

-- jd