From: Erik Huelsmann <ehuels@gm...>  20080813 16:50:17

2008/2/18 Robert Dodier <robert_dodier@...>: > Hello, > > The CLHS says the exponent for EXPT is a number, > and bignums are numbers, so EXPT should accept a > bignum exponent. At present ABCL rejects bignum > exponents. > > I've attached a patch which handles fixnum^bignum. > > Whether or not it is meaningful to compute EXPT when > the exponent is a bignum is not immediately relevant. > > Incidentally the bignum exponent rejection causes at > least one error in Maxima, which is how I discovered it. > > FWIW Hi! I was reading your patch and I saw you're doing: y = y.divideBy(BIGINTEGER_TWO); Wouldn't it be better to use: y = y.shiftLeft(1); though? I still need to understand how the rest of it fits into the system though, but that may take some time. This is just my reaction to the initial implementation. Bye, Erik. 