Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9416
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to get the corresponding coefficients? |
| Date | 2012-04-05 09:47 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jljpne$cmo$1@smc.vnet.net> (permalink) |
| References | <201204040833.EAA00068@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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to get the corresponding coefficients? Bob Hanlon <hanlonr357@gmail.com> - 2012-04-05 09:47 +0000
csiph-web