Re: Modifying displayed form of an expression?
- To: mathgroup at smc.vnet.net
- Subject: [mg57179] Re: Modifying displayed form of an expression?
- From: AES <siegman at stanford.edu>
- Date: Fri, 20 May 2005 04:43:11 -0400 (EDT)
- Organization: Stanford University
- References: <200505170135.VAA23181@smc.vnet.net> <d6hebv$cvn$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <d6hebv$cvn$1 at smc.vnet.net>, Andrzej Kozlowski <akoz at mimuw.edu.pl> wrote: > > Your "by hand " way does not work simply because you do not force > Mathematica to multiply-out the terms in the denominator, so > immediately on evaluation the whole expression is put back into the > original form. All you need to do is: > > (Exp[-c]*Numerator[f]/Expand[Exp[-c]*Denominator[f]]) > Ah, that's the clue . . . or at least, it's an approach I can understand, and remember for the future. Thanks. > (Exp[-c]*Numerator[f]/Expand[Exp[-c]*Denominator[f]]) > > If you do not wish to do so much typing a slightly quicker approach is: > > > f /. Exp[x_] :> Exp[x - c] > > > (a*E^(b - c))/(1 - E^(d - c)) > >
- References:
- Modifying displayed form of an expression?
- From: AES <siegman@stanford.edu>
- Modifying displayed form of an expression?