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



Ah, that did the trick, or so it seems.

As for why I still "solve"ing, you're right, of course - I was working 
on this originally to NOT have to specify all of the parameters, but 
ALGSYS couldn't solve the system, so, it's just a legacy of the 
process.

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.

On Jan 18, 2006, at 7:50 PM, Stavros Macrakis wrote:

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