MathGroup Archive 2009

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

Search the Archive

Re: usage of TrigToExp?

I suspect you've given x a value, but I'm not sure what value would give  
those results.

TrigToExp[Cos[2 x]]

1/2 E^(-2 I x) + 1/2 E^(2 I x)

TrigToExp[Cos[y] Sin[x]]

1/4 I (E^(-I x) - E^(I x)) (E^(-I y) + E^(I y))


On Sun, 18 Jan 2009 04:32:48 -0600, zatuch <zatuch at> wrote:

> Hello,
> Results from function TrigToExp seemed weird to me. Could anyone
> please give me a good explanation on its usage. Thanks a lot.
> In[41]:= TrigToExp[Cos[2 x]]
> During evaluation of In[41]:= Nonreal::warning: Nonreal number
> encountered.
> Out[41]= Nonreal
> In[43]:= TrigToExp[Cos[y] Sin[x]]
> Out[43]= 0
> Zatuch

DrMajorBob at

  • Prev by Date: Re: usage of TrigToExp?
  • Next by Date: Re: Parallel computing with Mathematica 7?
  • Previous by thread: Re: usage of TrigToExp?
  • Next by thread: Re: usage of TrigToExp?