Page 1 sur 1

numerical coefficient of a term & literal part

Publié : ven. nov. 16, 2018 3:45 pm
par compsystems
Hi, BP

I want to extract the symbolic factors of a term (literal part)
I also want to extract the numerical coefficient of a term

For the following case, it works because there is no multiplicity in the variables
coeff(5*a*x*y,lname(5*a*x*y)); ↲ 5

coeff(3*a^(x+5) ,lname(3*a^(x+5))) ↲ [3*a^(x+5)] => 3

factors(3*a^(x+5)) ↲ [ 3, 1, a^(x+5),1] => [ a^(x+5),1]

Re: numerical coefficient of a term & literal part

Publié : sam. nov. 17, 2018 6:46 am
par parisse
I don't understand your post, re-read it!
a^(x+5) is not a polynomial.