MathGroup Archive 2009

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

Search the Archive

Using Coefficient on an equation


If f=a*x^2+b*x+c, Coefficient[f,x^2] obviously returns a.
But if f=a*x^2+b*x+c==0, it returns 0.

The problem arose using the Calculus`VariationalMethods` package.
It (unfortunately) returns the Euler-Lagrange equations as
such, so I have to remove the useless ==0 appendage for
Coefficient to work properly. Is there a simple direct way out?


  • Prev by Date: Re: Mathematica and Access
  • Next by Date: Re: Trivial question
  • Previous by thread: Re: webMathematica - comments, opinions, user group (?)
  • Next by thread: Re: Using Coefficient on an equation