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: [mg44806] Re: change of a coefficient in a polynomial
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Thu, 27 Nov 2003 11:38:38 -0500 (EST)
  • Organization: AOL http://www.aol.com
  • References: <bpurvg$oc7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

p[x_]:=c[0]+c[1] x+c[2] x^2;

p1[x_] := Evaluate[ReplacePart[p[x], -p[x][[1]], 1]];

p1[x]

c[2]*x^2 + c[1]*x - c[0]


Bob Hanlon

In article <bpurvg$oc7$1 at smc.vnet.net>, Paolo Bientinesi <pauldj at cs.utexas.edu>
wrote:

<< 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?
 >><BR><BR>


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