MathGroup Archive 2010

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

Search the Archive

Collecting like terms after TrigReduce

  • To: mathgroup at
  • Subject: [mg108915] Collecting like terms after TrigReduce
  • From: Geico Caveman <spammers-go-here at spam.invalid>
  • Date: Wed, 7 Apr 2010 03:19:37 -0400 (EDT)

I have a large expression that is expressed (after TrigReduce) as a
series of the form:

c1*cos(wt) + s1*sin(2wt) + a1+c2*cos(2 wt) + c3* cos(wt) + s2*sin(wt) +
c4*cos(wt) + a2+c4*cos(2wt) + s3 sin(2wt)

(This is just an illustrative example. The precise number of terms is
larger and the number of each kind, impossible to know ahead of the

Is there any way (for compactness reasons alone) to force Mathematica
to put this in a standard form:

(a1+a2) + (c1+c3) cos(wt) + (c2 + c4)cos (2wt) + s2 sin(wt) + (s1+s3)
sin(2wt) ?

Using Simplify is not an option since that gets rid of the higher
harmonic terms (which I want).

  • Prev by Date: Re: convert txt to binary file
  • Next by Date: Re: Mathematica Programming
  • Previous by thread: Re: Pattern to match a list of non-negative integers
  • Next by thread: Re: Collecting like terms after TrigReduce