MathGroup Archive 2007

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

Search the Archive

Re: Coefficient...


Hi,

Select[Coefficient[fx, x], FreeQ[#, y] && FreeQ[#, z] &]

may be there is an if clause in it .. but

Coefficient[fx, x] /. a_*(y | z) :> Sequence[]

has no if clause

Regards
   Jens

Bruno Campanini wrote:
> Given fx:=ax^2 + dxy + 2cx + bcxz
> Coefficient[fx,x] gives   dy + 2c + bcz   but I only need 2c.
> 
> Without any If clause, is it possible to get Coefficient not
> to look on terms containing y or z?
> 
> Bruno
> 


  • Prev by Date: Exclusions inconsistancy
  • Next by Date: Re: Dot or Inner ... but not quite
  • Previous by thread: Re: Coefficient...
  • Next by thread: Re: Coefficient...