| Author |
Comment/Response |
Michael
|
05/27/12 07:20am
In Response To 'Re: Re: Re: Re: making a transformation' --------- The key is the expression you are applying the replacement to.
Case Init:
In[140]:=
A = 2; B = 4; w = 1000;
FullSimplify[A Cos[w t] - B Sin[w t]]
Out[141]=
2 (Cos[1000 t] - 2 Sin[1000 t])
Case Cleared:
In[142]:=
Clear[A, B, w];
FullSimplify[A Cos[w t] - B Sin[w t]]
Out[143]=
A Cos[t w] - B Sin[t w]
In Case Init, where the coefficients are numbers, the simplified expression has no coefficient in front of Cos. So your pattern, a_ Cos[c_] - b_ Sin[c_], does not match any subexpression.
In Case Cleared, where the coefficient are symbols, the simplified expression does have a coefficient in front of Cos. So your pattern matches the whole expression.
URL: mroge02@emory.edu, |
|