MathGroup Archive 2013

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

Search the Archive

Re: How to semi-ExpToTrig


Hi,

Could I get Mathematica to "simplify" an expression, such as

E^(1 + x) + E^(1 - x)

to 2E*Cosh[x] ?

Thanks!

Sam


Hi, try this:

expr=E^(1+x)+E^(1-x);

expr // FullSimplify

This gives your desired result. This also:

expr /. Plus[Power[E, Plus[a_, Times[-1, x]]], 
   Power[E, Plus[a_, Times[1, x]]]] -> 2 E^a*Cosh[x]

Have fun, Alexei



Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch at iee.lu





  • Prev by Date: Output display by slide
  • Next by Date: Re: How to semi-ExpToTrig
  • Previous by thread: Re: Output display by slide
  • Next by thread: Re: How to semi-ExpToTrig