MathGroup Archive 2013

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

Search the Archive

Re: ComplexExpand off by a factor of (-1)?


expr = (E^(I*y) - E^(-I*y))/2*I;

If you plot your expression it is clear that it is -Sin[y] rather than Sin[y]

Plot[expr, {y, -Pi, Pi}]

ComplexExpand[expr]

-Sin[y]

Term-by-term comparison in power series

Assuming[{Element[n, Integers]},
 SeriesCoefficient[expr, {y, 0, n}] ==
   SeriesCoefficient[-Sin[y], {y, 0, n}] //
  FullSimplify]

True


Bob Hanlon


On Fri, Feb 22, 2013 at 1:05 AM,  <charles.ces at gmail.com> wrote:
> Would someone be able to help me understand why when I enter the expression:
>
> ComplexExpand[(E^(I*y) - E^(-I*y))/2*I] I get a result of -Sin[y] instead of Sin[y]?
>
> Thanks.
>
> Charles S.
>



  • Prev by Date: Compiling numerical iterations
  • Next by Date: Re: ComplexExpand off by a factor of (-1)?
  • Previous by thread: ComplexExpand off by a factor of (-1)?
  • Next by thread: Re: ComplexExpand off by a factor of (-1)?