[Maxima] beginner needs help with syntax

Robert Dodier robert.dodier at gmail.com
Wed Jun 10 11:20:47 CDT 2009


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


More information about the Maxima mailing list