numerical coefficient of a term
Publié : jeu. juil. 19, 2018 6:11 pm
Hello, how can I get the numerical coefficient of a term?
5*x*y
coeff(5*x*y, y,1); returns 5*x // ok 5·x is the coefficient of y¹
coeff(5*x*y, x,1); returns 5*y // ok 5·y is the coefficient of x¹
coeff(5*x*y, 'x*y' ) ; returns 5*x*y =( // 5 is the coefficient of x¹·y¹
5*x*y
coeff(5*x*y, y,1); returns 5*x // ok 5·x is the coefficient of y¹
coeff(5*x*y, x,1); returns 5*y // ok 5·y is the coefficient of x¹
coeff(5*x*y, 'x*y' ) ; returns 5*x*y =( // 5 is the coefficient of x¹·y¹