MathGroup Archive 1993

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

Search the Archive

MapAt complaint

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: MapAt complaint
  • From: Richard Mercer <richard at rmercer.wright.edu>
  • Date: Tue, 09 Nov 1993 08:46:06 -0500

Martin McClain writes:

>  I want to go from   expr1 = 1+Sin[a+b]+Sin[a-b]
>  

>  to                  expr2 = 1 + 2 Cos[a] Sin[b].
>  I am looking for an easy one liner.  Any suggestions?

This can be done with

Apart[expr1,Trig->True].

However I agree that dealing with trig manipulations is much more  
difficult in Mma than it needs to be; almost a Black Art. Maybe  
someday I'll do something about that.

*********************************************************************
Richard Mercer                             513-873-2191 office
Department of Mathematics and Statistics   513-873-2785 message
Wright State University                    513-873-3301 fax
Dayton, OH 45435                           NeXTmail welcome!
richard at rmercer.wright.edu        or       rmercer at desire.wright.edu
*********************************************************************





  • Prev by Date: Ordering function
  • Next by Date: Naming the Mathematica language
  • Previous by thread: MapAt complaint
  • Next by thread: Re: MapAt Complaint