|
Re: [j-devel] PATCH: Bignum exponent for EXPT
From: Erik Huelsmann <ehuels@gm...> - 2008-08-15 05:37
|
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. In your patch, there's also a note on some code in MathFunctions.lisp; it's about repeated multiplication in expt calculations versus repeated squaring. How about the attached patch? Bye, Erik. |
| Thread | Author | Date | |
|---|---|---|---|
| [j-devel] PATCH: Bignum exponent for EXPT | Robert Dodier <robert_dodier@ya...> |
|
|
|
|
|