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 22:50:56 -0500
>
> it later, but keep running into the error "CAR: #:G18223 is not a list"
> inside my for loops (I'm incrementing across two variables). Below is
> the offending code. What about loop structure am I fundamentally
> missing?
>
There is nothing wrong with your loop structure, but you are using the
variable 's' in two incompatible ways: one, you set s:solve(...); two, you
use it as a symbolic variable 's' in solve(...,[...s...]). The value you
set on one loop through still exists the next time through.
Also, it is not clear to me why you are solving symbolically when you have
approximate parameters like 0.5.
-s