MathGroup Archive 2012

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

Search the Archive

Re: How to get the corresponding coefficients?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125873] Re: How to get the corresponding coefficients?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Thu, 5 Apr 2012 05:55:08 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

On 4/4/12 at 4:29 AM, simplerbysimpler at gmail.com (Titus) wrote:

>If    exp:= x3 Exp[x1+x2];
>How can I get the coefficient x3 and the exponential x1+x2 from the
>exp in a simple way?

In[1]:= exp = x3 Exp[x1 + x2];

In[2]:= exp /. a_ Exp[b_] -> {a, b}

Out[2]= {x3,x1+x2}




  • Prev by Date: Re: Printing Notebooks without Input/Output cells
  • Next by Date: Multivariate Regression
  • Previous by thread: Re: How to get the corresponding coefficients?
  • Next by thread: Re: How to get the corresponding coefficients?