Problem with linsolve?



I get (Maxima 5.11.0):

Inconsistent equations:  (2)
 -- an error.  To debug this try debugmode(true);
(%i4) [r(1)=10, r(2)=5];
(%o4) [x[1,3]+x[1,2]+x[1,1]=10,x[2,3]+x[2,2]+x[2,1]=5]

Looking at your equations

(%i4) [r(1)=10, r(2)=5];
(%o4) [x[1,3]+x[1,2]+x[1,1]=10,x[2,3]+x[2,2]+x[2,1]=5]

I see that the second equation doesn't depend on X[1,1]
or X[1,2]. So the error seems okay; for example

(%i7) linsolve([x=6],[y]);
Inconsistent equations:  (1)

What is the output of build_info() ?

Barton

-----maxima-bounces at math.utexas.edu wrote: -----

>To: Maxima <maxima at math.utexas.edu>
>From: Kostas Oikonomou <ko at research.att.com>
>Sent by: maxima-bounces at math.utexas.edu
>Date: 04/01/2007 09:50AM
>Subject: Problem with linsolve?
>
>Hi,
>
>I'm having the following problem with linsolve:
>
>X : genmatrix(x,3,3)$
>r(i) := sum(X[i,j],j,1,3)
>linsolve([r(1)=10,r(2)=5], [X[1,1],X[1,2]])
>
>Maxima encountered a Lisp error:
>Error during processing of --eval option "(cl-user::run)":
>The value 2 is not of type LIST.
>Automatically continuing.
>To reenable the Lisp debugger set *debugger-hook* to nil.
>
>If I remove r(2)=5 from the list of equations, the error goes away.
>Does anyone have an idea about what is going on?
>
>
>                 Kostas
>_______________________________________________
>Maxima mailing list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima