Guile Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bignum arithmetics
Well, I had to try this.
guile> (fact 10000)
... gives ...0000000000000000000000000000043
guile> (define a (fact 10000))
guile> a
... gives ... 000000000000000000000000000000 !!!
Then, with a restarted guile I get the `expected' 00043 for a, but
guile> (- a 43)
gives ... 99999999787
guile> (- a 1)
gives ... 99999999999
and
guile> (+ (- a 1) 1)
gives ... 00000000000
then, after printing 'a' a couple of times, I got
guile> a
ERROR: Bad memory access (Segmentation violation)
ABORT: (signal)
This is with guile 1.3a on a FreeBSD 2.2.7-STABLE with 80Mb RAM.
-adf
Guile Home |
Main Index |
Thread Index