Re: Coefficient problem

*To*: mathgroup at smc.vnet.net*Subject*: [mg36433] Re: Coefficient problem*From*: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>*Date*: Sat, 7 Sep 2002 02:53:39 -0400 (EDT)*Organization*: Universitaet Leipzig*References*: <al9l5k$b1h$1@smc.vnet.net>*Reply-to*: kuska at informatik.uni-leipzig.de*Sender*: owner-wri-mathgroup at wolfram.com

Hi, and Delta[eq_, x_]:=Coefficient[eq, x]^2 - 4 Coefficient[eq, x,2] Coefficient[eq, x,0] does what you want. Because the Help-Browser say: "Coefficient[expr, form, 0] picks out terms that are not proportional to form." Regards Jens CeZaR wrote: > > Hi, > > Now I'm trying to calculate this formula: > > Delta[eq_, x_]:=Coefficient[eq, x]^2 - 4 Coefficient[eq, x^2] Coefficient[eq, x^0] > > eq has this form a x^2 + b x + c > > But there is a problem with the x^0 coefficient! > How can I overcome that? > > Thanks! > > CeZaR