Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: change of a coefficient in a polynomial

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44799] Re: change of a coefficient in a polynomial
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 27 Nov 2003 11:38:23 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <bpurvg$oc7$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

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