MathGroup Archive 2012

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

Search the Archive

Re: How to get the corresponding coefficients?


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?