MathGroup Archive 2006

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

Search the Archive

Extracting terms from an equation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69697] Extracting terms from an equation
  • From: "Coleman, Mark" <Mark.Coleman at LibertyMutual.com>
  • Date: Thu, 21 Sep 2006 07:29:22 -0400 (EDT)

Greetings,

I'd like to find a general way to extract all of the terms from an
equation that involve a given variable. For instance, consider the
equation

myEquation == Exp[a + b x^2 + c y^2 + d x y + e x^3]]

I'd like to define a function such that

   myFunction[myEquation,x] returns the result {b x^2, d x y, e x^3}

Thanks,

-Mark


  • Prev by Date: Re: Re: Why is the negative root?
  • Next by Date: Re: How to delete a row and a column in a matrix?
  • Previous by thread: Re: Add Quotation Marks to Data in a file
  • Next by thread: Re: Extracting terms from an equation