Grigory Sarnitskiy wrote:
> Hello!
>
> I have a polynomial
>
> a1 x^m y^l + a2 y^k x^n + a3 x^h + ...
>
> and I need to turn it into something like this:
>
> a1 f(m, l) + a2 f(n, k) + a3 (h, 0) + ...
>
> I need to match somehow expressions like x^m y^l
>
> Are there any standard functions to help me?
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
try matchdeclare([r,s],any);
let(x^r*y^s,f(r,s));
letsimp( expression .....);
the first time I have suggested using letsimp in several decades.
But I think it does what you want here.
RJF