[Maxima] Conditional inside a block not working
william.wood3 at comcast.net
Sun Apr 13 11:43:28 CDT 2008
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
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.
-- Bill Wood
More information about the Maxima