[Maxima] Question regarding loops and CAR: #:G18223 is not a list
Stavros Macrakis
macrakis at alum.mit.edu
Wed Jan 18 21:50:56 CST 2006
------=_Part_27815_6651103.1137642656285
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
>
> 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
------=_Part_27815_6651103.1137642656285
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(=
204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">it later, bu=
t keep running into the error "CAR: #:G18223 is not a list"<br>in=
side my for loops (I'm incrementing across two variables). Below=
is
<br>the offending code. What about loop structure am I fundament=
ally<br>missing?<br></blockquote></div><br>There is nothing wrong with your=
loop structure, but you are using the variable 's' in two incompatible way=
s: 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 ex=
ists the next time through.
<br><br>Also, it is not clear to me why you are solving symbolically when y=
ou have approximate parameters like 0.5.<br><br> &nb=
sp; -s<br><br><br>
------=_Part_27815_6651103.1137642656285--
More information about the Maxima
mailing list