numerical coefficient of a term & literal part

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

numerical coefficient of a term & literal part

Message par compsystems » ven. nov. 16, 2018 3:45 pm

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]

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: numerical coefficient of a term & literal part

Message par parisse » sam. nov. 17, 2018 6:46 am

I don't understand your post, re-read it!
a^(x+5) is not a polynomial.

Répondre