Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: TrigExpand - Odd behavior

  • To: mathgroup at
  • Subject: [mg55428] Re: TrigExpand - Odd behavior
  • From: Andrzej Kozlowski <akoz at>
  • Date: Wed, 23 Mar 2005 05:34:39 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

On 22 Mar 2005, at 09:51, Bob Stagat wrote:

> Try executing the following three lines and explain the last result...
> Cos[45 Degree]
> Cos[x+45 Degree]
> Cos[x+45 Degree]//TrigExpand
> Thanks...
> ~ BS ~
There is nothing wrong and nothing to explain. What you get is the 
expansion of iof Cos[x+45 Degree]  in terms of Sin[x], Cos[x], Sin[1 
Degree], Cos[1 Degree]. What else did you expect? You can see that the 
answer is correct by substituting  a numerical value for x as follows:

Chop[(Cos[x+45 Degree]//TrigExpand)/.x->45 Degree//N]


Chop[(Cos[x+45 Degree]//TrigExpand)/.x->15 Degree//N]


which is as it should be.

Andrzej Kozlowski

  • Prev by Date: Re: TrigExpand - Odd behavior
  • Next by Date: appending '.' in CForm
  • Previous by thread: Re: TrigExpand - Odd behavior
  • Next by thread: Re: TrigExpand - Odd behavior