Tag Info

Hot answers tagged

2

Update: This matches the evaluated form of your desired output for each example: fn = Collect[#, x^y_ /; FreeQ[y, _Integer], Apart] &; Test: expr1 = c0 x^(a + b) + c1 x^(a + b + 1) + c2 x^(a + b + 2) + c3 x^(a + b + 2) + c4 x^(a + b + 2) + c5 x^(a) + c6 x^(a + 1) + c7 x^(a + 1); target1 = x^(a) (c5 + x (c6 + c7)) + x^(a + b) (c0 + x c1 + x^2 (c2 ...



Only top voted, non community-wiki answers of a minimum length are eligible