Question regarding loops and CAR: #:G18223 is not a list
Subject: Question regarding loops and CAR: #:G18223 is not a list
From: Stavros Macrakis
Date: Wed, 18 Jan 2006 23:09:42 -0500
>
> Thanks again - interesting lesson in terms of how maxima does scoping,
> as I would have thought that s would be redefined each time I entered
> the loop.
>
To create a local scope, use 'block', e.g.
block([s], ....)
and remember that Maxima has dynamic, not lexical, scope.