Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11742
| From | mr.hagak@gmail.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Substitute variable name for value (reverse of simplification) |
| Date | 2012-09-14 04:19 +0000 |
| Message-ID | <k2ub90$ha5$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
I need this to happen:
var1 = 3*a
var2 = 189*a^3
output = 7*var1^3
I can do it in very simple and specific equations doing something like
substituteName2[var_,exp_] := Module[ {},
Solve[p==exp&&"test"==var,{p},{a}]
];
test=3*a;
substituteName2[test,7*test^3]
But i need a WAY more general form of that...any ideas?
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Substitute variable name for value (reverse of simplification) mr.hagak@gmail.com - 2012-09-14 04:19 +0000 Re: Substitute variable name for value (reverse of simplification) daniel.lichtblau0@gmail.com - 2012-09-15 07:45 +0000
csiph-web