[Date Index] [Thread Index] [Author Index]
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)) Bobby On Sun, 18 Jan 2009 04:32:48 -0600, zatuch <zatuch at gmail.com> 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:= TrigToExp[Cos[2 x]] > During evaluation of In:= Nonreal::warning: Nonreal number > encountered. > Out= Nonreal > > In:= TrigToExp[Cos[y] Sin[x]] > Out= 0 > > Zatuch > -- DrMajorBob at longhorns.com