beginner needs help with syntax



I think I know what you want but I am not sure.

solve(eqns,[f[9,1],f[9,2],f[9,3],f[9,4],f[9,5],f[9,6],f[9,7],f[9,8],f[9,9]]);

Rich

Only thing is you have to change f[a][b] to f[a,b] first everywhere.



----- Original Message ----- 
From: "Robert Dodier" <robert.dodier at gmail.com>
To: "Julien Martin" <balteo at gmail.com>
Cc: <maxima at math.utexas.edu>
Sent: Wednesday, June 10, 2009 12:20 PM
Subject: Re: [Maxima] beginner needs help with syntax


On Wed, Jun 10, 2009 at 8:52 AM, Julien Martin<balteo at gmail.com> wrote:

> f(x) := max(K - x * 5, 0);

> f[9][10]:0;/*HERE*/
> f[9][0]:K;/*HERE*/

Hmm. What is supposed to be the relation between the function f
and the subscripted variable f ?

I think Maxima will accept f[9, 10] : 0 and f[9, 0] : K (i.e. two subscripts
instead of a repeated subscript) although I'm not sure what you doing
so it might or might not have the effect you want.

best

Robert Dodier
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima