Message Boards Message Boards

1
|
2783 Views
|
3 Replies
|
4 Total Likes
View groups...
Share
Share this post:

How do I get Exp[x + y] to be transformed into Exp[x] * Exp[y]?

Posted 10 years ago
POSTED BY: Craig Richmond
3 Replies
Posted 10 years ago

Thank you,

POSTED BY: Craig Richmond
Posted 10 years ago

Excellent! That also solves the issue I've had with the Log function:

Log[x y z] //.Log[HoldPattern[Times[fcts__]]] :> Inactive[Plus] @@ Map[Log, {fcts}]

which gets me

   Log[x]+Log[y]+Log[z]

Thanks to both of you!

POSTED BY: Jim Baldwin

You may experiment with the new Inactive function:

Exp[x + y + z] //. E^HoldPattern[Plus[fcts__]] :> Inactive[Times] @@ Map[Exp, {fcts}]

I am not familiar with Inactive yet.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract