2013-05-17 55 views

回答

2
Inner[#2^#1 &, First/@CoefficientRules[#1, #2], #2, Times] &[(x + y)^2, {x, y}] 
(* 
{x^2, x y, y^2} 
*) 
+0

Thx!一個更普遍的擴展:'Inner [#2 ^#1&,First/@ CoefficientRules [#1,#2],#2,Times]&[f,Variables [f]]' – Neo

+1

@Neo那個不會爲具有符號係數的多項式工作:) –

+0

我注意到了。謝謝 :) – Neo