Subject: "depends" problem of variables with subscripts
From: Richard Fateman
Date: Sun, 8 Jul 2007 20:10:35 -0700
Use x1 instead of x[1].
X[1] is an array. Using it as a subscripted variable is a kind of pun and
you can't use it in all ways that you can use x1.
There are other ways around what you might want to do, but just using x1 is
simple.
If you want to produce a variable with superscripts, that too can be done by
a kind of pun, but better not to use that either.
> -----Original Message-----
> From: maxima-bounces at math.utexas.edu
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Evan
> Sent: Sunday, July 08, 2007 7:28 PM
> To: maxima at math.utexas.edu
> Subject: "depends" problem of variables with subscripts
>
> I'm using wxmaxima as the front-end of maxima
>
> I use, for example, "x[1]" to produce a variable with subscripts
> now I want to declare the dependence of "x[1]" on "t"
> while "depends(x[1],t)" leads to an error as follows
>
> The argument to depends must be a symbolic name:x[1] -- an error. To
> debug this try debugmode(true);
>
>
> Should I use something else to denote subscripts?
>
> p.s. how to produce a variable with superscripts?
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>