Tutorials covering iteration, lists and debugging?



Stavros Macrakis wrote:
> 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.

*GROAN* ;/

>
> 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.

In the current project I wouldn't expect speed to be a major 
issue, but I should get in good habits early. Part of the reason 
for my subject line, the tutorials I've seen so far focused on 
the math and algebra not using Maxima as a programming language. 
Eventually I may use Maxima to keep my algebra straight and then 
use Scilab or other to number crunch.

> There are other solutions, too,
> depending on what you're trying to do.
>

Thanks.