On 1/30/2013 10:33 AM, Robert Dodier wrote:
> On 2013-01-30, Peter Pfannenschmid <peter.pfannenschmid at guido-kuebler-gmbh.de> wrote:
>
>> (i*j*k + i*k*l)^2,
>>
>> I would like to replace i*k by s, so that the expression becomes
>>
>> (s*j + s*l)^2.
>>
ff(q):=ratsubst(s,i*k,q);
map(ff,test);
works.
you could also read about let, letsimp.
You can also factor the answer and get something you might like.
RJF