CoefficientRules—Wolfram Language Documentation
https://reference.wolfram.com/language/ref/CoefficientRules.htmlCoefficientRules CoefficientRules [ poly, { x1, x2, … }] gives the list { { e11, e12, … } c1, { e21, … } c2, … } of exponent vectors and coefficients for the monomials in poly with respect to the x i. CoefficientRules [ poly, { x1, x2, … }, order] gives the result with the monomial ordering specified by order. Details and Options Examples
How to extract the coefficient from an expression
https://mathematica.stackexchange.com › ...Let that you have the variables vars= {Subscript[1, a],Subscript[1, b],Subscript[2, a],Subscript[2, b],Subscript[3, a], Subscript[3, b]}.
CoefficientList—Wolfram Language Documentation
https://reference.wolfram.com/language/ref/CoefficientList.htmlCoefficientList [ poly, var] gives a list of coefficients of powers of var in poly, starting with power 0. CoefficientList [ poly, { var1, var2, … }] gives an array of coefficients of the var i. CoefficientList [ poly, { var1, var2, … }, { dim1, dim2, … }] gives an array of dimensions { dim1, dim2, … }, truncating or padding with zeros as needed.