computing expontential as repeated multiplication for small integer exponent



On 7/30/07, Barton Willis <willisb at unk.edu> wrote:

> An alternative is to use the Russian peasant algorithm.

OK by me. I will try to merge in this code in the next day or so.

> Maybe we should use expt for all cases and allow some
> Maxima tests to fail for some versions of Lisp.

Well, I think the test suite has to pass equally well
(i.e. ignoring known errors) for all officially-supported Lisp
implementations; that's pretty much what I take officially-
supported to mean anyway.

best

Robert