Whats wrong with this code?



On 5/9/07, David Ronis <David.Ronis at mcgill.ca> wrote:

> aa.aa$
> %;
>
> The error is triggered on %;

The problem appears to be corrected in current CVS.
(I tried current CVS + Clisp 2.39 and CVS + SBCL 1.0 on Linux.)
Can you try it again?

> There is a more general version of this problem that I'm
> trying to deal with.  I have expressions that contain linear
> combinations of matrices like
>
> A[i]=a[i,1]*M[1] + a[i,2]*M[2] etc.
>
> where M[i] is a matrix and a[i,j] is a scalar.  Maxima does
> seem to create the matrix as expected, but A_i.A_i behaves
> as if both the a's and the M's are some sort of array.  I've tried
> scalar(a) as well as scalar(a[i,j]) constructs but this doesn't
> seem to help.

OK, maybe we can go back to this problem. Can you post the
code which shows the problem? Btw Maxima doesn't recognize
scalar(foo). On the other hand it does recognize declare(foo, scalar),
but on the other other hand I don't know how extensively Maxima
can make use of that datum.

Sorry I can't be more helpful,
Robert Dodier