Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7609 > unrolled thread
| Started by | gac <g.crlsn@gmail.com> |
|---|---|
| First post | 2012-01-06 09:20 +0000 |
| Last post | 2012-01-06 09:20 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Rule replacement doesn't work after NDSolve? gac <g.crlsn@gmail.com> - 2012-01-06 09:20 +0000
| From | gac <g.crlsn@gmail.com> |
|---|---|
| Date | 2012-01-06 09:20 +0000 |
| Subject | Re: Rule replacement doesn't work after NDSolve? |
| Message-ID | <je6ed5$qac$1@smc.vnet.net> |
Thank you. Great example. I see that the FullForm[-2*I] is also not Times[Complex[-2,0],Complex[0,1]]. So this won't work either: -2*I/.Complex[0,1]->Complex[0,-1] to replace only I with -I, we need to use parentheses: -2*(I/.I->-I) Not very pretty, and it seems to get worse very quickly: 1-2*(I/.I->-I) or 2*(I/.I->-I)*Exp[2*(I/.I->-I)] It seems that every replacement of I with -I must be specified separately. Uuugly!
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web