RE: Coefficient problem
- To: mathgroup at smc.vnet.net
- Subject: [mg36431] RE: [mg36421] Coefficient problem
- From: "Florian Jaccard" <jaccardf at eicn.ch>
- Date: Sat, 7 Sep 2002 02:53:37 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello ! You can proceed like this : delta[poly2_, var_] := Coefficient[poly2, var, 1]^2 - 4*Coefficient[poly2, var, 0]*Coefficient[poly2, var, 2] Meilleures salutations Florian Jaccard e-mail : jaccardf at eicn.ch -----Message d'origine----- De : CeZaR [mailto:pascal at go.ro] Envoyé : ven., 6. septembre 2002 09:17 À : mathgroup at smc.vnet.net Objet : [mg36421] Coefficient problem 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