Hi, I have a number of complicated expressions "q", dependent on three symbolic variables "a", "b", "c" and "t". It should be possible to present all these expressions in the form:
q=a*p1+(p2+b*p3)*c
where p1, p2 and p3 are polynomials of variable "t" (in fact some of the expressions are already in this form). I need to extract these polynomials, from these expressions, and cast them into the Horner form. I tried something like:
hf[expr_]=HornerForm[expr,t];
Collectb[expr_]=Collect[expr,b,hf];
Collectc[expr_]=Collect[expr,c,Collectb];
Collect[q,a,Collectc]
but this does not produce the desired Horner form of the polynomials. What am I doing wrong?
Leslaw