Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9416 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-04-05 09:47 +0000 |
| Last post | 2012-04-05 09:47 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to get the corresponding coefficients? Bob Hanlon <hanlonr357@gmail.com> - 2012-04-05 09:47 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-04-05 09:47 +0000 |
| Subject | Re: How to get the corresponding coefficients? |
| Message-ID | <jljpne$cmo$1@smc.vnet.net> |
exp = x3 Exp[x1 + x2]; exp /. Exp[_] -> 1 x3 exp /. c_ * Exp[_] -> c x3 Cases[exp, _?(FreeQ[#, E] &)][[1]] x3 exp /. c_ * Exp[x_] -> x x1 + x2 Cases[exp, Exp[x_] -> x][[1]] x1 + x2 Bob Hanlon On Wed, Apr 4, 2012 at 4:33 AM, <simplerbysimpler@gmail.com> 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? >
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web