Why not just declare(abl,additive)?
Viktor
-----Original Message-----
From: maxima-admin@math.utexas.edu [mailto:maxima-admin at math] On
Behalf Of Frank Thieme
Sent: Sunday, December 19, 2004 9:46 AM
To: Maxima@math.utexas.edu
Subject: Re: rules problems (was: polynom -> list)
ok, my question was a part of a homework. And I'm still fighting with
maxima.
Question is to reimplement differentiation via rules. The simple part
was to make a function which does n*x^m -> n*m*x^(m-1)
Now we should do this to polynoms. I defined a rule:
defrule(ablrule0, abl(p,x),
sum(part(map(lambda([p],abl(p,x)),makelist(part(p,i),i,1,length(p))),j),j,1,
length(p)));
The sum() part works really good, but I can't bring maxima to apply this
rule. How can I do this?
abl(x^5+2*x,x) should become a abl(x^5,x)+abl(2*x,x) because of that
rule.
Any hints?
Bye...Frank
_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima