Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15572 > unrolled thread

Re: How to semi-ExpToTrig

Started byAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
First post2013-10-01 10:24 +0000
Last post2013-10-01 10:24 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: How to semi-ExpToTrig Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-10-01 10:24 +0000

#15572 — Re: How to semi-ExpToTrig

FromAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
Date2013-10-01 10:24 +0000
SubjectRe: How to semi-ExpToTrig
Message-ID<l2e7tj$ffs$1@smc.vnet.net>
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@iee.lu


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web