On 6/21/2012 6:53 AM, J?rome Laurens wrote:
> Hi list,
>
> How do you append arguments to an operator ?
> Given the list [a,b]
> how will you turn f(x,y) into f(x,y,a,b) ?
>
> Example:
>
> integrate(f(t),t) -> integrate(f(t),t,a,b)
>
> TIA
>
> J?r?me
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
matchdeclare(H, all);
low:a$ high:b$
defrule (r1, foo(H,t), foo(H,t,low,high));
apply2(foo(f(t),t)+foo(g(t),t), r1);
There may be some messy part because integrate has a noun form and a
verb form,
and you may need to match the right one, or both.