Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: transforming exponential of sums into product of exponentials

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48689] Re: [mg48654] transforming exponential of sums into product of exponentials
  • From: DrBob <drbob at bigfoot.com>
  • Date: Thu, 10 Jun 2004 02:44:19 -0400 (EDT)
  • References: <200406090817.EAA15676@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Use RuleDelayed, and you get a bit farther. Evaluate these lines to see what I mean:

Trace[Exp[x + y] /. Exp[a_ + b_] -> Exp[a]Exp[b]]
Trace[Exp[x + y] /. Exp[a_ + b_] :> Exp[a]Exp[b]]

The second method makes the transformation you want, but the work is undone by an automatically applied rule.

This may do what you want:

Exp[x + y] /. Exp[(a_) + (b_)] :> HoldForm[Exp[a]*Exp[b]]
HoldForm[E^x*E^y]

Bobby

On Wed, 9 Jun 2004 04:17:34 -0400 (EDT), Karim Mehadhebi <Karim.Mehadhebi at wanadoo.fr> wrote:

> Dear All,
>
> I can not understand why Mathmatica refuses to apply rules which transform
> exponenials of sums into product of exponentails.
>
> For instance,
> f[x+y] /. f[a_ + b_]-> f[a] f[b] returns f[x] f[y],
> whereas
> Exp[x+y] /. Exp[a_+b_]->Exp[a]Exp[b] still returns Exp[x+y]
>
> Any help greatly appreciated
>
>
>
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net/index.html


  • Prev by Date: Re: Re: RE: Help Browser
  • Next by Date: Re: Basic conditional statement question.
  • Previous by thread: Re: transforming exponential of sums into product of exponentials
  • Next by thread: Re: transforming exponential of sums into product of exponentials