MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: change of a coefficient in a polynomial


Hi,

c[0] + c[1] x + c[2] x^2 /. 
  a_ + p_ /; PolynomialQ[p, x] && FreeQ[a, x] :> p - a

??

Regards
  Jens

Paolo Bientinesi wrote:
> 
> Second question about polynomials:
> 
> assume you are given a polynomial
> 
> p[x_] :=  c[0] + c[1] x + c[2] x^2 ....
> 
> and you want to generate a polynomial p1[x] from p[x]
> changing one coefficient only, like:
> 
> p1[x_] := -c[0] + c[1] x + c[2] x^2
> 
> Is there any other way other than the obvious CoefficientList
> solution?
> 
> Thanks
> --
> Paolo
> 
> pauldj at cs.utexas.edu                    paolo.bientinesi at iit.cnr.it


  • Prev by Date: Re: here's one driving me mad!
  • Next by Date: Re: here's one driving me mad!
  • Previous by thread: Re: change of a coefficient in a polynomial
  • Next by thread: Re: change of a coefficient in a polynomial