2
$\begingroup$

Given

Exp[a+b]

I want to turn it into

Exp[a] Exp[b]

How can I achieve this in general? That is I am looking for more or less universal and scalable solution.

$\endgroup$

1 Answer 1

2
$\begingroup$

Just came up with one solution using rules:

expRule = Exp[x_ + y_] -> HoldForm[E^x E^y];

Then

Exp[a] + Log[Exp[1/a + Sin[c] Sqrt[b]]] /. expRule

produces as desired

$$\log \left(e^{1/a} e^{\sqrt{b} \sin (c)}\right)+e^a$$

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.