Tutorials covering iteration, lists and debugging?



Thanks for sending the small, reproducible example of your problem.

Everything looks fine except that the numerical constant *pi* is written
%pi (lowercase) in Maxima, not %PI.  As far as Maxima knows, %PI is just
an undefined symbolic variable.

Advice on efficiency: if your 'table' list will get long, append(table,...)
will be slow.  cons(...,table) is much faster, and you can reverse
afterwards. There are other solutions, too, depending on what you're trying
to do.

          -s

On Wed, Jul 24, 2013 at 11:45 AM, Richard Owlett <rowlett at cloud85.net>wrote:

> for j: 0 step (dTHETA) thru ( 2 * %PI) do