fixed multiplication of variables and coefficients