There has been a similar question, but it doesn't solve my problem.
I have this input:
var = Exp[a] Exp[b]
And the output is
E^(a + b)
What I actually would like to have is just
var = E^(a)E^(b)
Is there a way to tell Mathematica to stop doing this simplification?
I tried with HoldForm, or Defer, but I actually need to operate on the variable, and those functions do not allow that. My idea would be to use SetSystemOptions, but I haven't found an option that relates to this simplification.
Thanks for any help.
var = Inactivate[Exp[a] Exp[b], Exp], and see if that does what you want.Inactivateallows you to do symbolic manipulation with everything except forExp. You can always re-activateExpat the end by applyingActivateto your expression. – march May 17 '16 at 19:51expr = Exp[a (b + c) + d (f + g), then to get a list of the individual Exp terms:ts = Flatten[(# //. {Exp[Plus[a_, b_]] :> { Exp[a], Exp[b]}, Power[E, Plus[a_, b_, c___]] :> {Exp[First[a]], Exp[ Rest[a]]}}) & /@ {ExpandAll[expr]}], and then inactivate the Exp and Apply Times over the list:garb = Times @@ (ts /. Exp[a_] :> Inactive[Exp][a]), but notice that:Activate[garb]doesn't prevent the product of exponentials becoming and exponential of a sum. – Craig Carter May 17 '16 at 22:56Expwithexp? This will not be simplified, of course. You can do your calculations and replace agaun afterwards – Lukas May 18 '16 at 06:17InactivatePower, which might be necessary since your title seems to indicate that you want to do this with exponentials of arbitrary bases. – march May 18 '16 at 15:53