Re: How to semi-ExpToTrig
- To: mathgroup at smc.vnet.net
- Subject: [mg131768] Re: How to semi-ExpToTrig
- From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
- Date: Tue, 1 Oct 2013 06:21:21 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@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 at iee.lu