On Sun, 2008-04-13 at 19:43 +0400, Alexey Beshenov wrote:
. . .
> "return(m)" returns from a "for" block and then "return(0)" is executed.
That did it, thanks. My fault for not reading the docs more carefully
-- the last half of the second-to-last paragraph under "do" mentions
this.
There must be a lot of overhead in the maxima-to-lisp translations of
functions. I compiled foo and then ran "foo(5000000)" -- it took 2
minutes wall time. My lisp version (CMUCL) using my own implementation
of power_mod took 15 sec. after compilation. But then I'm not really
looking to use maxima for numerical computations.
Thanks again,
-- Bill Wood