Question regarding loops and CAR: #:G18223 is not a list



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