Jean-Marc Sac-Epée on Tue, 02 Oct 2001 14:20:55 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

subst


Hi,

I would like to replace the variable x by x+1/x in a polynomial p.
Under gp, I simply use something like
p=x^5+x+1
subst(p,x,x+1/x)

but in library mode, what is the good synthax? p is a polynomial, but can I use gsubst even if x+1/x is not a polynomial?

JM
 

-- 
Jean-Marc Sac-Epée, Ingénieur de Recherches,    ("\-''-/").___..--''"`-.
Laboratoire de Mathématiques, Université de Metz,(`@_ @  )   `-.  (     ).`-.__.`)
Tél 03 87 54 72 69                                (_Y_.)'  ._   )  `._ `. `-..-''
Fax 03 87 31 52 73                                 `--'_..-_/  /--'_.' ,'
mail jmse@poncelet.univ-metz.fr