[Maxima] How to break out of a recursion?
Alasdair McAndrew
amca01 at gmail.com
Wed Sep 3 00:11:28 CDT 2008
I'm just playing around with implementing a backtracking algorithm
recursively, and what I want is for the program to terminate (with an
appropriate output) the moment a solution is found. return() doesn't do
this, but error() does, if inelegantly. Is there any other way of forcing
the termination of a program other than with error()?
Thanks,
Alasdair
--
Blog: http://amca01.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.math.utexas.edu/pipermail/maxima/attachments/20080903/19649067/attachment.htm
More information about the Maxima
mailing list